CN110335356B - Cutting method of star-shaped material - Google Patents

Cutting method of star-shaped material Download PDF

Info

Publication number
CN110335356B
CN110335356B CN201910611676.7A CN201910611676A CN110335356B CN 110335356 B CN110335356 B CN 110335356B CN 201910611676 A CN201910611676 A CN 201910611676A CN 110335356 B CN110335356 B CN 110335356B
Authority
CN
China
Prior art keywords
block
cutting
index
sub
star
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910611676.7A
Other languages
Chinese (zh)
Other versions
CN110335356A (en
Inventor
刘媛
邓运员
郑文武
邹君
颜金彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hengyang Normal University
Original Assignee
Hengyang Normal University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hengyang Normal University filed Critical Hengyang Normal University
Priority to CN201910611676.7A priority Critical patent/CN110335356B/en
Publication of CN110335356A publication Critical patent/CN110335356A/en
Application granted granted Critical
Publication of CN110335356B publication Critical patent/CN110335356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Milling Processes (AREA)

Abstract

The invention discloses a cutting method of a star-shaped material, which comprises the following steps: establishing a cube object; initializing the cube object according to the relationship between the hexagons and the constant angles of the hexagons to obtain a cube to be cut; defining parameters for managing the cube to be cut; and cutting the cube to be cut according to the parameters to obtain the star-shaped material. The cutting method is simpler, easy to operate and more friendly to technicians, so that the working efficiency is improved, and the labor cost is saved; moreover, the thinking strategy of the cutting method is universal for all stars, and provides technical support for the improvement of a multi-angle star modeling tool model base; meanwhile, various star-shaped materials can be rapidly generated in batches in an automatic mode by adopting the cutting method, and the production efficiency is greatly improved.

Description

Cutting method of star-shaped material
Technical Field
The invention relates to the field of cutting of building materials, in particular to a cutting method of a star-shaped material.
Background
The star-shaped material has wide application in construction, but the complex structural information causes the star-shaped material to be difficult to cut in the production process. At present, a mainstream three-dimensional GIS is mainly used for a construction platform CityEngine of an urban regular model, a corresponding three-dimensional model library does not exist for star-shaped materials, an automatic generation method is lacked, and further star-shaped material cutting and manufacturing are difficult to realize.
Disclosure of Invention
In view of the above, the present invention aims to provide a method capable of realizing cutting and automatic generation of star-shaped materials.
Based on the above purpose, the present invention provides a cutting method of star-shaped material, comprising:
establishing a cube object;
initializing the cube object according to the relation of the hexagram and the constant angle of the hexagram to obtain a cube to be cut;
defining parameters for managing the cube to be cut;
and cutting the cube to be cut according to the parameters to obtain the star-shaped material.
In some embodiments, the hexagons have a constant angular relationship to the hexagons of:
the height of the hexagram is equal to four times of the constant angle height of the hexagram, and the length of the hexagram is equal to three times of the length of one side of the constant angle of the hexagram.
In some embodiments, the cutting the cube to be cut according to the parameters specifically includes:
the method comprises the following steps: cutting the cube to be cut into a first upper sub block and a first lower sub block which are equal in the second direction to obtain a first cutting body consisting of the first upper sub block and the first lower sub block;
step two: cutting the first upper sub-block into a second upper sub-block and a second lower sub-block which are equal in a second direction to obtain a second cutting body consisting of the first lower sub-block and the second lower sub-block;
step three: cutting the second lower sub-block into a second left sub-block, a second middle sub-block and a second right sub-block which are equal in the first direction to obtain a third cutting body consisting of the first lower sub-block, the second left sub-block, the second middle sub-block and the second right sub-block;
step four: cutting the second left sub-block, the second middle sub-block and the second right sub-block to obtain a fourth cutting body consisting of the first lower sub-block and the semi-star block;
step five: and rotationally copying the half star-shaped block of the fourth cutting body to the first lower sub-block in a second direction to obtain a star-shaped material.
In some embodiments, the parameters specifically include:
the cutting angle is angle, the cutting height is defined as h, true or false information after rotation is ori, the display type is style, the star number in the first direction is int _ Hnum, the star number in the second direction is int _ Znum, the stretching height is extreme, and the inner side and the outer side are displayed as index _ inner;
the second direction is perpendicular to the first direction.
In some embodiments, the cutting the second left sub-block specifically includes:
step 1: rotationally cutting the second left sub-block to obtain a second triangular block;
and 2, step: and cutting the second triangular block according to the judgment result of the index _ inner.
In some embodiments, the step 2 specifically comprises:
if index _ inner is false, extracting the outer slope surface of the second triangular block, executing a side (num, index _ inner, ori) rule on the outer slope surface, and displaying an outer surface sharp angle frame;
if the index _ inner is true, extracting the outer slope surface of the second triangular block, copying the slope surface to obtain a first slope surface and a second slope surface, executing a side (num, index _ inner, ori) rule on the first slope surface, keeping an outer surface sharp angle frame, executing a reverse side (num, index _ inner, ori) rule on the second slope surface, and keeping an inner side sharp angle frame.
In some embodiments, the side (num, index _ inner, ori) rule is specifically:
when num is 2 and index _ inner is false: performing a cutting of the second left sub-block into the outer surface sharp corner frame;
when num is 2 and index _ inner is true: performing a cut of the second left sub-block into the inside closed angle frame and the outside closed angle frame;
when num is 1 and index _ inner is false: performing a cut of the second neutron block into the outer surface pointed frame;
when num is 1 and index _ inner is true: performing a cut of the second neutron block into the inner pointed frame and the outer pointed frame.
In some embodiments, the cutting of the second median block specifically comprises:
and cutting the second subblock according to the judgment result of the index _ inner, extracting the top surface of the second subblock and generating a double-slope top.
In some embodiments, the cutting the second neutron block according to the index _ inner determination result is specifically:
if index _ inner is false, extracting the top surface of the second subblock, and executing a side (num, index _ inner, ori) rule on the top surface to generate an outer double-slope top;
if index _ inner is true, extracting the top surface of the second subblock, and executing a double-side (num, index _ inner, ori) rule on the top surface to generate the double-slope top with inner and outer sides.
In some embodiments, the cutting of the second right sub-block specifically comprises:
and (3) rotationally cutting the second right sub-block into two parts, wherein one part is empty, and the other part is not empty, and the step 2 is also executed on the non-empty part.
From the above, the cutting method of the star-shaped material provided by the invention firstly provides a scientific and complete cutting scheme of the star-shaped material, solves the problem that the traditional modeling tool lacks a star-shaped material model library, fills the blank in the aspect and supports the flexible change of the display of the inner sharp corner and the outer sharp corner; the cutting method is simpler, easy to operate and more friendly to technicians, so that the working efficiency is improved, and the labor cost is saved; moreover, the thinking strategy of the cutting method is universal for all stars, and provides technical support for the improvement of a multi-angle star modeling tool model base; meanwhile, various star-shaped materials can be rapidly generated in batches in an automatic mode by adopting the cutting method, and the production efficiency is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of a core cutting strategy according to an embodiment of the present invention;
FIG. 2 is a schematic view of a first cutting body according to one embodiment of the present invention;
FIG. 3 is a second cutter illustration of an embodiment of the present invention;
FIG. 4 is a schematic view of a third cutter of one embodiment of the present invention;
FIG. 5 is a diagram of a second left sub-block cut according to one embodiment of the present invention;
FIG. 6 is a second graph of the second left sub-block cut according to one embodiment of the present invention;
FIG. 7 is a third diagram of a second left sub-block cut according to an embodiment of the present invention;
FIG. 8 is a fourth diagram of a second left sub-block cut according to one embodiment of the present invention;
FIG. 9 is a fifth diagram of a second left sub-block cut according to an embodiment of the present invention;
FIG. 10 is a sixth diagram of a second left sub-block cut according to one embodiment of the invention;
FIG. 11 is a seventh diagram of a second left sub-block cut according to one embodiment of the invention;
FIG. 12 is a diagram of a second neutron block cut in accordance with an embodiment of the invention;
FIG. 13 is a second view of a second neutron block cut in accordance with an embodiment of the invention;
FIG. 14 is a third view of a second neutron block cut in accordance with an embodiment of the invention;
FIG. 15 is a schematic view of a fourth cutter of an embodiment of the present invention;
FIG. 16 is a schematic view of a plurality of outer cusp star materials in accordance with one embodiment of the present invention;
FIG. 17 is a schematic view of a plurality of inner pointed star materials according to one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In the three-dimensional GIS, in order to improve the efficiency of three-dimensional modeling and promote the modeling operation of batch, quick and support three-dimensional parameter interaction rules, the method is mainly used for a construction platform of an urban regular model, namely City Engine. The application of the method can be used for rapid modeling, simultaneously supports the network publishing of a new WebGL three-dimensional model, and provides a powerful popularization approach for the propagation and sharing of data. The star-shaped material has wide application in construction, but the complex structural information causes the star-shaped material to be difficult to cut in the production process. At present, a mainstream three-dimensional GIS is mainly used for a construction platform CityEngine of an urban regular model, and a three-dimensional model library corresponding to star materials does not exist, so that an automatic generation method is lacked.
The star-shaped material has wide application in construction, but the complex structural information causes the star-shaped material to be difficult to cut in the production process. At present, a mainstream three-dimensional GIS is mainly used for a construction platform CityEngine of an urban regular model, a corresponding three-dimensional model library does not exist for star-shaped materials, an automatic generation method is lacked, and further star-shaped material cutting and manufacturing are difficult to realize.
The cutting method of the star-shaped material provided by the invention firstly provides a scientific and complete cutting scheme of the star-shaped material, solves the problem that the traditional modeling tool lacks a star-shaped material model library, fills the blank in the aspect and supports flexibly changing the display of the inner sharp angle and the outer sharp angle; the cutting method is simpler, easy to operate and more friendly to technicians, so that the working efficiency is improved, and the labor cost is saved; moreover, the thinking strategy of the cutting method is universal to all stars, and technical support is provided for the improvement of a multi-angle star modeling tool model base; meanwhile, various star-shaped materials can be rapidly generated in batches in an automatic mode by adopting the cutting method, and the production efficiency is greatly improved.
Fig. 1 is a schematic diagram of a core cutting strategy according to an embodiment of the present invention, fig. 2 is a schematic diagram of a first cutting block according to an embodiment of the present invention, fig. 3 is a schematic diagram of a second cutting block according to an embodiment of the present invention, fig. 4 is a schematic diagram of a third cutting block according to an embodiment of the present invention, fig. 5 is a first diagram of a second left sub-block cutting according to an embodiment of the present invention, fig. 6 is a second diagram of a second left sub-block cutting according to an embodiment of the present invention, fig. 7 is a third diagram of a second left sub-block cutting according to an embodiment of the present invention, fig. 8 is a fourth diagram of a second left sub-block cutting according to an embodiment of the present invention, fig. 9 is a fifth diagram of a second left sub-block cutting according to an embodiment of the present invention, fig. 10 is a sixth diagram of a second left sub-block cutting according to an embodiment of the present invention, fig. 11 is a seventh diagram of a second left sub-block cutting according to an embodiment of the present invention, fig. 12 is a second diagram of a second sub-block cutting according to an embodiment of the present invention, fig. 13 is a second diagram of a second sub-block cutting according to an embodiment of the present invention, fig. 14 is a schematic diagram of a second central cutting of a star-central cutting of a second embodiment of a star-cutting according to an embodiment of the present invention, and fig. 17 is a fourth diagram of a star-central material according to an embodiment of the present invention.
The core strategy of the invention is as follows: obtaining height units h of six small equiangular triangles with identical surfaces of corresponding hexagons by means of the lengths of any sides of the drawn rectangle or square, and executing generation of the initialized hexagons cubes of the model and cutting and management of the cubes according to the height units h, wherein specific strategies refer to fig. 1 which is a schematic diagram of a core cutting strategy of one embodiment of the invention.
The method comprises the following specific steps:
s101: establishing a cube object:
(1) Defining the height of each small equiangular triangle of a hexagram as a variable h, and initializing to 3;
(2) As shown in fig. 2, a rectangle or a square is drawn on the bottom surface;
(3) As shown in fig. 3, a height of 10 meters is stretched to form a cubic object.
S102: initializing the cube object according to the relationship between the hexagons and the constant angles of the hexagons to obtain a cube to be cut:
the relationship between the hexagon star and the constant angle of the hexagon star is as follows: the height of the hexagram is equal to four times of the height of the constant angle of the hexagram, and the length of the hexagram is equal to three times of the length of one side of the constant angle of the hexagram.
(1) The system acquires the side length of a specified rectangle or square according to the x-axis direction of the rectangle or square as the length L of a hexagonal star, and the length is formed by three small equiangular triangles. The corresponding y-axis direction is the width of the hexagram, and the height of the hexagram needs to be converted by means of L;
(2) Updating the height of the small equiangular triangle to h = L/3 × cos (30);
(3) And updating the height of the initialized cube to be h x 4 of the hexagram, and keeping the rest unchanged. And forming an outer surrounding cube model which conforms to the hexagram to be cut.
S103: defining parameters for managing the cube to be cut:
the parameters include:
cutting angle is angle, cutting height is defined as h, true or false information after rotation is ori, display type is styletype, star number in the first direction is int _ Hnum, star number in the second direction is int _ Znum, stretching height is extreme, and inner and outer sides are displayed as index _ inner;
the second direction is parallel to the Y axis and perpendicular to the first direction.
In this embodiment, the following concrete steps are performed:
default angle =60, if other star shapes are to be cut, the corresponding cut object is needed; height h =3; ori is initially set to be false, i.e. ori = false, and true or false information of the direction of rotating the hexagram by 90 degrees is defined; when the style =1, the splicing is displayed in an identical mode, and when the style =2, the splicing is divided into half parts such as different levels of combination arrangement and the like; int _ Znum =1, default setting of vertical axis 1, int _hnum =1, default setting of horizontal axis 1, extreme defining a short segment of stretch height, default 0.02, that is, extreme =0.02; index _ inner defaults to false, i.e., index _ inner = false, and defines the inside display control, whereas when true, the outside display control is defined.
S104: cutting the cube to be cut according to the parameters to obtain the star-shaped material:
(1) Firstly, adjusting the size and direction of the cube to be cut
Setting the X-axis size of a cube to be cut to h.6. Tan (30). Int _ Hnum; the size of the Y axis is 4 x h int _Znum, the default width of the Z axis (can be adjusted to any value);
executing a hexagram cutting X-axis instruction function Qmodel (ori), wherein ori is true or false information of a hexagram rotating in a 90-degree direction, the main iteration is to cut hexagram objects uniformly and equally according to the X-axis direction and the size h & lt6 & gttan (30), the object contents are stored in an InnerdoubleTri (style, split.
(2) And aiming at cutting and drawing the boundary surface entity, distinguishing odd layers from even layers to determine a specific cutting scheme:
if the layer is an odd layer, cutting 3 units according to the Y-axis direction, wherein the first unit is a boundary object R _ halfindredgerdoubleTri (ori) template with the cutting size of 2*h and the shape of half of a hexagon star, and transmitting direction control parameters; the second unit is a 4*h cube with equal iteration, is in the shape of a hexagram overall boundary object innardoubletri (ori), and also transmits direction control parameters; a third unit cutting a boundary object R _ halfinrdoubletri (ori) template of which the cutting size is 2*h and the shape is half of the previous hexagram, rotating 180 degrees according to a central symmetry method and a Z axis, and also transmitting direction control parameters; conversely, if even, the shape object innardoubletri (ori) is iterated directly according to the size of the Y-axis 4*h.
(3) And (3) starting cutting:
the method comprises the following steps: referring to fig. 2, which is a schematic diagram of a first cutting body according to an embodiment of the present invention, a cube to be cut is cut into equal first upper sub-blocks and first lower sub-blocks in a second direction, so as to obtain a first cutting body composed of the first upper sub-blocks and the first lower sub-blocks:
the first upper sub-block is R _ halfinordoubletri (ori) which is cut into two equal parts up and down according to the Y-axis, and the first lower sub-block can be obtained by rotating the first upper sub-block 180 degrees according to the central Z-axis because the upper part and the lower part are the same.
Step two: referring to fig. 3, a second cut according to an embodiment of the present invention is intended to cut a first upper sub-block into equal second upper sub-blocks and second lower sub-blocks in a second direction, so as to obtain a second cut composed of the first lower sub-block and the second lower sub-block:
and equally cutting the R _ halfindinordoubleTri (ori) into two parts along the Y-axis direction again, wherein the first part is a halfmodel (ori) which is the second lower sub-block, and the second part is a null value which is the second upper sub-block.
Step three: referring to fig. 4, which is a schematic diagram of a third slice according to an embodiment of the present invention, a second lower sub-block is divided into a second left sub-block, a second middle sub-block, and a second right sub-block that are equal in a first direction, so as to obtain a third slice composed of the first lower sub-block, the second left sub-block, the second middle sub-block, and the second right sub-block:
the half model (ori) was divided into 3 parts, i.e., hexagonZx (ori) which is the second left sub-block, half B (ori) which is the second middle sub-block, and hexagonZs (ori) which is the second right sub-block, equally divided along the X-axis.
Step four: cutting the second left sub-block, the second middle sub-block and the second right sub-block to obtain a fourth cutting body consisting of the first lower sub-block and the semi-star block:
first, a second left sub-block is cut, fig. 5 is a diagram of a second left sub-block cut according to an embodiment of the present invention, fig. 6 is a diagram of a second left sub-block cut according to an embodiment of the present invention, fig. 7 is a diagram of a second left sub-block cut according to an embodiment of the present invention, fig. 8 is a diagram of a second left sub-block cut according to an embodiment of the present invention, fig. 9 is a diagram of a second left sub-block cut according to an embodiment of the present invention, fig. 10 is a diagram of a second left sub-block cut according to an embodiment of the present invention, and fig. 11 is a diagram of a second left sub-block cut according to an embodiment of the present invention:
a) And rotationally cutting the second left sub-block to obtain a second triangular block:
rotating the hexagonZx (ori) by 150 degrees along the Z axis in a circumscribed rectangle mode to generate hexagonZxr (ori); cutting the hexagonZxr (ori) object into two parts according to the X axis, wherein the first part is cut into h size and is empty; sx-h, the second triangle block, the second remaining portion scope, generates a corresponding VN (ori, index inner) to achieve inside and outside control of the hexagram angular boundary.
b) Cutting the second triangular block according to the judgment result of index _ inner:
if index _ inner is false, extract the outer slope surface for its cube corner and execute the side (2,index _ inner, ori) rule for that surface, displaying only the outer surface cusp frame;
the opposite is true, the outer slope is also extracted for its cube, the slope is replicated, one surface is respectively subjected to the preserving outer surface sharp angle frame side (2, index inner, ori), the other surface is subjected to the reversing inner side sharp angle frame side (2, | index inner, ori)
Aiming at the sharp corner boundary side (num, index _ inner, ori) generated by the outer slope surface, multi-level and multi-condition interpretation is performed firstly, num is interpreted firstly, then index _ inner is interpreted, and ori is interpreted finally. num controls the middle layer extraction surface and the two side extraction surfaces; the index _ inner controls the inside and outside expansion directionality, once the index _ inner is true, the opposite direction of the surface normal vector needs to be adjusted inevitably to generate the inside expansion; ori controls whether the whole hexagram is vertical or lying.
When num is 2 and index _ inner is false: performing a cut of the second left sub-block into the outer surface cusp frame:
the double pitched roof rule is performed for the outside slope surface, with angle =30 and the direction of the adjustment index is 3. I.e. to create a triangular three-dimensional surface inwardly.
The triangular cubic body is disassembled, the surface of the outer sharp corner is extracted, and the corresponding surface edgeside is found through indexes 1 and 3. For edgeside stretched extreme cell objects, this parameter can be adjusted, if 0, without stretching.
When num is 2 and index _ inner is true: performing a cut of the second left sub-block into the inside cusp frame:
firstly, a direction transformation surface is adopted, double-pitched roof rules are executed for the outer slope surface, the angle is =30, and the direction of the index is adjusted to be 3, namely, the triangular triangle cubic body is generated towards the inner side. The triangular cubic body is disassembled, the surface with the outer sharp corner is extracted, and the corresponding surface edgeside is found through indexes 1 and 3.
When num is 1 and index _ inner is false: performing a cut of the second neutron block into the outer surface pointed frame; when num is 1 and index _ inner is true: performing a cut of the second neutron block into the inside cusp frame:
if num = =1, two condition classifications of index _ inner and ori need to be supplemented, main steps:
when index _ inner is true, it is necessary to first invert the surface, and then perform a different extraction of the cusp boundary surfaces from the inverted surface by ori:
if ori is true, a double pitched roof rule is performed for the face, with angle =30, and the direction of the adjustment index is 1. The triangular cubic body is split in the same kind, the surface with the outer sharp corner is extracted, and the corresponding surface edgeside is found through indexes 1 and 3.
If ori is false, a double pitched roof rule is performed for the face, the angle is angle =30, and the direction of the adjustment index is 0. The triangular cubic body is split in the same kind, the surface with the outer sharp corner is extracted, and the corresponding surface edgeside is found through indexes 2 and 4.
When index _ inner is false, different extraction of the sharp corner boundary surface is performed directly for the outer slope surface according to ori difference, as in the ori true-false operation described above.
Next, a second neutron block is cut, fig. 12 is a first diagram of cutting the second neutron block according to an embodiment of the present invention, fig. 13 is a second diagram of cutting the second neutron block according to an embodiment of the present invention, and fig. 14 is a third diagram of cutting the second neutron block according to an embodiment of the present invention:
and aiming at a halfB (ori) object, generating a corresponding double-slope top mainly aiming at the rectangular extraction top surface, and then extracting sharp-angle boundaries in the same type.
If index _ inner is false, extracting the top surface of the rectangle, then the top surface, performing side (1,index _inner, ori), generating a double-slope top with corresponding angle of 30 according to num =1, index _ inner = false and ori = false, and extracting a slope surface;
if index _ inner is true, the same class extracts the top surface of the rectangle, performing a search for the surface containing both inside and outside, side (1, index _ inner, ori), side (1, | index _ inner, ori).
Finally, the second right sub-block is cut, and fig. 15 is a schematic diagram of a fourth cut according to an embodiment of the present invention:
firstly, hexagonZs (ori) rotates for 30 degrees along a Z axis in a circumscribed rectangle mode to generate hexagonZsr (ori), then the hexagonZsr (ori) is cut into two parts according to an X axis, the first part cuts scope, sx-h size, and VN (ori, index _ inner) is executed; the second part remains the remaining part h, empty, the subsequent operation is the same as the step b) in cutting the second left sub-block.
Step five: rotating the half star block of the fourth cutting body to the first lower sub-block in a second direction to obtain a star material, referring to fig. 16, which is a schematic diagram of a plurality of outer-side pointed star materials according to an embodiment of the present invention, and fig. 17, which is a schematic diagram of a plurality of inner-side pointed star materials according to an embodiment of the present invention.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (5)

1. A method for cutting star-shaped materials, comprising:
establishing a cube object;
initializing the cube object according to the relationship of the hexagon star and the constant angle of the hexagon star to obtain a cube to be cut, wherein the relationship of the hexagon star and the constant angle of the hexagon star is as follows: the height of the hexagram is equal to four times of the constant angle height of the hexagram, and the length of the hexagram is equal to three times of the length of one side of the constant angle of the hexagram;
defining parameters for managing the cube to be cut, wherein the parameters specifically comprise: cutting angle is angle, cutting height is defined as h, true or false information after rotation is ori, display category is styletype, star number in the first direction is int _ Hnum, star number in the second direction is int _ Znum, stretching height is extrudeunit, inner and outer sides are displayed as index _ inner, and middle layer or two side extraction surfaces are num; the second direction is perpendicular to the first direction;
cutting the cube to be cut into equal first upper sub blocks and equal first lower sub blocks in a second direction to obtain a first cutting body consisting of the first upper sub blocks and the first lower sub blocks;
cutting the first upper sub-block into a second upper sub-block and a second lower sub-block which are equal in the second direction to obtain a second cutting body consisting of the first lower sub-block and the second lower sub-block;
cutting the second lower sub-block into a second left sub-block, a second middle sub-block and a second right sub-block which are equal in the first direction to obtain a third cutting body consisting of the first lower sub-block, the second left sub-block, the second middle sub-block and the second right sub-block;
rotationally cutting the second left sub-block to obtain a triangular block;
cutting the triangular block according to the judgment result of the index _ inner through a side (num, index _ inner, ori) rule;
cutting the second right sub-block and the second sub-block to obtain a fourth cutting body consisting of the first lower sub-block and the semi-star block;
rotationally copying half star blocks of the fourth cutter to the first lower sub-block in the second direction to obtain star materials;
wherein the side (num, index _ inner, ori) rule specifically includes:
when num is 2 and index _ inner is false: performing a cutting of the second left sub-block into an outer surface sharp corner frame;
when num is 2 and index _ inner is true: performing cutting of the second left sub-block into an inner closed angle frame and the outer surface closed angle frame;
when num is 1 and index _ inner is false: performing a cut of the second neutron block into the outer surface pointed frame;
when num is 1 and index _ inner is true: performing a cut of the second neutron block into the inner pointed frame and the outer pointed frame.
2. The method as claimed in claim 1, wherein the cutting the triangle block according to the index _ inner judgment result by side (num, index _ inner, ori) rule comprises:
if index _ inner is false, extracting the outer slope surface of the triangular block, executing the side (num, index _ inner, ori) rule on the outer slope surface, and displaying the outer surface sharp angle frame;
if the index _ inner is true, extracting the outer slope surface of the triangular block, copying the slope surface to obtain a first slope surface and a second slope surface, executing the side (num, index _ inner, ori) rule on the first slope surface, retaining the outer surface sharp angle frame, executing the reverse side (num, index _ inner, ori) rule on the second slope surface, and retaining the inner side sharp angle frame.
3. The method of claim 1, wherein the cutting the second right sub-block specifically comprises:
and (3) rotationally cutting the second right sub-block into two parts, wherein one part is empty, and the other part is not empty, and the step 2 is also executed on the non-empty part.
4. The cutting method of the star-shaped material according to claim 1, wherein the cutting of the second neutron block specifically comprises:
and cutting the second subblock according to the judgment result of the index _ inner, extracting the top surface of the second subblock and generating a double-slope top.
5. The method for cutting a star-shaped material according to claim 4, wherein the cutting the second neutron block according to the index _ inner judgment result specifically comprises:
if index _ inner is false, extracting the top surface of the second subblock, and executing a side (num, index _ inner, ori) rule on the top surface to generate an outer double-slope top;
if index _ inner is true, extracting the top surface of the second subblock, and executing a double-side (num, index _ inner, ori) rule on the top surface to generate the double-slope top with inner and outer sides.
CN201910611676.7A 2019-07-08 2019-07-08 Cutting method of star-shaped material Active CN110335356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910611676.7A CN110335356B (en) 2019-07-08 2019-07-08 Cutting method of star-shaped material

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910611676.7A CN110335356B (en) 2019-07-08 2019-07-08 Cutting method of star-shaped material

Publications (2)

Publication Number Publication Date
CN110335356A CN110335356A (en) 2019-10-15
CN110335356B true CN110335356B (en) 2022-10-28

Family

ID=68143825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910611676.7A Active CN110335356B (en) 2019-07-08 2019-07-08 Cutting method of star-shaped material

Country Status (1)

Country Link
CN (1) CN110335356B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009214213A (en) * 2008-03-10 2009-09-24 Institute Of Physical & Chemical Research Cutting tool, and cutting method using the same
CN104216333A (en) * 2014-09-10 2014-12-17 上海维宏电子科技股份有限公司 Method for implementing two-dimensional expansion graph based cutting control in numerical-control system
CN105793893A (en) * 2013-12-04 2016-07-20 皇家飞利浦有限公司 Model-based segmentation of an anatomical structure
CN106340066A (en) * 2016-09-14 2017-01-18 衡阳师范学院 Building-parameterization three-dimensional modeling method
CN108961404A (en) * 2018-06-27 2018-12-07 衡阳师范学院 A kind of building block system constructs the method and system of irregular model
CN109979019A (en) * 2019-03-27 2019-07-05 衡阳师范学院 A kind of cutting method of star-like component

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009214213A (en) * 2008-03-10 2009-09-24 Institute Of Physical & Chemical Research Cutting tool, and cutting method using the same
CN105793893A (en) * 2013-12-04 2016-07-20 皇家飞利浦有限公司 Model-based segmentation of an anatomical structure
CN104216333A (en) * 2014-09-10 2014-12-17 上海维宏电子科技股份有限公司 Method for implementing two-dimensional expansion graph based cutting control in numerical-control system
CN106340066A (en) * 2016-09-14 2017-01-18 衡阳师范学院 Building-parameterization three-dimensional modeling method
CN108961404A (en) * 2018-06-27 2018-12-07 衡阳师范学院 A kind of building block system constructs the method and system of irregular model
CN109979019A (en) * 2019-03-27 2019-07-05 衡阳师范学院 A kind of cutting method of star-like component

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CityEngine CGA 支持下的传统民居复杂屋顶建模及优化;刘媛等;《测绘通报》;20160331;第98-102页 *

Also Published As

Publication number Publication date
CN110335356A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN102855663B (en) Method for building CSG (Constructive Solid Geometry) model according to laser radar grid point cloud
CN102903139B (en) Accelerated rendering method for contours
Zhao Application of 3D CAD in landscape architecture design and optimization of hierarchical details
CN106845074B (en) Establish the method for hexagonal pessimistic concurrency control, flood deduces analogy method and its system
CN102306180A (en) Modeling method based on mass laser radar grid point cloud data
CN109658431B (en) Rock mass point cloud plane extraction method based on region growth
CN101604453A (en) Large-scale data field volume rendering method based on partition strategy
CN109190231B (en) Folded plate reticulated shell parametric modeling method based on grasshopper
CN105468375B (en) A kind of construction method of the corresponding points searching structure towards area-structure light point cloud data
Li et al. Geometry synthesis on surfaces using field-guided shape grammars
US20150294500A1 (en) Hybrid Dynamic Tree Data Structure and Accessibility Mapping for Computer Numerical Controlled Machining Path Planning
CN112419498B (en) Scheduling rendering method for massive oblique photographic data
CN104167021A (en) Space target indexing method based on terrestrial space three-dimensional partition
CN106340066B (en) A kind of building Parametric three-dimensional modeling method
CN103838907A (en) Curved surface cutting trajectory obtaining method based on STL model
CN104574517A (en) Processing method and device for boundary surface grid cell of three-dimensional model
CN105785919B (en) Point five axis of cloud is without global interference generating tool axis vector feasible zone computational methods
CN110335356B (en) Cutting method of star-shaped material
Hu et al. Extended interactive and procedural modeling method for ancient Chinese architecture
CN109979019B (en) Cutting method of star-shaped component
Guérin et al. Efficient modeling of entangled details for natural scenes
CN115131526A (en) Automatic comprehensive drawing method and system
Chang et al. Texture tiling on 3d models using automatic polycube-maps and wang tiles
CN109979007A (en) A kind of geometric modeling method and apparatus of building body
CN109840937A (en) A kind of 3D point cloud paths planning method based on space quaternary tree

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant