Embodiment
Below in conjunction with accompanying drawing, specify embodiment of the present invention.
As shown in Figure 1, be the process flow diagram of the embodiment of the generation method of a kind of combination of decorations pattern of the present invention.As shown in Figure 2, be certain square, Urban Parks planimetric map.Utilize combination of decorations method for generating pattern of the present invention that two arcs among Fig. 2 are intersected the theme square that forms and carry out the generation of combination pattern, to form the floor pavement scheme.
Specifically comprise the steps:
Combinatorial geometry code name, modulus and the border, place of S11, input pattern.
Usually adopt in combinatorial geometry that { n} comes the shape of presentation graphic, as { 3} is a triangle, { 4} is a quadrilateral, by that analogy.And pattern can be formed by multiple equilateral polygon, and a plurality of equilateral polygons are carried out closure on one point.Promptly around a closing point, place n respectively with the mode of turn-taking
1Polygon, n
2Polygon, n
3Polygon ..., or the like, with combinatorial geometry code name { n
1, n
2, n
3, n
2Represent combinations of patterns.For example { 3,3,3,3,3,3} representes that six equilateral triangles close at a bit to the combinatorial geometry code name, can form the pattern that equilateral triangle is formed; { 4,4,4,4} representes that four squares close at a bit to the combinatorial geometry code name, forms the pattern that square is formed; { 6,6,6} representes three hexagonal close on one point to the combinatorial geometry code name, forms the pattern that regular hexagon is formed.
Each polygonal interior angle with equal 360 degree because the equilateral interior angle of n is: θ=(1-2/n) 180 °, therefore, one has 17 kinds of polygon interior angles and can be combined into 360 degree in the combinatorial geometry, each can regard a kind of module that forms pattern as.The combination pattern of 17 kinds of regular polygons is as shown in table 1.
Table 1
To the third type in this theme square option table 1, promptly the combinatorial geometry code name be 3,3,4,3,4}, { 3,3,4,3,4} is input in the computing machine with this combinatorial geometry code name.
About modulus, existing ceramic tile industry generally adopts 30cm, 60cm, and the design of the modulus of 80cm, the modulus design generally is limited by production technology, or the weight of traffic condition and material itself determines, and closely bound up with the modulus in applying to build.If too greatly generate and transportation on difficulty increase, if too little then installation specification than higher, and workload increases more.For the whole effect of pattern, with respect to the fabricating yard, if modulus is too big, the effect of whole figure can't show; On the contrary, if with respect to whole place, modulus is too little; The effect of figure meeting fragmentization makes the people that dazed and confused sensation arranged so, loses original aesthetic effect; According to above each side condition, select a solid plate modulus, to the size on this theme square; Select modulus 60cm, 60cm is input in the computing machine with modulus.
The border, place is the ground that needs decorative pattern or the border of metope, is rectangle like the place, through long and the wide border, place that defines, is circle like the place then, then can define the border, place through radius.As shown in Figure 3, this theme square then defines the border, place through the radius of two sections arcs and the intersection point between the two.
S12, selection place central authorities are as closing point.As shown in Figure 4, because two circular arcs that are shaped as on this theme square intersect the figure that forms, the central authorities on this theme square are the barycenter of figure, get this barycenter as first closing point.This step is accomplished by computing machine according to the border, place of definition automatically.
S13, to add to the modulus be in the pattern of the length of side around closing point successively with the figure in the combinatorial geometry code name.In the present embodiment, the combinatorial geometry code name of input is { 3,3; 4,3,4}; Modulus 60cm also is about to triangle, triangle, quadrilateral, triangle, quadrilateral that the length of side is 60cm and centers on closing point successively to add to clockwise in the pattern, forms the graphical effect that forms first as among Fig. 4.
S14, judge whether to reach the border, place.Judge to come established combination pattern whether to reach the border according to the border, place of input, if, then get into step S16, if not, then get into step S15.
S15, with pattern boundaries point as new closing point.As shown in Figure 4, after adding in pattern around closing point triangle, triangle, quadrilateral, triangle, quadrilateral successively, on the frontier point of pattern, form seven new closing points again.Because judged that in step S14 established combination pattern does not also reach the border, place, show that pattern needs continued growth, then return step S13 and continue to add figure.As shown in Figure 4, { 3,3,4,3,4} is an example, then to these seven new closing points, continues to add triangle, triangle, quadrilateral, triangle, quadrilateral around each new closing point with the combinatorial geometry code name.
Certainly, because existing part figure centers on new closing point, therefore, combinatorial geometry code name capable of using to earlier each existing graphics around new closing point being mated, is found out the figure that lacks in the combinatorial geometry code name earlier, only adds the figure that lacks then.In Fig. 4, each closing point in these seven new closing points is scanned with circular sequence, if after the partial sequence on the coupling, only add for all the other sequences.Like the new closing point in the upper left corner among the figure, scan clockwise into sequence 3,3}, { 3,3,4,3, { 4,3, therefore 4} only adds that { 4,3,4} promptly adds quadrilateral, triangle, quadrilateral to result's disappearance that 4} matees with the combinatorial geometry code name.
S16, the figure of diverse location is added up respectively.If boundary can't be placed a figure, still add up as a figure, when construction, need to locate figure and carry out on-site cutting with the construction border of fitting.To combinatorial geometry code name in the present embodiment is { 3,3,4,3; The figure of the diverse location of the combination pattern that 4} forms is counted, and the figure of each position of embodiment statistics number is (665,665 among Fig. 3; 665,665,665); The equilateral triangle that is first position is 665, and the equilateral triangle of second position is 665, by that analogy.
S17, the figure of diverse location is provided with various colors or texture.
Adopt existing technological Berlin noise to simulate texture, promptly adopt random function to simulate to meet the texture of actual effect, be formed on various granite plates common in the stone material, marble grain, the grain of wood etc.
The stack of color: can use the kmeans cluster analysis through gathering the photo of actual wooden boards, obtain two main colors of various sheet materials.Like two main color C1 of greyish white marble among Fig. 4, C2:C1=RGB{170,129,65}, C2=RGB{184,143,80} adopts above-mentioned color that the color that generates is carried out the texture stack then.Concrete grammar is: adopt formula (1) that gray space is converted into rgb space, form veined color effect.H is the gray-scale value in the texture matrix in the formula (1), and the interval is 0~255, R1, and G1, B1, R2, G2, B2 are color C1, the rgb value of C2.
As shown in Figure 3, after the generation method that adopts combination of decorations pattern of the present invention generates combination pattern, can form final laying scheme.
In the embodiment on certain theme square, Urban Parks, corresponding to { 3,3,4,3, the 4} number of statistics altogether is (665,665,665,665,665), to { 3,3,4,3, the assembly unit figure on the 4} diverse location adopts different materials.Can adopt identical light grey marble material to two triangles, two quadrilaterals are adopted identical middle grain light red grouan material, last triangle is adopted greyish black sandstone sheet material.So, need 1330 grouan 60 * 60cm quadrilateral sheet materials altogether, 1330 marble 60cm triangle sheet materials, 665 sandstone 60cm triangle sheet materials are convenient to further computational engineering cost and statistical work amount.Form the construction effect of the final laying scheme among Fig. 3, and with this as arrangement and method for construction.
More than introduced a kind of embodiment of generation method of combination of decorations pattern; With the central point of place central authorities as the pattern generator program, dot pattern begins to outgrowth thus, stops until the border; And the figure of diverse location added various colors or texture; Form final construction effect, the invention provides the method that a kind of computer based forms complicated decorative pattern, for the decoration of complex figure provides a solution.The present invention is not limited to above embodiment, does not anyly break away from technical scheme of the present invention, promptly only it is carried out improvement or the change that those of ordinary skills knew, all belongs within protection scope of the present invention.