A method and apparatus for layout of a profiled in-plane two-dimensional cutting member
By using orthogonal cutting methods and intelligent algorithms, the problem of generating irregularly cut components in irregular planar layouts has been solved, enabling rapid and accurate component filling and material saving, thereby improving design and construction accuracy.
Patent Information
- Application Number
- CN202510887485.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-06-30
AI Technical Summary
Existing technologies struggle to generate irregularly cut components when dealing with irregularly shaped planar layouts, resulting in component units failing to cover the entire plane, creating uncovered blanks or gaps. Furthermore, there is a lack of methods for quickly generating irregularly cut components.
The orthogonal cutting method is adopted, and the component laying position is located by designing orthogonal dividing lines to form a closed area. Complete component units are used first, and a two-dimensional cutting component layout is generated by combining intelligent algorithms.
It enables the rapid and accurate generation of two-dimensional cut component layouts in irregular planes, saving raw materials, improving design efficiency and construction accuracy, and meeting the needs of irregular components at the edges of irregular planes.
Smart Images

Figure CN120372789B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of architectural design, and particularly relates to a layout method and device of two-dimensional cutting components in a special-shaped plane. BACKGROUND
[0002] Parametric design is a design method for efficiently completing architectural design by defining variables and their logical relationship with design results. It takes algorithmic thinking as the core and deeply binds design parameters and design results. In the design process, designers only need to change part of the parameters to update the entire design results.
[0003] The layout plane of two-dimensional cutting components has the characteristics of diversification and freedom. In the laying process of the layout plane, except for the reserved openings, the remaining areas need to be "fully paved" with component units to ensure that there is no blank area. The component units should be connected according to the specified laying method and keep the joint thickness uniform and smooth. In order to meet the "full paving" requirement of the special-shaped area, the component units should be cut into any shape, but in the laying process, the complete two-dimensional cutting components should be used first, and the two-dimensional cutting components are cut only in the boundary area of the layout plane.
[0004] Based on this, the prior art mainly has the following problems in the layout of two-dimensional cutting components: first, in the prior art, the component positioning is relatively regular and controllable when dealing with non-special-shaped plane layout, but it is difficult to achieve accurate positioning of the component units when facing special-shaped planes with complex curved surfaces or irregular geometric shapes; second, in non-special-shaped plane layout, because the boundary of the layout plane is simple, the components can easily cover the entire plane, but in the complex curved boundary characteristics of the special-shaped plane, it is difficult for the component units to cover the entire plane, and it is easy to produce uncovered blanks or gaps; third, in non-special-shaped plane layout, because the layout boundary is regular and simple, the components are mostly standard shapes, but in special-shaped plane layout, in order to fit the complex curved boundary, a large number of irregular cutting components will be generated in the edge area of the plane, and there is a lack of a method for quickly generating irregular cutting components.
[0005] Therefore, it is necessary to provide a layout method of two-dimensional cutting components in a special-shaped plane, which can quickly generate irregular cutting components in the special-shaped plane to solve the problem of difficulty in generating irregular cutting components in the special-shaped plane layout. SUMMARY
[0006] The present application relates to the technical field of architectural design, and particularly relates to a layout method and device of two-dimensional cutting components in a special-shaped plane.
[0007] In a first aspect, the layout method of the two-dimensional cutting component in the irregular plane provided by the application comprises: obtaining initialization data for the layout of the irregular plane, the initialization data comprising layout plane data, two-dimensional cutting component data, laying constraints and joint data; creating a component plane model based on the layout plane data and the two-dimensional cutting component data; calculating the geometric size of a segmentation unit according to the two-dimensional cutting component data and the joint data; creating a segmentation line based on the component plane model, the geometric size of the segmentation unit and the laying constraints, and obtaining a set of orthogonal segmentation lines located in the irregular plane according to the component plane model and the segmentation line; segmenting the component plane model according to the set of orthogonal segmentation lines to obtain a component unit, and instantiating the orthogonal segmentation line to obtain a model joint according to the joint data, thereby completing the cutting layout model.
[0008] The layout method of the two-dimensional cutting component in the irregular plane provided by the application has the beneficial effect that an orthogonal cutting method is proposed for the layout of the two-dimensional cutting component in the irregular plane, the laying position of the component is positioned by designing the orthogonal segmentation line, and the laying position of each component is determined by forming a closed area through the horizontal and vertical interlacing. The application of the orthogonal cutting method proposed by the application to the layout of the two-dimensional cutting component can not only process a complex irregular layout plane, but also meet the demand for preferentially using a complete component unit in the layout process. The layout of the two-dimensional cutting component in the irregular plane, which mainly uses complete two-dimensional cutting components and is supplemented by irregular component units, can be quickly and accurately obtained, irregular components required for the generation of the edge of the irregular plane can be generated, and the effect of saving raw materials and improving design efficiency and construction accuracy can be achieved. The layout method of the two-dimensional cutting component in the irregular plane provided by the application can also be designed to form an intelligent algorithm for processing, and the layout design of the two-dimensional cutting component can be intelligently generated, thereby further improving the layout efficiency of the two-dimensional cutting component.
[0009] In a possible embodiment, the layout plane data comprises the outer contour line and the global coordinates of the irregular plane to be laid out, the two-dimensional cutting component data comprises the length, width, thickness and material of the two-dimensional cutting component, the laying constraint comprises the laying direction, laying mode and laying starting point, and the joint data comprises the joint thickness.
[0010] In another possible embodiment, the creation of the component plane model based on the layout plane data and the two-dimensional cutting component data comprises: obtaining the layout plane data, and creating a geometric entity according to the outer contour line of the plane to be laid out; and setting the thickness and material of the geometric entity to the thickness and material of the two-dimensional cutting component to obtain the component plane model.
[0011] In other possible embodiments, the calculation of the geometric size of the segmentation unit according to the two-dimensional cutting component data and the joint data comprises: calculating the length of the segmentation unit as the sum of the length of the two-dimensional cutting component and the joint thickness; and calculating the width of the segmentation unit as the sum of the width of the two-dimensional cutting component and the joint thickness. In other possible embodiments, the calculation of the geometric size of the segmentation unit according to the two-dimensional cutting component data and the joint data comprises: calculating the length of the segmentation unit as the sum of the length of the two-dimensional cutting component and the joint thickness; and calculating the width of the segmentation unit as the sum of the width of the two-dimensional cutting component and the joint thickness. Sum of seam thicknesses.
[0012] Creating a segmentation line based on a component plane model, geometric size of a segmentation unit and laying constraints, obtaining an orthogonal segmentation line set located in a special plane according to the component plane model and the segmentation line, including: obtaining layout plane data to determine the maximum value of the outer contour line on the coordinate axis according to the outer contour line and global coordinates of the plane to be laid and generating an envelope rectangle enveloping the plane to be laid; obtaining a laying starting point from the laying constraints, extending a transverse segmentation line along the set laying direction with the laying starting point as the center, obtaining the width of the segmentation unit as the spacing between the segmentation lines, creating segmentation lines parallel to the transverse segmentation lines until the segmentation lines fill the envelope rectangle to obtain a transverse segmentation line set; creating a vertical segmentation line set according to the set laying mode, and the transverse segmentation line set and the vertical segmentation line set forming a segmentation line set; judging whether the segmentation lines in the segmentation line set are located in the plane to be laid according to the component plane model and the segmentation line set, and retaining the segmentation lines when the segmentation lines are located in the plane to be laid, and the retained segmentation lines forming the orthogonal segmentation line set.
[0013] Creating a vertical segmentation line set according to the set laying mode, including: when the set laying mode is a continuous straight laying type, creating segmentation lines perpendicular to the segmentation lines in the transverse segmentation line set with the laying starting point as the center to form the vertical segmentation line set; when the set laying mode is a staggered straight laying type, creating odd-numbered row vertical segmentation lines perpendicular to the segmentation lines in the transverse segmentation line set with the laying starting point as the center and obtaining the width of the segmentation unit as the length of the segmentation lines, obtaining the length of the segmentation unit as the spacing between the odd-numbered row vertical segmentation lines, and translating the position line of the odd-numbered row vertical segmentation lines along the laying direction by the length of the segmentation unit to obtain even-numbered row vertical segmentation lines, the odd-numbered row vertical segmentation lines and the even-numbered row vertical segmentation lines forming the vertical segmentation line set.
[0014] Judging whether the segmentation lines in the segmentation line set are located in the plane to be laid according to the component plane model and the segmentation line set, and retaining the segmentation lines when the segmentation lines are located in the plane to be laid, including: obtaining all vertex coordinates of the component plane model; selecting an arbitrary point P on the transverse segmentation line, extending a ray from the point P to the left and right directions to obtain a ray, calculating the number F of intersection points of the ray and the component plane model, deleting the segmentation line when F=0, deleting the intersection point of the ray and the vertex of the component plane model when F is odd and obtaining the X coordinate of the remaining intersection point, obtaining the X coordinates of all intersection points of the ray and the component plane model when F is even, arranging the obtained X coordinates from small to large and then matching the intersection points two by two to form a line segment set, judging whether the line segment set coincides with the segmentation lines in the segmentation line set, and retaining the coinciding segmentation lines; selecting an arbitrary point P on the vertical segmentation line, extending a ray from the point P to the top and bottom directions to obtain a ray, calculating the number F of intersection points of the ray and the component plane model, deleting the segmentation line when F=0, deleting the intersection point of the ray and the vertex of the component plane model when F is odd and obtaining the Y coordinate of the remaining intersection point, obtaining the Y coordinates of all intersection points of the ray and the component plane model when F is even, arranging the obtained Y coordinates from small to large and then matching the intersection points two by two to form a line segment set, judging whether the line segment set coincides with the segmentation lines in the segmentation line set, and retaining the coinciding segmentation lines. , take a point as the starting point and extend it 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 split line is outside the layout plane, and the split line is deleted, when is odd, the intersection points of the ray and the vertex of the component plane model are deleted, and the Y coordinates of the remaining intersection points are obtained, when is even, the Y coordinates of all intersection points of the ray and the component plane model are obtained, the obtained Y coordinates are arranged from small to large, and then the intersection points are matched two by two to form a set of line segments, and it is judged whether the line segment set coincides with the split line in the split line set, and the coinciding split line is retained.
[0015] According to the orthogonal split line set, the component plane model is segmented to obtain a component unit, and the orthogonal split line is instantiated according to the seam data to obtain a model seam, and the cutting layout model is completed, including: obtaining the component plane model and the orthogonal split line set; based on the orthogonal split line set, the component plane model is segmented to obtain a component unit; according to the seam data, the gap distance of the two-dimensional cutting component is set as the seam thickness, and the orthogonal split line is instantiated according to the seam thickness to obtain the seam, and the seam and the component unit form the cutting layout model.
[0016] After the cutting layout model is completed, 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; and establishing a component area information detail table according to the area of each component unit and the total area of all component units.
[0017] In the second aspect, the application also provides a layout device for a two-dimensional cutting component in a special-shaped plane, including: an initialization unit for obtaining initialization data for laying out a special-shaped plane, the initialization data including layout plane data, two-dimensional cutting component data, laying constraint and seam 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 size of a split unit according to the two-dimensional cutting component data and the seam data; a split line creation unit for creating a split line based on the component plane model, the geometric size of the split unit and the laying constraint, and obtaining an orthogonal split line set located in the special-shaped plane according to the component plane model and the split line; a layout unit for segmenting the component plane model according to the orthogonal split line set to obtain a component unit, and instantiating the orthogonal split line to obtain a model seam according to the seam data, and completing the cutting layout model.
[0018] The beneficial effects of the above-mentioned second aspect can be referred to the description of the above-mentioned first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0019] Figure 1A flowchart of a layout method of a special-shaped in-plane two-dimensional cutting component is provided in the embodiment of the present application.
[0020] Figure 2 An execution flowchart of a layout method of a special-shaped in-plane two-dimensional cutting component is provided in the embodiment of the present application.
[0021] Figure 3 A functional division diagram of initialization data is provided in the embodiment of the present application.
[0022] Figure 4 A creation flowchart of a quadrature partition line is provided in the embodiment of the present application.
[0023] Figure 5 A layout device of a special-shaped in-plane two-dimensional cutting component is provided in the embodiment of the present application.
[0024] Figure 6 An electronic device structure diagram is provided in the embodiment of the present application. DETAILED DESCRIPTION
[0025] To make the objectives, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application. Unless otherwise defined, the technical terms or scientific terms used herein should be understood as the common meanings by those skilled in the art. The similar words such as “comprise” used herein mean that the elements or objects before the words cover the elements or objects listed after the words and their equivalents, without excluding other elements or objects.
[0026] The present embodiment provides a layout method and device of a special-shaped in-plane two-dimensional cutting component.
[0027] Referring to Figure 1 and Figure 2 , the layout method of a special-shaped in-plane two-dimensional cutting component provided in the present embodiment comprises:
[0028] S101: Obtain initialization data for layout of a special-shaped plane, the initialization data comprising layout plane data, two-dimensional cutting component data, paving constraints and joint data.
[0029] In a possible embodiment, referring to the drawings of the specification Figure 3The initialization data for the layout of the irregular plane is divided into four blocks according to functions: layout plane data, two-dimensional cutting component data, laying constraints and joint data. The initialization data specifically includes the following data: the layout plane data includes the outer contour line and global coordinates of the irregular plane to be laid out, the two-dimensional cutting component data includes the length, width, thickness and material of the two-dimensional cutting component, the laying constraints include the laying direction, laying method and laying starting point, and the joint data includes the joint thickness.
[0030] The two-dimensional cutting component data is the data of a complete component unit used for laying the layout plane, and the complete component unit is preferentially used for laying the layout irregular plane.
[0031] S102: creating a component plane model based on the layout plane data and the two-dimensional cutting component data.
[0032] In a possible embodiment, creating a component plane model based on the layout plane data and the two-dimensional cutting component 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; and setting the thickness and material of the geometric entity to the thickness and material of the two-dimensional cutting component to obtain the component plane model.
[0033] S103: calculating the geometric size of the segmentation unit according to the two-dimensional cutting component data and the joint data.
[0034] In a specific embodiment, calculating the geometric size of the segmentation unit according to the two-dimensional cutting component data and the joint data includes: calculating the length of the segmentation unit as the sum of the length of the two-dimensional cutting component and the joint thickness; and calculating the width of the segmentation unit as the sum of the width of the two-dimensional cutting component and the joint thickness.
[0035] S104: creating a segmentation line based on the component plane model, the geometric size of the segmentation unit and the laying constraints, and obtaining a set of orthogonal segmentation lines located in the irregular plane according to the component plane model and the segmentation line.
[0036] In a possible embodiment, the extreme values of the outer contour line of the plane to be laid out in the X-axis direction and the Y-axis direction are obtained, and then a minimum value coordinate point (x min , y min ) composed of the minimum value of the X-axis direction and the minimum value of the Y-axis direction and a maximum value coordinate point (x max , y max ) composed of the maximum value of the X-axis direction and the maximum value of the Y-axis direction are formed, and an envelope rectangle capable of enveloping the entire plane to be laid out is generated based on the minimum value coordinate point and the maximum value coordinate point.
[0037] In one possible embodiment, the segmentation lines are created based on a component plane model, geometric dimensions of a segmentation unit and laying constraints, and a set of orthogonal segmentation lines in a special plane is obtained according to the component plane model and the segmentation lines, including: obtaining layout plane data to determine the maximum value of an outer contour line on a coordinate axis according to the outer contour line of a plane to be laid and global coordinates, and generating an envelope rectangle enveloping the plane to be laid; obtaining a laying starting point from the laying constraints, extending a transverse segmentation line along a set laying direction with the laying starting point as a center, obtaining the width of the segmentation unit as the spacing between the segmentation lines, creating segmentation lines parallel to the transverse segmentation lines until the segmentation lines fill the envelope rectangle to obtain a set of transverse segmentation lines; creating a set of vertical segmentation lines according to a set laying mode, and the set of transverse segmentation lines and the set of vertical segmentation lines form a set of segmentation lines; judging whether the segmentation lines in the set of segmentation lines are located in the plane to be laid according to the component plane model and the set of segmentation lines, and retaining the segmentation lines when the segmentation lines are located in the plane to be laid, and the retained segmentation lines form a set of orthogonal segmentation lines.
[0038] In one specific embodiment, referring to the drawings Figure 4 , creating a set of vertical segmentation lines according to a set laying mode includes: when the set laying mode is a continuous straight laying type, creating segmentation lines perpendicular to the segmentation lines in the set of transverse segmentation lines with the laying starting point as a center to form the set of vertical segmentation lines; when the set laying mode is a staggered straight laying type, creating odd-numbered row vertical segmentation lines perpendicular to the segmentation lines in the set of transverse segmentation lines with the laying starting point as a center and obtaining the width of the segmentation unit as the length of the segmentation lines, translating the position line of the odd-numbered row vertical segmentation lines along the laying direction by the length of the segmentation unit, and translating the odd-numbered row vertical segmentation lines along a direction perpendicular to the laying direction by the width of the segmentation unit to obtain even-numbered row vertical segmentation lines, and the odd-numbered row vertical segmentation lines and the even-numbered row vertical segmentation lines form the set of vertical segmentation lines.
[0039] When the laying mode is the continuous straight laying type, the spacing between the vertical segmentation lines is the width of the segmentation unit. When the laying mode is the staggered straight laying type, the spacing between the odd-numbered row vertical segmentation lines and the spacing between the even-numbered row vertical segmentation lines are both the length of the segmentation unit, and the spacing between the nearest two segmentation lines belonging to two rows of adjacent odd-numbered and even-numbered rows is the length of the segmentation unit, and such setting can achieve the engineering requirement of “staggered joint”.
[0040] In a specific embodiment, the process involves determining whether a dividing line in the dividing line set is located within the plane to be laid out, based on the component plane model and the dividing line set. If the dividing line is located within the plane to be laid out, it is retained. This includes: obtaining the coordinates of all vertices of the component plane model; selecting any point P on the horizontal dividing line, extending a ray to the left and right from point P, calculating the number F of intersections between this ray and the component plane model; when F=0, the dividing line is deleted because it is outside the plane to be laid out; when F is odd, deleting the intersections of the ray with the vertices of the component plane model and obtaining the X coordinates of the remaining intersections; when F is even, obtaining the X coordinates of all intersections of the ray with the component plane model, arranging the obtained X coordinates from smallest to largest, matching the intersections pairwise to form a set of line segments, determining whether the line segment set coincides with the dividing lines in the dividing line set, and retaining the coinciding dividing lines; selecting any point on the vertical dividing line... , with point Starting from a point, extend a ray upwards and downwards to obtain a ray. Calculate the number of intersection points between this ray and the planar model of the component. ,when =0 indicates that the dividing line is deleted outside the plane to be laid out. When the number is odd, delete the intersection points where the ray coincides with the vertex of the component's planar model and obtain the Y coordinates of the remaining intersection points. When the number is even, obtain the Y coordinates of all intersection points between the ray and the planar model of the component. Arrange the obtained Y coordinates from smallest to largest and then match the intersection points pairwise to form a set of line segments. Determine whether the set of line segments coincides with the dividing lines in the set of dividing lines, and retain the coinciding dividing lines.
[0041] For example, select any point P on a horizontal dividing line, and extend a ray to the left and right from point P to obtain a ray. Calculate the number F of intersections between this ray and the component's planar model. When F=0, it means the dividing line is deleted outside the layout plane. When F is odd, delete the intersections of the ray with the vertices of the component's planar model and obtain the X coordinates of the remaining intersections. When F is even, obtain the X coordinates of all intersections of the ray with the component's planar model. Arrange all the obtained X coordinates in ascending order into a set (x1, ..., x...). n ), where x1 < ... < x n Connect each intersection point in the set to form a straight line segment, i.e., connect x1 and x2, x3 and x4, and so on. Determine the overlap between the straight line segments formed by connecting 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.
[0042] Select any point on the vertical dividing line , with point A ray is obtained by extending upward and downward from the starting point, and the number of intersection points of the ray and the component plane model is calculated When =0, the split line is deleted outside the layout plane, and when is odd, the intersection point of the ray and the component plane model vertex is deleted, and the Y coordinates of the remaining intersection points are obtained, and when is even, the Y coordinates of all intersection points of the ray and the component plane model are obtained. All the obtained Y coordinates are arranged in ascending order to form a set (y1, …, y n ), wherein y1<…<y n , and the intersection points in the set are connected two by two to form straight line segments, i.e. y1 and y2 are connected, y3 and y4 are connected, and so on. The overlapping part of the straight line segment formed by connecting the intersection points and the split line set is judged, and the overlapping split line is retained. The above judgment process is performed on all vertical split lines in turn to obtain the retained vertical split line set.
[0043] The retained horizontal split line set and the retained vertical split line set form an orthogonal split line set.
[0044] S105: According to the orthogonal split line set, the component plane model is segmented to obtain the component unit, and the model seam is obtained by instantiating the orthogonal split line according to the seam data, and the cutting layout model is completed.
[0045] According to the orthogonal split line set, the component plane model is segmented to obtain the component unit, and the model seam is obtained by instantiating the orthogonal split line according to the seam data, and the cutting layout model is completed, including: obtaining the component plane model and the orthogonal split line set; based on the orthogonal split line set, the component plane model is segmented to obtain the component unit; according to the seam data, the gap distance of the two-dimensional cutting component is set to the seam thickness, and the orthogonal split line is instantiated according to the seam thickness to obtain the seam, and the seam and the component unit form the cutting layout model.
[0046] In a possible embodiment, after obtaining the cutting layout model, further comprising: calculating the area of each component unit according to the cutting layout model, and calculating the total area of all component units; and establishing a component area information detail table according to the area of each component unit and the total area of all component units. The component area information detail table can be used as accurate material consumption reference data, and can provide reference for actual engineering material procurement and planning.
[0047] The layout method of the two-dimensional cutting component in the special plane provided by the application proposes an orthogonal cutting method for the layout of the two-dimensional cutting component in the special plane, positions the laying position of the component through the design of the orthogonal division line, forms a closed area through the horizontal and vertical stagger, and determines the laying position of each component. The layout of the two-dimensional cutting component by the orthogonal cutting method proposed by the application can not only process a complex special layout plane, but also meet the demand of preferentially using a complete component unit in the layout process. The layout of the two-dimensional cutting component in the special plane mainly using the complete two-dimensional cutting component and supplemented by the special component unit can be quickly and accurately obtained, the irregular component required by the edge of the special plane is generated, and the effect of saving raw materials and improving the design efficiency and construction accuracy is achieved.
[0048] The layout method of the two-dimensional cutting component in the special plane provided by the application can also be designed to form an intelligent algorithm for processing, and the layout design of the two-dimensional cutting component is intelligently generated.
[0049] In a specific embodiment, the intelligent algorithm design of the layout method of the two-dimensional cutting component in the special plane based on the application is to create a method body according to the method process and requirements of the application, and to call some functions in the program of the existing modeling platform to realize some calculations in the method of the application. The layout efficiency of the two-dimensional cutting component can be further improved by designing the layout method of the two-dimensional cutting component in the special plane into an intelligent algorithm.
[0050] Exemplarily, the intelligent algorithm of the layout method of the two-dimensional cutting component in the special plane can be as follows: according to the method process and requirements of the application, a method body is created, and some functions in the application program interface of the BIM modeling platform Revit software are called to realize some calculations.
[0051] According to the requirement of the initialization data, a data collection module is created to collect the initialization data.
[0052] The method is named DuplicateFace, and the DuplicateFace method is designed to execute: the outer contour line of the special plane is obtained and stored in the planeFaceCurves collection, a filter is created to screen out the same material as the component unit, a geometric entity is obtained according to the outer contour line in the planeFaceCurves, the thickness and material of the collection entity are sequentially set as the thickness and material of the two-dimensional cutting component, and the final obtained geometric entity is returned as the component plane model.
[0053] The method is named as CalculateSplitUnits, and the CalculateSplitUnits method is designed to perform: accepting the length, width and seam thickness of the two-dimensional cutting member as input parameters, calculating the length of the split unit as the sum of the length of the two-dimensional cutting member and the seam thickness, calculating the width of the split unit as the sum of the width of the two-dimensional cutting member and the seam thickness, and returning the calculation results of the length and width of the split unit as the geometric dimensions of the split unit.
[0054] The method is named as CreateEnvelope, and the CreateEnvelope method is designed to perform: calling the method body to obtain the irregular plane outer contour line in the planeFaceCurves set to form the maximum coordinate point and the minimum coordinate point, generating a rectangle capable of enveloping the entire layout plane based on the maximum and minimum coordinate points and the maximum coordinate point, and returning the generated rectangle as the envelope rectangle.
[0055] The method is named as LayoutSplitLines, and the LayoutSplitLines is designed to perform: obtaining the envelope rectangle using the CreateEnvelope method, arranging the horizontal split lines, judging the set laying mode, creating the vertical split lines according to the set laying mode, judging the positional relationship between the split lines and the layout plane, retaining the split lines located in the layout plane, the retained split lines forming an orthogonal split line set, and adding the orthogonal split line set to List <cruve>and return.
[0056] The creating method is named GetParaAreaData, which is designed to perform: obtaining the component planar model using the DuplicateFace method, obtaining the set of orthogonal split lines using the LayoutSplitLines method, segmenting the component planar model based on the set of orthogonal split lines to form a plurality of segmented component units, calling a function to obtain the gap distance of the component unit, changing the gap distance of the component unit to the joint thickness, instantiating the orthogonal split line according to the joint thickness to obtain the joint, and the joint and the component unit jointly forming the cut layout solid model. All component units are traversed, the area of each component unit and the total area of all component units are calculated, the area data of the component unit is added to List <paraarearecord>And return.
[0057] The construction area information calculated using the GetParaAreaData method can be exported in the form of a detailed table for application.
[0058] Referring to the drawings accompanying the Figure 5 The embodiment also provides a layout device for a special-shaped in-plane two-dimensional cutting component, which is used to implement the above method embodiment. The device comprises:
[0059] An initialization unit 201 is configured to acquire initialization data for layout of a special-shaped plane, the initialization data comprising layout plane data, two-dimensional cutting component data, paving constraints and joint data.
[0060] A component plane model creating unit 202 is configured to create a component plane model based on the layout plane data and the two-dimensional cutting component data.
[0061] A calculating unit 203 is configured to calculate geometric dimensions of a segmentation unit according to the two-dimensional cutting component data and the joint data.
[0062] A segmentation line creating unit 204 is configured to create a segmentation line based on the component plane model, the geometric dimensions of the segmentation unit and the paving constraints, and to obtain a set of orthogonal segmentation lines located in the special-shaped plane according to the component plane model and the segmentation line.
[0063] A layout unit 205 is configured to segment the component plane model according to the set of orthogonal segmentation lines to obtain a component unit, to obtain a model joint according to the joint data by instantiating the orthogonal segmentation line, and to complete a cutting layout model.
[0064] All related content of each step involved in the above method embodiment can be cited from the function description of the corresponding function module, and will not be repeated here.
[0065] In some other embodiments of the present application, the present embodiment discloses an electronic device, as shown in the Figure 6 The electronic device 300 can include one or more processors 301, a memory 302, a display 303, one or more application programs (not shown), and one or more computer programs 304, which can be connected through one or more communication buses 305. The one or more computer programs 304 are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs 304 include instructions that can be used to perform each step in the Figure 1 、 Figure 5 and corresponding embodiments.
[0066] Those skilled in the art can clearly understand the technical solutions of the present application according to the above description of the embodiments, and for the convenience and brevity of description, only the division of the above functional modules is taken as an example, and in actual application, the above functions can be completed by different functional modules according to needs, 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 process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0067] The functional units in the various embodiments of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0068] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor execute all or part of the steps of the method described in various embodiments of the present application. The foregoing storage medium includes: a flash memory, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and various media that can store program codes.
[0069] The above is only a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited to this. Any change or replacement within the technical scope disclosed in the embodiments of the present application should be covered in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.< / paraarearecord> < / cruve>
Claims
1. A method of laying out a profiled in-plane two-dimensional cutting member, characterized by, The method comprises the following steps: obtaining initialization data for layout of a special-shaped plane, the initialization data comprising layout plane data, two-dimensional cutting component data, laying constraints and joint data; creating a component plane model based on the layout plane data and the two-dimensional cutting component data; calculating the geometric size of a partition unit according to the two-dimensional cutting component data and the joint data; creating partition lines based on the component plane model, the geometric size of the partition unit and the laying constraints, and obtaining a set of orthogonal partition lines in the special-shaped plane according to the component plane model and the partition lines; segmenting the component plane model according to the set of orthogonal partition lines to obtain a component unit, and instantiating the orthogonal partition lines to obtain a model joint according to the joint data, thereby completing the cutting layout model; the step of creating partition lines based on the component plane model, the geometric size of the partition unit and the laying constraints, and obtaining a set of orthogonal partition lines in the special-shaped plane according to the component plane model and the partition lines comprises the following steps: obtaining the layout plane data to determine the maximum value of the outer contour line on the coordinate axis according to the outer contour line and the 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 obtain a laying starting point, and arranging a horizontal partition line along a set laying direction with the laying starting point as the center; obtaining the width of the partition unit as the spacing between the partition lines, and creating partition lines parallel to the horizontal partition line until the partition lines fill the envelope rectangle to obtain a set of horizontal partition lines; creating a set of vertical partition lines according to a set laying mode, and combining the set of horizontal partition lines and the set of vertical partition lines to obtain a set of partition lines; and determining whether the partition lines in the set of partition lines are located in the plane to be laid out according to the component plane model and the set of partition lines, and retaining the partition lines when the partition lines are located in the plane to be laid out, wherein the retained partition lines form a set of orthogonal partition lines. According to the component plane model and the set of split lines, it is judged whether a split line in the set of split lines is located in a plane to be laid out, and the split line is kept when it is located in the plane to be laid out, comprising: obtaining all vertex coordinates of the component plane model; selecting an arbitrary point P on a horizontal split line, extending a ray from the point P to left and right directions, calculating the number F of intersection points of the ray and the component plane model, deleting the split line when F=0, which indicates that the split line is outside the plane to be laid out, deleting an intersection point of the ray and the vertex of the component plane model when F is odd and obtaining the X coordinate of the remaining intersection point, obtaining the X coordinates of all intersection points of the ray and the component plane model when F is even, arranging the obtained X coordinates from small to large, matching the intersection points two by two to form a set of line segments, judging whether the set of line segments coincides with the split line in the set of split lines, and keeping the coincident split line; selecting an arbitrary point on a vertical split line, extending a ray from the point to up and down directions, calculating the number F of intersection points of the ray and the component plane model, , deleting the split line when =0, which indicates that the split line is outside the plane to be laid out, deleting an intersection point of the ray and the vertex of the component plane model when is odd and obtaining the Y coordinate of the remaining intersection point, obtaining the Y coordinates of all intersection points of the ray and the component plane model when is even, arranging the obtained Y coordinates from small to large, matching the intersection points two by two to form a set of line segments, judging whether the set of line segments coincides with the split line in the set of split lines, and keeping the coincident split line.
2. The method of claim 1, wherein, The layout plane data comprises the outer contour line and the global coordinates of the special-shaped plane to be laid out, the two-dimensional cutting component data comprises the length, width, thickness and material of the two-dimensional cutting component, the laying constraints comprise the laying direction, laying mode and laying starting point, and the joint data comprises the joint thickness.
3. The method of claim 1, wherein, The step of creating a component plane model based on the layout plane data and the two-dimensional cutting component data comprises the following steps: 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 component to obtain the component plane model according to the two-dimensional cutting component data.
4. The method of claim 1, wherein, The step of calculating the geometric size of a partition unit according to the two-dimensional cutting component data and the joint data comprises the following steps: the length of the cutting unit is the length of the two-dimensional cutting member and the sum of the stitch thicknesses; The width of the cutting unit is calculated as the sum of the widths of the two-dimensional cutting members and the sum of the stitch thicknesses.
5. The method of claim 1, wherein, creating a set of vertical partition lines according to a set laying mode, which comprises the following steps: when the set laying mode is a continuous straight laying type, creating partition lines perpendicular to the partition lines in the set of horizontal partition lines with the laying starting point as the center to form the set of vertical partition lines; When the set laying mode is the staggered straight laying type, the laying starting point is taken as the center, the width of the segmentation unit is taken as the segmentation line length, an odd-numbered row of vertical segmentation lines perpendicular to the segmentation lines in the horizontal segmentation line set is created, the length of the segmentation unit is taken as the spacing between the odd-numbered row of vertical segmentation lines, and the position line of the odd-numbered row of vertical segmentation lines is translated in the laying direction The length of the segmentation unit, and the width of the segmentation unit is translated in a direction perpendicular to the laying direction to obtain an even-numbered row of segmentation lines. The odd-numbered row of vertical segmentation lines and the even-numbered row of vertical segmentation lines form a vertical segmentation line set.
6. The method of claim 1, wherein, the step of segmenting the component plane model according to the set of orthogonal partition lines to obtain a component unit, and instantiating the orthogonal partition lines to obtain a model joint according to the joint data, thereby completing the cutting layout model, which comprises the following steps: obtaining the component plane model and the set of orthogonal partition lines; segment the component plane model based on the set of orthogonal split lines to obtain component units; set a gap distance of the two-dimensional cut component to a seam thickness according to the seam data, and instantiate orthogonal split lines according to the seam thickness to obtain a seam, the seam and the component units forming a cut layout model.
7. The method of claim 1, wherein, After the cut layout model is completed, the method further includes: calculating an area of each of the component units and a total area of all the component units according to the cut layout model; establishing a component area information list according to the area of each of the component units and the total area of all the component units.
8. An apparatus for laying out a profiled in-plane two-dimensional cutting member, characterized by The apparatus includes: an initialization unit configured to obtain initialization data for the layout irregular plane, the initialization data including layout plane data, two-dimensional cut component data, laying constraints, and seam data; a component plane model creation unit configured to create a component plane model based on the layout plane data and the two-dimensional cut component data; a calculation unit configured to calculate geometric dimensions of split units according to the two-dimensional cut component data and the seam data; a split line creation unit configured to create split lines based on the component plane model, the geometric dimensions of the split units, and the laying constraints, and to obtain a set of orthogonal split lines within the irregular plane according to the component plane model and the split lines; a layout unit configured to segment the component plane model based on the set of orthogonal split lines to obtain component units, and to instantiate orthogonal split lines according to the seam data to obtain model seams, and to complete a cut layout model; the split line creation unit is configured to obtain the layout plane data to determine maximum values of an outer contour line on coordinate axes and generate an envelope rectangle that envelopes the layout plane according to an outer contour line and global coordinates of the layout plane, obtain a laying starting point according to the laying constraints, arrange a horizontal split line along a set laying direction with the laying starting point as a center, obtain a width of a split unit as a distance between split lines, create split lines parallel to the horizontal split line until the split lines fill the envelope rectangle to obtain a set of horizontal split lines, create a set of vertical split lines according to a set laying mode, and the set of horizontal split lines and the set of vertical split lines form a set of split lines; and determine whether a split line in the set of split lines is within the layout plane according to the component plane model and the set of split lines, retain the split line when the split line is within the layout plane, and the retained split lines form a set of orthogonal split lines. According to the component plane model and the set of split lines, it is judged whether a split line in the set of split lines is located in a plane to be laid out, and the split line is kept when it is located in the plane to be laid out, comprising: obtaining all vertex coordinates of the component plane model; selecting an arbitrary point P on a horizontal split line, extending a ray from the point P to left and right directions, calculating the number F of intersection points of the ray and the component plane model, deleting the split line when F=0, which indicates that the split line is outside the plane to be laid out, deleting an intersection point of the ray and the vertex of the component plane model when F is odd and obtaining the X coordinate of the remaining intersection point, obtaining the X coordinates of all intersection points of the ray and the component plane model when F is even, arranging the obtained X coordinates from small to large, matching the intersection points two by two to form a set of line segments, judging whether the set of line segments coincides with the split line in the set of split lines, and keeping the coincident split line; selecting an arbitrary point on a vertical split line, extending a ray from the point to up and down directions, calculating the number F of intersection points of the ray and the component plane model, deleting the split line when =0, which indicates that the split line is outside the plane to be laid out, deleting an intersection point of the ray and the vertex of the component plane model when is odd and obtaining the Y coordinate of the remaining intersection point, obtaining the Y coordinates of all intersection points of the ray and the component plane model when is even, arranging the obtained Y coordinates from small to large, matching the intersection points two by two to form a set of line segments, judging whether the set of line segments coincides with the split line in the set of split lines, and keeping the coincident split line.
Citation Information
Patent Citations
A method for segmenting a polygon by using any segmentation line
CN109727252A
Automatic arrangement method for ceramic tiles
CN116523132A