Layout method and device for two-dimensional cutting component in special-shaped plane
The two-dimensional cutting member layout in the special-shaped plane is generated by orthogonal cutting method, which solves the problem of difficulty in generating irregular cutting members in the special-shaped plane, and achieves efficient special-shaped plan layout design and construction accuracy.
Patent Information
- Application Number
- CN202510887485.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-06-30
AI Technical Summary
In the prior art, when dealing with special-shaped plan layout, it is difficult to generate irregular cutting members, which makes it difficult for component units to cover the entire plane, easily generate uncovered blanks or gaps, and lacks a method of quickly generating irregular cutting members.
The orthogonal cutting method is used to create a component plane model by obtaining initial data, calculate the geometric dimensions of the segmentation unit, create orthogonal segmentation lines based on laying constraints, and segment the component plane model using the set of orthogonal segmentation lines to generate a cutting layout model in the special-shaped plane.
It realizes the rapid and accurate generation of two-dimensional cutting component layout in special-shaped planes, giving priority to the use of complete component units, saving raw materials, improving design and construction accuracy, and improving layout efficiency.
Smart Images

Figure CN120372789A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of architectural design, and particularly to a layout method and device for two-dimensional cutting members in an irregular plane. Background Art
[0002] Parametric design is a design method that can efficiently complete architectural design by defining variables and their logical relationships with design results. It takes algorithmic thinking as the core, deeply binds design parameters with design results. During the design process, designers only need to change some of the parameters to update the entire design result.
[0003] The layout plane of two-dimensional cutting members is diverse and liberal. During the laying process of the layout plane, except for reserved openings, the remaining areas need to be "fully covered" with member units to ensure that there are no uncovered blank areas. The member units should be connected according to the specified laying method, and the thickness of the construction joints should be kept uniform and flat. To meet the "full coverage" requirement of the irregular area, the member units should be cuttable into any shape, but complete two-dimensional cutting members should be preferably used during laying, and the two-dimensional cutting members are only cut in the boundary areas of the layout plane.
[0004] Based on this, the existing technology mainly has the following problems in the layout of two-dimensional cutting members: First, when the existing technology deals with non-irregular plane layouts, the positioning of members is relatively regular and controllable, but when facing an irregular plane with complex curved surfaces or non-regular geometric shapes, it is difficult to achieve precise positioning of member units; Second, in non-irregular plane layouts, due to the simple boundary of the layout plane, the members can easily cover the entire plane, but due to the complex curve boundary characteristics of the irregular plane, it is difficult for member units to cover the entire plane, and uncovered blanks or gaps are likely to occur; Third, when laying out non-irregular planes, due to the regular and simple layout boundaries, the members are mostly standard shapes, but when laying out irregular planes, in order to fit the complex curve boundaries, a large number of irregular cutting members will be generated in the plane edge areas, and there is a lack of a method for quickly generating irregular cutting members.
[0005] Therefore, it is necessary to provide a method for quickly generating the cutting layout of members in an irregular plane to solve the problem of difficult generation of irregular cutting members in the layout of an irregular plane. Summary of the Invention
[0006] The purpose of the present invention is to provide a layout method for two-dimensional cutting members in an irregular plane to solve the problem of difficult generation of irregular cutting members in the layout of an irregular plane.
[0007] In a first aspect, the layout method of two-dimensional cutting members in a special-shaped plane provided by the present invention includes: obtaining initialization data for laying out the special-shaped plane, where the initialization data includes layout plane data, two-dimensional cutting member data, laying constraints, and construction joint data; creating a member plane model based on the layout plane data and the two-dimensional cutting member data; calculating the geometric dimensions of the segmentation unit according to the two-dimensional cutting member data and the construction joint data; creating segmentation lines based on the member plane model, the geometric dimensions of the segmentation unit, and the laying constraints, and obtaining an orthogonal segmentation line set located in the special-shaped plane according to the member plane model and the segmentation lines; segmenting the member plane model according to the orthogonal segmentation line set to obtain member units, and instantiating the orthogonal segmentation lines according to the construction joint data to obtain model construction joints, thereby completing the cutting layout model.
[0008] The beneficial effects of the layout method of two-dimensional cutting members in a special-shaped plane provided by the present invention are as follows: An orthogonal cutting method is proposed for laying out two-dimensional cutting members in a special-shaped plane. The laying positions of the members are located by designing orthogonal segmentation lines, and closed areas are formed by horizontal and vertical intersections to determine the laying positions of each member. Applying the orthogonal cutting method proposed by the present invention for laying out two-dimensional cutting members can not only handle complex irregular layout planes but also meet the requirement of preferentially using complete member units during the layout process. It can quickly and accurately obtain the layout of two-dimensional cutting members in a special-shaped plane mainly composed of complete two-dimensional cutting members and supplemented by special-shaped member units, generate irregular members required at the edge of the special-shaped plane, achieving the effects of saving raw materials while improving design efficiency and construction accuracy. The layout method of two-dimensional cutting members in a special-shaped plane provided by the present invention can also be designed to form an intelligent algorithm for processing, realizing the intelligent generation of the layout design of two-dimensional cutting members, and further improving the layout efficiency of two-dimensional cutting members.
[0009] In a possible embodiment, the layout plane data includes the outer contour line and global coordinates of the special-shaped plane to be laid out, the two-dimensional cutting member data includes the length, width, thickness, and material of the two-dimensional cutting member, the laying constraints include the laying direction, laying method, and laying starting point, and the construction joint data includes the construction joint thickness.
[0010] In another possible embodiment, creating a member plane model based on the layout plane data and the two-dimensional cutting member data includes: obtaining the layout plane data and creating a geometric entity according to the outer contour line of the plane to be laid out; setting the thickness and material of the geometric entity to the thickness and material of the two-dimensional cutting member according to the two-dimensional cutting member data to obtain the member plane model.
[0011] In other possible embodiments, calculating the geometric dimensions of the segmentation unit according to the two-dimensional cutting member data and the construction joint data includes: calculating the length of the segmentation unit as the sum of the length of the two-dimensional cutting member and the construction joint thickness; calculating the width of the segmentation unit as the sum of the width of the two-dimensional cutting member and The sum of the thicknesses of the industrial seams.
[0012] Create dividing lines based on the component plane model, the geometric dimensions of the dividing units, and the laying constraints. Obtain the set of orthogonal dividing lines located within the irregular plane according to the component plane model and the dividing lines, including: obtaining the layout plane data to determine the maximum and minimum values of the outer contour line on the coordinate axes based on the outer contour line of the plane to be laid out and the global coordinates, and generating an envelope rectangle that envelopes the plane to be laid out; obtaining the laying constraints to get the laying starting point, taking the laying starting point as the center, extending and arranging horizontal dividing lines along the set laying direction, obtaining the width of the dividing unit as the spacing between the dividing lines, and creating dividing lines parallel to the horizontal dividing lines until the envelope rectangle is filled with dividing lines to obtain the set of horizontal dividing lines; creating a set of vertical dividing lines according to the set laying method, and the set of horizontal dividing lines and the set of vertical dividing lines form the set of dividing lines; judging whether the dividing lines in the set of dividing lines are located within the plane to be laid out according to the component plane model and the set of dividing lines. When the dividing line is located within the plane to be laid out, retain the dividing line, and the retained dividing lines form the set of orthogonal dividing lines.
[0013] Create a set of vertical dividing lines according to the set laying method, including: when the set laying method is the continuous straight laying type, taking the laying starting point as the center, creating dividing lines perpendicular to the dividing lines in the set of horizontal dividing lines to form the set of vertical dividing lines; when the set laying method is the offset straight laying type, taking the laying starting point as the center, and obtaining the width of the dividing unit as the length of the dividing line, creating odd-row vertical dividing lines perpendicular to the dividing lines in the set of horizontal dividing lines, obtaining the length of the dividing unit as the spacing between the odd-row dividing lines, translating along the laying direction based on the position line of the odd-row vertical dividing lines the length of the dividing unit, and then translating the width of the dividing unit in the direction perpendicular to the laying direction to obtain the even-row dividing lines. The odd-row vertical dividing lines and the even-row vertical dividing lines form the set of vertical dividing lines.
[0014] Judge whether the dividing lines in the set of dividing lines are located within the plane to be laid out according to the component plane model and the set of dividing lines. When the dividing line is located within the plane to be laid out, retain the dividing line, including: obtaining all the vertex coordinates of the component plane model; selecting any point P on the horizontal dividing line, extending a ray in the left and right directions starting from point P, calculating the number of intersection points F between the ray and the component plane model. When F = 0, it means the dividing line is outside the plane to be laid out and delete the dividing line. When F is odd, delete the intersection points that coincide with the vertices of the component plane model of the ray and obtain the X coordinates of the remaining intersection points. When F is even, obtain the X coordinates of all the intersection points between the ray and the component plane model, arrange the obtained X coordinates in ascending order, and then match the intersection points in pairs to form a set of line segments, judge whether the set of line segments coincides with the dividing lines in the set of dividing lines, and retain the coincident dividing lines; select any point on the vertical dividing line , starting from a point extend a ray in the up and down directions, and calculate the number of intersection points of the ray and the component plane model , when = 0, it means that the dividing line is outside the layout plane, and the dividing line is deleted. When is odd, delete the intersection point where the ray coincides with the vertex of the component plane model and obtain the Y coordinates of the remaining intersection points. When is even, obtain the Y coordinates of all intersection points of the ray and the component plane model. After arranging the obtained Y coordinates from small to large, match the intersection points in pairs to form a set of line segments, and determine whether the line segments in the set of line segments coincide with the dividing lines in the dividing line set, and retain the coincident dividing lines.
[0015] According to the orthogonal dividing line set, the component plane model is divided into component units. The orthogonal dividing lines are instantiated according to the joint data to obtain model joints, and the cutting layout model is completed, including: obtaining the component plane model and the orthogonal dividing line set; dividing the component plane model based on the orthogonal dividing line set to obtain component units; setting the gap distance of the two-dimensional cutting component to the joint thickness according to the joint data, and instantiating the orthogonal dividing lines according to the joint thickness to obtain joints. The joints and the component units form the cutting layout model.
[0016] After completing the cutting layout model, it also includes calculating the area of each component unit according to the cutting layout model, and calculating the total area of all component units; establishing a detailed list of component area information according to the area of each component unit and the total area information of all component units.
[0017] In a second aspect, the present invention also provides a layout device for two-dimensional cutting components in a special-shaped plane, including: an initialization unit for obtaining initialization data for laying out the special-shaped plane, where the initialization data includes layout plane data, two-dimensional cutting component data, laying constraints, and joint data; a component plane model creation unit for creating a component plane model based on the layout plane data and the two-dimensional cutting component data; a calculation unit for calculating the geometric dimensions of the dividing unit according to the two-dimensional cutting component data and the joint data; a dividing line creation unit for creating dividing lines based on the component plane model, the geometric dimensions of the dividing unit, and the laying constraints, and obtaining an orthogonal dividing line set located in the special-shaped plane according to the component plane model and the dividing lines; a layout unit for dividing the component plane model according to the orthogonal dividing line set to obtain component units, and instantiating the orthogonal dividing lines according to the joint data to obtain model joints, and completing the cutting layout model.
[0018] For the beneficial effects of the above second aspect, reference can be made to the description of the above first aspect. Description of the Drawings
[0019] Figure 1Schematic flowchart of a layout method for two-dimensional cutting components in a special-shaped plane provided by an embodiment of the present invention; Figure 2 Execution flowchart of a layout method for two-dimensional cutting components in a special-shaped plane provided by an embodiment of the present invention; Figure 3 Schematic diagram of functional division of initial data provided by an embodiment of the present invention; Figure 4 Schematic flowchart of the creation process of orthogonal dividing lines provided by an embodiment of the present invention; Figure 5 Schematic diagram of a layout device for two-dimensional cutting components in a special-shaped plane provided by an embodiment of the present invention; Figure 6 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Detailed implementation manners
[0020] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein shall have the ordinary meanings understood by those of ordinary skill in the art to which the present invention pertains. The words such as "including" used herein are intended to mean that the elements or items appearing before this word cover the elements or items listed after this word and their equivalents, without excluding other elements or items.
[0021] This embodiment provides a layout method and device for two-dimensional cutting components in a special-shaped plane.
[0022] Refer to Figure 1 and Figure 2 , a layout method for two-dimensional cutting components in a special-shaped plane provided by this embodiment includes: S101: Obtain the initial data for laying out the special-shaped plane, where the initial data includes layout plane data, two-dimensional cutting component data, laying constraints, and seam data.
[0023] In a possible embodiment, refer to the appended description Figure 3, the initialization data for laying out the special-shaped plane is functionally divided into four sections: layout plane data, two-dimensional cutting member data, laying constraints, and construction joint data. The initialization data specifically includes the following data: the layout plane data includes the outer contour line and global coordinates of the special-shaped plane to be laid out, the two-dimensional cutting member data includes the length, width, thickness, and material of the two-dimensional cutting member, the laying constraints include the laying direction, laying method, and laying starting point, and the construction joint data includes the construction joint thickness.
[0024] Among them, the two-dimensional cutting member data is the data of the complete member unit used during the layout of the layout plane. When laying out the special-shaped plane, it is preferred to use the complete member unit for layout.
[0025] S102: Create a member plane model based on the layout plane data and the two-dimensional cutting member data.
[0026] In a possible embodiment, creating a member plane model based on the layout plane data and the two-dimensional cutting member data includes: obtaining the layout plane data, creating a geometric entity according to the outer contour line of the plane to be laid out; setting the thickness and material of the geometric entity to the thickness and material of the two-dimensional cutting member according to the two-dimensional cutting member data to obtain the member plane model.
[0027] S103: Calculate the geometric dimensions of the segmentation unit according to the two-dimensional cutting member data and the construction joint data.
[0028] In a specific embodiment, calculating the geometric dimensions of the segmentation unit according to the two-dimensional cutting member data and the construction joint data includes: calculating the length of the segmentation unit as the sum of the length of the two-dimensional cutting member and the construction joint thickness; calculating the width of the segmentation unit as the sum of the width of the two-dimensional cutting member and the construction joint thickness.
[0029] S104: Create a segmentation line based on the member plane model, the geometric dimensions of the segmentation unit, and the laying constraints, and obtain an orthogonal segmentation line set located within the special-shaped plane according to the member plane model and the segmentation line.
[0030] In a possible embodiment, obtain the maximum and minimum values of the outer contour line of the plane to be laid out in the X-axis direction and the Y-axis direction, and then form a minimum coordinate point (x min , y min ) composed of the minimum value in the X-axis direction and the minimum value in the Y-axis direction and a maximum coordinate point (x max , y max ) composed of the maximum value in the X-axis direction and the maximum value in the Y-axis direction, and generate an envelope rectangle that can envelope the entire plane to be laid out based on the minimum coordinate point and the maximum coordinate point.
[0031] In a possible embodiment, a dividing line is created based on the component plane model, the geometric dimensions of the dividing unit, and the laying constraints. An orthogonal dividing line set located within the irregular plane is obtained according to the component plane model and the dividing line, including: obtaining the layout plane data to determine the maximum and minimum values of the outer contour line on the coordinate axes based on the outer contour line of the plane to be laid out and the global coordinates, and generating an envelope rectangle that envelopes the plane to be laid out; obtaining the laying constraints to obtain the laying starting point, centering on the laying starting point, extending and arranging horizontal dividing lines along the set laying direction, obtaining the width of the dividing unit as the spacing between the dividing lines, and creating dividing lines parallel to the horizontal dividing lines until the envelope rectangle is filled with dividing lines to obtain the horizontal dividing line set; creating a vertical dividing line set according to the set laying method, and the horizontal dividing line set and the vertical dividing line set form the dividing line set; judging whether the dividing lines in the dividing line set are located within the plane to be laid out according to the component plane model and the dividing line set, and retaining the dividing lines when the dividing lines are located within the plane to be laid out, and the retained dividing lines form the orthogonal dividing line set.
[0032] In a specific embodiment, refer to the attached drawings of the specification Figure 4 , creating a vertical dividing line set according to the set laying method, including: when the set laying method is the continuous straight laying type, centering on the laying starting point, creating dividing lines perpendicular to the dividing lines in the horizontal dividing line set to form the vertical dividing line set; when the set laying method is the staggered straight laying type, centering on the laying starting point, and obtaining the width of the dividing unit as the length of the dividing line, creating odd-row vertical dividing lines perpendicular to the dividing lines in the horizontal dividing line set, obtaining the length of the dividing unit as the spacing between the odd-row dividing lines, and translating the length of the dividing unit along the laying direction based on the position line of the odd-row vertical dividing lines, and then translating the width of the dividing unit in the direction perpendicular to the laying direction to obtain the even-row dividing lines, and the odd-row vertical dividing lines and the even-row vertical dividing lines form the vertical dividing line set.
[0033] When the laying method is the continuous straight laying type, the spacing between the vertical dividing lines is the width of the dividing unit. When the laying method is the staggered straight laying type, the spacing between the odd-row dividing lines and the spacing between the even-row dividing lines are both the length of the dividing unit, and the spacing between the two closest dividing lines belonging to two adjacent odd and even rows is the length of the dividing unit, and such a setting can meet the engineering requirement of "offset joint".
[0034] In a specific embodiment, it is determined whether the dividing lines in the set of dividing lines are located within the plane to be laid out according to the component plane model and the set of dividing lines. When the dividing line is located within the plane to be laid out, the dividing line is retained, including: obtaining all vertex coordinates of the component plane model. Select any point P on the horizontal dividing line, extend a ray in the left and right directions starting from point P, and calculate the number of intersection points F between the ray and the component plane model. When F = 0, it means the dividing line is outside the plane to be laid out and the dividing line is deleted. When F is odd, delete the intersection points where the ray coincides with the vertices of the component plane model and obtain the X coordinates of the remaining intersection points. When F is even, obtain the X coordinates of all intersection points between the ray and the component plane model. After arranging the obtained X coordinates in ascending order, pair up the intersection points to form a set of line segments, and determine whether the set of line segments coincides with the dividing lines in the set of dividing lines, and retain the coincident dividing lines; select any point on the vertical dividing line , starting from point , extend a ray in the up and down directions, and calculate the number of intersection points between the ray and the component plane model. When = 0, it means the dividing line is outside the plane to be laid out and the dividing line is deleted. When is odd, delete the intersection points where the ray coincides with the vertices of the component plane model and obtain the Y coordinates of the remaining intersection points. When is even, obtain the Y coordinates of all intersection points between the ray and the component plane model. After arranging the obtained Y coordinates in ascending order, pair up the intersection points to form a set of line segments, and determine whether the set of line segments coincides with the dividing lines in the set of dividing lines, and retain the coincident dividing lines.
[0035] Exemplarily, select any point P on a horizontal dividing line, extend a ray in the left and right directions starting from point P, and calculate the number of intersection points F between the ray and the component plane model. When F = 0, it means the dividing line is outside the plane to be laid out and the dividing line is deleted. When F is odd, delete the intersection points where the ray coincides with the vertices of the component plane model and obtain the X coordinates of the remaining intersection points. When F is even, obtain the X coordinates of all intersection points between the ray and the component plane model. Arrange all the obtained X coordinates in ascending order as the set (x1,..., x n ), where x1 <... < x n . Connect the intersection points in the set in pairs to form straight line segments, that is, connect x1 and x2, x3 and x4, and so on. Determine the overlapping part between the straight line segments formed by the intersection points and the dividing lines in the set of dividing lines, and retain the overlapping dividing lines. Perform the above judgment process on all horizontal dividing lines in turn to obtain the set of retained horizontal dividing lines.
[0036] Select any point on the vertical dividing line , starting from point Extend a ray in the up and down directions starting from a starting point, and calculate the number of intersection points of the ray and the component plane model. When = 0, it means that the dividing line is outside the plane to be laid out, and the dividing line is deleted. When is odd, delete the intersection points where the ray coincides with the vertices of the component plane model and obtain the Y coordinates of the remaining intersection points. When is even, obtain the Y coordinates of all intersection points of the ray and the component plane model. Arrange all the obtained Y coordinates in ascending order as a set (y1,..., y n ), where y1 <... < y n . Connect the intersection points in the set in pairs to form line segments, that is, connect y1 and y2, connect y3 and y4, and so on. Judge the overlapping parts of the line segments formed by the intersection points and the dividing lines in the dividing line set, and retain the overlapping dividing lines. Perform the above judgment process on all vertical dividing lines in turn to obtain the set of retained vertical dividing lines.
[0037] The set of retained horizontal dividing lines and the set of retained vertical dividing lines form an orthogonal dividing line set.
[0038] S105: Divide the component plane model according to the orthogonal dividing line set to obtain component units, instantiate the orthogonal dividing lines according to the joint data to obtain model joints, and complete the cutting layout model.
[0039] Dividing the component plane model according to the orthogonal dividing line set to obtain component units, instantiating the orthogonal dividing lines according to the joint data to obtain model joints, and completing the cutting layout model, including: obtaining the component plane model and the orthogonal dividing line set; dividing the component plane model based on the orthogonal dividing line set to obtain component units; setting the gap distance of the two-dimensional cutting component to the joint thickness according to the joint data, instantiating the orthogonal dividing lines according to the joint thickness to obtain joints, and the joints and the component units form the cutting layout model.
[0040] In a possible embodiment, after obtaining the cutting layout model, it further includes: calculating the area of each component unit according to the cutting layout model, and calculating the total area of all component units; establishing a detailed list of component area information according to the area of each component unit and the total area information of all component units. The detailed list of component area information can be used as accurate reference data for material consumption, and can provide reference for the procurement and planning in the actual engineering materials.
[0041] The layout method of two-dimensional cutting components in a special-shaped plane provided by the present invention proposes an orthogonal cutting method for laying out two-dimensional cutting components in a special-shaped plane. By designing orthogonal dividing lines to locate the laying positions of components, closed areas are formed by horizontal and vertical intersections to determine the laying positions for each component. Applying the orthogonal cutting method proposed by the present invention for laying out two-dimensional cutting components can not only handle complex irregular layout planes but also meet the requirement of preferentially using complete component units during the layout process. It can quickly and accurately obtain the layout of two-dimensional cutting components in a special-shaped plane mainly composed of complete two-dimensional cutting components and supplemented by special-shaped component units, generate irregular components required for the edge of the special-shaped plane, achieving the effects of saving raw materials while improving the design efficiency and construction accuracy.
[0042] The layout method of two-dimensional cutting components in a special-shaped plane provided by the present invention can also be designed to form an intelligent algorithm for processing, realizing the intelligent generation of the layout design of two-dimensional cutting components.
[0043] In a specific embodiment, the intelligent algorithm design of the layout method of two-dimensional cutting components in a special-shaped plane based on the present invention creates a method body according to the method flow and requirements of the present invention, and calls some functions in the programs of existing modeling platforms to implement some calculations in the method of the present invention. By applying the layout method of two-dimensional cutting components in a special-shaped plane in the form of an intelligent algorithm, the layout efficiency of two-dimensional cutting components can be further improved.
[0044] Exemplarily, taking the creation of a method body according to the method flow and requirements of the present invention and calling the functions in some application program interfaces of the BIM modeling platform Revit software to implement some calculations as an example, the specific implementation of the intelligent algorithm for the layout method of two-dimensional cutting components in a special-shaped plane can be as follows: According to the requirements for initialization data, create a data collection module to collect initialization data.
[0045] Create a method named DuplicateFace. The DuplicateFace method is designed to execute: obtain the outer contour line of the special-shaped plane and store it in the planeFaceCurves set, create a filter to screen out the materials same as the component unit, obtain a geometric entity based on the outer contour line in planeFaceCurves, set the thickness and material of the set entity as the thickness and material of the two-dimensional cutting component in sequence, and return the finally obtained geometric entity as the component plane model.
[0046] Create a method named CalculateSplitUnits. The CalculateSplitUnits method is designed to execute: accept the length, width, and joint thickness of the two-dimensional cutting component as input parameters, and calculate the length of the split unit as the length of the two-dimensional cutting component and The sum of the thicknesses of the process seams, calculate the width of the segmentation unit as the width of the two-dimensional cutting member and the sum of the thicknesses of the process seams, and return the calculation results of the length and width of the segmentation unit as the geometric dimensions of the segmentation unit.
[0047] The creation method is named CreateEnvelope, and the CreateEnvelope method is designed to execute: call the method body to obtain the abnormal plane outer contour lines in the planeFaceCurves set to form the maximum value coordinate points and the minimum value coordinate points, generate a rectangle that can envelope the entire plane to be laid out based on the maximum and minimum coordinate points and the maximum value coordinate points, and return the generated rectangle as the envelope rectangle.
[0048] The creation method is named LayoutSplitLines, and LayoutSplitLines is designed to execute: use the CreateEnvelope method to obtain the envelope rectangle, arrange the horizontal split lines, judge the set laying method, create vertical split lines according to the set laying method, judge the positional relationship between the split lines and the plane to be laid out, retain the split lines located within the plane to be laid out, the retained split lines form an orthogonal split line set, and add the orthogonal split line set to List <cruve>And return.
[0049] Create a method named GetParaAreaData. GetParaAreaData is designed to perform the following steps: use the DuplicateFace method to obtain the component plane model, use the LayoutSplitLines method to obtain the set of orthogonal splitting lines, split the component plane model based on the set of orthogonal splitting lines to form multiple split component units, call a function to obtain the gap distance between the component units, change the gap distance between the component units to the thickness of the construction joint, instantiate the orthogonal splitting lines according to the thickness of the construction joint to obtain the construction joint, and the construction joint and the component units together form the cutting layout entity model. Traverse all component units, calculate the area of each component unit and the total area of all component units, and add the area data of the component units to the List <paraarearecord>And return.
[0050] The building area information calculated by using the GetParaAreaData method can be exported and applied in the form of a detailed list.
[0051] See the attached specification Figure 5 , this embodiment also provides a layout device for two-dimensional cutting members in a special-shaped plane, and this device is used to implement the above method embodiment. This device includes: An initialization unit 201, configured to obtain initialization data for laying out a special-shaped plane, where the initialization data includes layout plane data, two-dimensional cutting member data, laying constraints, and construction joint data.
[0052] A component plane model creation unit 202, configured to create a component plane model based on the layout plane data and the two-dimensional cutting member data.
[0053] A calculation unit 203, configured to calculate the geometric dimensions of the segmentation unit according to the two-dimensional cutting member data and the construction joint data.
[0054] A dividing line creation unit 204, configured to create dividing lines based on the component plane model, the geometric dimensions of the segmentation unit, and the laying constraints, and obtain a set of orthogonal dividing lines located in the special-shaped plane according to the component plane model and the dividing lines.
[0055] A layout unit 205, configured to divide the component plane model according to the set of orthogonal dividing lines to obtain component units, instantiate the orthogonal dividing lines according to the construction joint data to obtain model construction joints, and complete the cutting layout model.
[0056] All relevant contents of each step involved in the above method embodiment can be cited in the function description of the corresponding functional module, and will not be elaborated here.
[0057] In some other embodiments of the present application, the embodiments of the present application disclose an electronic device, as Figure 6 shown, this electronic device 300 may include: one or more processors 301; a memory 302; a display 303; one or more applications (not shown); and one or more computer programs 304. The above devices may be connected through one or more communication buses 305. Wherein the one or more computer programs 304 are stored in the above memory and are configured to be executed by the one or more processors 301. The one or more computer programs 304 include instructions, and the above instructions may be used to execute as Figure 1 , Figure 5 and each step in the corresponding embodiments.
[0058] From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0059] In each embodiment of this application, the various functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0060] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of this application embodiment, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of this application. The foregoing storage medium includes: various media such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk, or optical disc that can store program codes.
[0061] The above is only the specific implementation manner of this application embodiment, but the protection scope of this application embodiment is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application embodiment should be covered by the protection scope of this application embodiment. Therefore, the protection scope of this application embodiment should be subject to the protection scope of the claims.< / paraarearecord> < / cruve>
Claims
1. A layout method for two-dimensional cutting components in a special-shaped plane, characterized in that, Including: Obtaining initialization data for laying out a special-shaped plane, where the initialization data includes layout plane data, two-dimensional cutting member data, laying constraints, and construction joint data; Creating a member plane model based on the layout plane data and the two-dimensional cutting member data; Calculating the geometric dimensions of the segmentation unit according to the two-dimensional cutting member data and the construction joint data; Creating a segmentation line based on the member plane model, the geometric dimensions of the segmentation unit, and the laying constraints, and obtaining an orthogonal segmentation line set located within the special-shaped plane according to the member plane model and the segmentation line; Segmenting the member plane model according to the orthogonal segmentation line set to obtain member units, and instantiating the orthogonal segmentation line according to the construction joint data to obtain model construction joints, thereby completing the cutting layout model.
2. The method according to claim 1, wherein The layout plane data includes the outer contour line and global coordinates of the special-shaped plane to be laid out. The two-dimensional cutting member data includes the length, width, thickness, and material of the two-dimensional cutting member. The laying constraints include the laying direction, laying method, and laying starting point. The construction joint data includes the construction joint thickness.
3. The method according to claim 1, wherein Creating a member plane model based on the layout plane data and the two-dimensional cutting member data includes: Obtaining the layout plane data and creating a geometric entity according to the outer contour line of the plane to be laid out; Setting the thickness and material of the geometric entity to the thickness and material of the two-dimensional cutting member according to the two-dimensional cutting member data to obtain a member plane model.
4. The method according to claim 1, wherein Calculating the geometric dimensions of the segmentation unit according to the two-dimensional cutting member data and the construction joint data includes: Calculate the length of the dividing unit as the sum of the length of the two-dimensional cutting member and the thickness of the working seam; Calculate the width of the dividing unit as the sum of the width of the two-dimensional cutting member and the thickness of the working seam.
5. The method according to claim 1, characterized in that Creating a segmentation line based on the member plane model, the geometric dimensions of the segmentation unit, and the laying constraints, and obtaining an orthogonal segmentation line set located within the special-shaped plane according to the member plane model and the segmentation line, including: Obtaining the layout plane data to determine the maximum and minimum values of the outer contour line on the coordinate axes according to the outer contour line and global coordinates of the plane to be laid out, and generating an envelope rectangle that envelopes the plane to be laid out; Obtaining the laying constraints to get the laying starting point, taking the laying starting point as the center, extending and arranging horizontal segmentation lines along the set laying direction, obtaining the width of the segmentation unit as the spacing between the segmentation lines, and creating segmentation lines parallel to the horizontal segmentation lines until the envelope rectangle is filled with segmentation lines to obtain a horizontal segmentation line set; Creating a vertical segmentation line set according to the set laying method, and the horizontal segmentation line set and the vertical segmentation line set form a segmentation line set; Judging whether the segmentation lines in the segmentation line set are located within the plane to be laid out according to the member plane model and the segmentation line set. When the segmentation line is located within the plane to be laid out, retain the segmentation line, and the retained segmentation lines form an orthogonal segmentation line set.
6. The method according to claim 5, wherein Creating a vertical segmentation line set according to the set laying method includes: When the set laying method is the continuous straight laying type, taking the laying starting point as the center, creating segmentation lines perpendicular to the segmentation lines in the horizontal segmentation line set to form a vertical segmentation line set; When the set laying method is the staggered straight laying type, taking the laying starting point as the center, and obtaining the width of the dividing unit as the dividing line length, create an odd number of vertical dividing lines perpendicular to the dividing lines in the horizontal dividing line set, obtain the length of the dividing unit as the spacing between the odd-numbered dividing lines, and translate along the laying direction based on the position line of the odd-numbered vertical dividing lines the length of the dividing unit, and then translate the width of the dividing unit in the direction perpendicular to the laying direction to obtain the even-numbered dividing lines. The odd-numbered vertical dividing lines and the even-numbered vertical dividing lines form the vertical dividing line set.
7. The method according to claim 5, wherein Judging whether the segmentation lines in the segmentation line set are located within the plane to be laid out according to the member plane model and the segmentation line set. When the segmentation line is located within the plane to be laid out, retain the segmentation line, including: Obtaining all vertex coordinates of the member plane model; Select any point P on the horizontal dividing line, extend a ray in the left and right directions starting from point P, and calculate the number of intersection points F between the ray and the component plane model. When F = 0, it means the dividing line is outside the layout plane, and the dividing line is deleted. When F is odd, delete the intersection points that coincide with the vertices of the component plane model and obtain the X coordinates of the remaining intersection points. When F is even, obtain the X coordinates of all intersection points between the ray and the component plane model. After arranging the obtained X coordinates in ascending order, match the intersection points in pairs to form a set of line segments, and determine whether the set of line segments coincides with the dividing lines in the dividing line set; retain the coinciding dividing lines. Select any point on the vertical dividing line , starting from the point , extend upward and downward to obtain a ray, and calculate the number of intersection points of the ray and the component plane model . When = 0, it means that the dividing line is outside the plane to be laid out, and the dividing line is deleted. When is odd, delete the intersection point where the ray coincides with the vertex of the component plane model and obtain the Y coordinates of the remaining intersection points. When is even, obtain the Y coordinates of all intersection points of the ray and the component plane model. After arranging the obtained Y coordinates from small to large, match the intersection points in pairs to form a set of line segments, and determine whether the set of line segments coincides with the dividing lines in the dividing line set. Retain the coincident dividing lines.
8. The method according to claim 1, characterized in that, According to the orthogonal dividing line set, divide the component plane model to obtain component units, and instantiate the orthogonal dividing lines according to the joint data to obtain model joints, completing the cutting layout model, including: Obtain the component plane model and the orthogonal dividing line set; Based on the orthogonal dividing line set, divide the component plane model to obtain component units; Set the gap distance of the two-dimensional cutting component as the joint thickness according to the joint data, and instantiate the orthogonal dividing lines according to the joint thickness to obtain joints. The joints and the component units form the cutting layout model.
9. The method according to claim 1, wherein After completing the cutting layout model, it further includes: Calculate the area of each component unit according to the cutting layout model, and calculate the total area of all component units; Establish a detailed list of component area information based on the area of each component unit and the total area information of all component units.
10. A layout device for two-dimensional cutting members in a special-shaped plane, characterized in that, The device includes: An initialization unit for obtaining initialization data for laying out a shaped plane, where the initialization data includes layout plane data, two-dimensional cutting component data, laying constraints, and joint data; A component plane model creation unit for creating a component plane model based on the layout plane data and the two-dimensional cutting component data; A calculation unit for calculating the geometric dimensions of the dividing unit according to the two-dimensional cutting component data and the joint data; A dividing line creation unit for creating dividing lines based on the component plane model, the geometric dimensions of the dividing unit, and the laying constraints, and obtaining an orthogonal dividing line set located in the shaped plane according to the component plane model and the dividing lines; A layout unit for dividing the component plane model according to the orthogonal dividing line set to obtain component units, and instantiating the orthogonal dividing lines according to the joint data to obtain model joints, completing the cutting layout model.
Citation Information
Patent Citations
A method for segmenting a polygon by using any segmentation line
CN109727252A
Curved surface template segmentation method, device, computer equipment and storage medium
CN110363854A
Special-shaped curtain wall processing and segmentation method and device, computer equipment and storage medium
CN112991161A
Region cutting method and device, electronic equipment and storage medium
CN113674296A
Automatic arrangement method for ceramic tiles
CN116523132A