Method for solving optimal projection plane of spatial structure construction drawing and automatic generation of drawing

By solving for the optimal projection plane and automatically arranging blocks, the problems of overlapping text and complex drawing output in construction drawings are solved, and efficient automatic drawing and clear drawing generation of construction drawings for complex spatial structures are realized.

CN115170688BActive Publication Date: 2025-12-05JIAOHE (SHANGHAI) ENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210855354.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2025-12-05
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

Existing technology cannot select the optimal projection plane, resulting in overlapping text in construction drawings. Furthermore, it cannot automatically generate clear construction drawings, leading to cumbersome, time-consuming, and inaccurate drawing output.

Method used

By solving for the optimal projection plane and automatically arranging blocks, the structural information of all components is obtained through traversal, the optimal two-dimensional projection plane is determined, and the overall structural drawings are automatically generated by combining the optimal block arrangement method.

Benefits of technology

It enables the automatic drawing of construction drawings for complex spatial structures, improving drawing efficiency by more than 90% and ensuring that the text overlap rate on the drawings is less than 5%, which meets the standards for construction drawing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115170688B_ABST
    Figure CN115170688B_ABST
Patent Text Reader

Abstract

The application discloses a method for solving optimal projection plane of spatial structure construction drawing and automatically generating drawing, which comprises the following steps: firstly, traversing all components to obtain structure information; secondly, determining optimal two-dimensional projection plane according to the projection plane solving method; and finally, realizing automatic generation of overall structure drawing by combining the projection plane and the optimal block arrangement method. Through the optimal projection plane solving and automatic block arrangement, the application can analyze any complex three-dimensional structure, can determine the optimal projection scheme, and can present the three-dimensional model in the optimal form as a two-dimensional drawing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to a kind of for the technical field of architectural design manufacturing, mechanical design manufacturing etc., specifically a kind of space structure construction drawing optimal projection plane solving and drawing automatic generation method. BACKGROUND

[0002] For building structure, in the construction process, the designed space structure needs to be drawn into a set of two-dimensional drawings.For the quality of drawings, it is usually required that the installation drawings of each component are projected to coincide with each other, and the structure of the drawings is clear and the layout of the drawings is reasonable.For complex building space structure, selecting the optimal projection plane and reasonably arranging the drawings according to the structure characteristics is the difficulty of engineering drawing.With the rapid development of space structure, the development of computer-aided design technology in this field is relatively slow.Firstly, the domestic structure design software is less self-developed, and most of the software is based on foreign software for research and development, which is greatly restricted in the upstream.Secondly, the drawing in the field of domestic space design is still relatively traditional, and the manual drawing is time-consuming and laborious, and is not intelligent enough.The use of computer-aided drawing has improved the engineering efficiency, but for the structure characteristics of different building structures, selecting the optimal projection plane and arranging the drawings in the most resource-saving scheme is still a difficult technology for computer-aided drawing. SUMMARY

[0003] The present application proposes a space structure construction drawing optimal projection plane solving and drawing automatic generation method to solve the problem of selecting the optimal projection plane, solving the problem of overlapping text in construction drawings, and automatically generating clear construction drawings, which is complex, time-consuming and not accurate.The optimal projection plane solving and automatic layout of blocks can analyze any complex three-dimensional structure, determine the optimal projection scheme, and present the three-dimensional model in the form of two-dimensional drawings.

[0004] The present application is realized by the following technical solutions:

[0005] The present application relates to a kind of space structure construction drawing optimal projection plane solving and drawing automatic generation method, first traverses all components to obtain structure information, then determines the optimal two-dimensional projection plane according to the projection plane solving method, and finally realizes the automatic generation of overall structure drawings by combining the projection plane through block optimal arrangement method.

[0006] The present application relates to a system for implementing the above method, comprising a model traversal module, a projection plane module, a tile set generation module and a drawing area arrangement module, wherein: the model traversal module performs component length algorithm processing according to existing component information of the model to obtain a judgment basis, i.e., the minimum component size; the projection plane module performs projection plane algorithm processing according to model information to obtain an optimal projection plane; the tile set generation module performs tile optimal arrangement algorithm processing according to tile coordinate information to obtain the most reasonable tile set; and the drawing area arrangement module performs drawing area arrangement algorithm processing according to tile and drawing area coordinate information to realize automatic generation of drawing areas.

[0007] Technical effects

[0008] The present application can realize automatic drawing of complex spatial structure construction drawings through the optimal projection plane algorithm and the automatic drawing algorithm; the construction drawing drawing efficiency of complex spatial structures can be improved by more than 90%, the optimal projection plane of the structure can be obtained through the present technology, and the text overlap rate of the drawing is less than 5%, which fully meets the requirements of the construction drawing drawing standard. BRIEF DESCRIPTION OF DRAWINGS

[0009] Figure 1 is a flowchart of the present application;

[0010] Figure 2 is a flowchart for determining the optimal projection plane;

[0011] Figure 3 is a flowchart for determining the Y-axis direction of the projection plane;

[0012] Figure 4 is a flowchart for automatically arranging tiles;

[0013] Figure 5 is a structure installation drawing obtained by not using the optimal projection plane solving method;

[0014] Figure 6 is a structure installation drawing obtained by using the optimal projection plane solving method;

[0015] Figure 7 is a drawing obtained by not using the automatic tile arrangement method;

[0016] Figure 8 is a drawing obtained by using the automatic tile arrangement method;

[0017] Figure 9 is a structure plan and elevation drawing in the embodiment;

[0018] Figure 10 is a partial structure installation drawing in the embodiment. DETAILED DESCRIPTION

[0019] Embodiment 1

[0020] As Figure 1 shown, the method for solving the optimal projection plane of the construction drawing of a spatial structure and automatically generating the drawing is as follows: the optimal two-dimensional projection plane is determined by traversing the three-dimensional model and calculating the two-dimensional rectangular bounding box according to the node convex hull in the X-axis direction of the projection plane; then the tile set obtained by the tile optimal arrangement algorithm is placed in the drawing area in an iterative updating manner to realize the automatic generation of the drawing.

[0021] As Figure 2 shown, the optimal two-dimensional projection plane is obtained in the following manner:

[0022] Step 1) Traversing the member: determining the minimum member parameter (minMemberRefLength) as the basis for subsequent judgment: calculating the member size and taking the minimum member size * coefficient as the minimum member parameter (minMemberRefLength) as the basis for subsequent judgment, which is specifically: member size = |member A end coordinate-member B end coordinate|, minimum member parameter = minimum member size * coefficient.

[0023] Step 2) Calculating the maximum difference of X, Y, Z coordinates of all nodes, i.e. the two end points of the member, and setting the coordinate axis direction with the maximum difference as the X-axis direction mainX of the projection plane, which is specifically: the maximum difference of X coordinates is the maximum value obtained by subtracting all pairs of X coordinates, the maximum difference of Y coordinates is the maximum value obtained by subtracting all pairs of Y coordinates, and the maximum difference of Z coordinates is the maximum value obtained by subtracting all pairs of Z coordinates.

[0024] Step 3) Projecting the X-axis direction mainX of all nodes, taking a vector projectionX perpendicular to the X-axis direction of the projection plane as the X-axis direction after projection, and calculating the convex hull of all projected nodes, i.e. the convex combination of all points in a set.

[0025] Step 4) Rotating the two-dimensional rectangular bounding box of the projected nodes around the X-axis direction mainX of the projection plane, and taking the minimum area as the final two-dimensional bounding box, which is specifically: calculating the two-dimensional rectangular bounding box of the projected nodes, setting the two perpendicular edge directions of the rectangular bounding box: the first direction D1 and the second direction D2, wherein the initial value of the first direction D1 is the vector projectionX perpendicular to the X-axis direction of the projection plane, rotating around the X-axis direction mainX of the projection plane for n times, and the rotation step is calculating the two-dimensional rectangular bounding box of the convex hull nodes in the two perpendicular edge directions of the rectangular bounding box, i.e. the first direction D1 and the second direction D2, and taking the minimum area as the final two-dimensional bounding box.

[0026] Step 5) According to the first direction D1 and the second direction D2 of the two perpendicular edges of the two-dimensional rectangular bounding box and the first length L1 and the second length L2 corresponding to the directions of the two perpendicular edges of the two-dimensional rectangular bounding box, the Y-axis direction mainY of the projection plane is determined, as shown in the following formula: Figure 3 Specifically, the method comprises the following steps:

[0027] ① When the first length L1 and the second length L2 are both 0, it indicates that the model is a one-dimensional model, and the Y-axis direction mainY of the projection plane is determined as the first direction D1 or the second direction D2;

[0028] ② When one of the first length L1 and the second length L2 is 0, it indicates that the model is a two-dimensional model, and the Y-axis direction mainY of the projection plane is determined as the direction of the first length L1 or the second length L2 which is not 0;

[0029] ③ When the first length L1 and the second length L2 are both not 0:

[0030] a. The Y-axis direction mainY of the projection plane is determined as the first direction D1 or the second direction D2, and the original points are projected on the plane formed by the X-axis direction mainX of the projection plane and the Y-axis direction mainY of the projection plane.

[0031] b. The first number s1 and the second number s2 of the points in the projection plane whose intermediate distance is less than the minimum member parameter (minMemberRefLength) are obtained, respectively, and the first distance d1 and the second distance d2 of the points in the projection plane whose intermediate distance is less than the minimum member parameter (minMemberRefLength) are obtained.

[0032] c. The direction of the bounding box corresponding to the smaller value of the first number s1 and the second number s2 is selected as the Y-axis direction mainY of the projection plane, or when the first number s1 and the second number s2 are the same, the direction of the bounding box corresponding to the larger value of the first distance d1 and the second distance d2 is selected as the Y-axis direction mainY of the projection plane.

[0033] Step 6) The X-axis direction mainX of the projection plane is rotated by an angle θ around the Y-axis direction mainY of the projection plane, and step 5) is repeated to determine the final X-axis direction mainX of the projection plane. The optimal two-dimensional projection plane is the projection plane with the X-axis direction mainX of the projection plane and the Y-axis direction mainY of the projection plane as the main axes.

[0034] In the embodiment, the angle θ is in the range of -45° to +45°, but in order to improve the calculation efficiency, combined with engineering practical experience, θ can be ±45°, ±30°, ±15°, 0°.

[0035] As shown in the following formula: Figure 5 ,Figure 6 As shown in the figure, the drawing result without using the method is shown for comparison to present the use effect of the method Figure 5 As shown in the figure, the drawing result after using the method is shown for comparison to present the use effect of the method Figure 6 As shown in the figure, the drawing result after using the method is shown for comparison to present the use effect of the method

[0036] As shown in the figure, the drawing result after using the method is shown for comparison to present the use effect of the method Figure 4 As shown in the figure, the drawing result after using the method is shown for comparison to present the use effect of the method

[0037] Step 1) generating a set of drawing blocks: binding the drawing blocks with position attachment relationship as a set of drawing blocks, such as plan and elevation drawings, calculating the relative offset vector of each drawing block, specifically: generating a set of drawing blocks relative offset vector = drawing block after binding coordinates-drawing block before binding coordinates.

[0038] Step 2) determining the initial available drawing area of the drawing: considering the position of the drawing frame and the position of the drawing name bar, obtaining the initial rectangular area of the drawing as the initial available drawing area, specifically: the initial available drawing area upper left corner coordinate = the drawing frame area upper left corner coordinate; the initial available drawing area left lower corner X coordinate = the drawing frame area left lower corner X coordinate, the initial available drawing area left lower corner Y coordinate = the drawing name bar upper left corner Y coordinate; the initial available drawing area right upper corner X coordinate = the drawing name bar upper left corner X coordinate, the initial available drawing area right upper corner Y coordinate = the drawing frame area right upper corner Y coordinate; the initial available drawing area right lower corner coordinate = the drawing name bar upper left corner coordinate.

[0039] Step 3) placing the set of drawing blocks: following the order of first from top to bottom and then from left to right to judge whether the available drawing area can be placed into the set of drawing blocks, updating the overall offset vector of the set of drawing blocks after placing the set of drawing blocks into the drawing, and ensuring that the first set of drawing blocks is placed into the drawing.

[0040] Preferably, the drawing blocks placed in each drawing and the offset vector of the drawing blocks are recorded, the offset vector of the drawing blocks being the relative offset vector when generating the set of drawing blocks and the overall offset vector of the set of drawing blocks superimposed, specifically: the overall offset vector of the set of drawing blocks = the drawing block coordinate after being placed into the drawing-the drawing block coordinate before being placed into the drawing; the offset vector of the drawing block = the relative offset vector of the set of drawing blocks generated + the overall offset vector of the set of drawing blocks.

[0041] Step 4) determining the concave hexagonal available drawing area after placing the set of drawing blocks: defining the available drawing area data form as: left lower corner point, right lower corner point, right upper corner point and left upper corner point, wherein the left upper corner point is the right lower corner point of the bounding box of all existing sets of drawing blocks, and taking out the area above the left upper corner point can form a concave hexagonal drawing area, specifically: the X coordinate of the bounding box of all existing sets of drawing blocks = the maximum value of the X coordinate of all existing sets of drawing blocks, the Y coordinate of the bounding box of all existing sets of drawing blocks = the minimum value of the Y coordinate of all existing sets of drawing blocks.

[0042] Step 5) Update the drawing area: update the top-left point of the available drawing area after putting in the tile set, so as to update the initial drawing area.

[0043] Step 6) Repeat steps 3) to 5) until no more tile sets can be put into the drawing sheet, and generate a new drawing sheet.

[0044] Step 7) Repeat steps 1) to 7) until all tile sets are put into the drawing sheet, and realize automatic generation of the drawing sheet.

[0045] As shown in Figure 7 , Figure 8 , the results of the drawing using the method and the results of the drawing not using the method are compared. The method maximizes the use of the drawing space, and the positions between the tile sets are more logical. The visual effect of the drawing is more concise, and the readability is stronger.

[0046] Example 2

[0047] Taking a reverse triangular space latticed shell structure with a design length of 60 meters, a width of 50 meters, and a height of 20 meters as an example, the optimal projection plane solving method and the automatic layout method are used. The specific steps of this embodiment include:

[0048] First, determine the optimal projection plane of the structure:

[0049] Step 1) Traverse the components, calculate the component length, take the minimum component size 2.14, and the minimum component parameter (minMemberRefLength) = 2.14*0.5 = 1.07, as the basis for subsequent judgment;

[0050] Step 2) Calculate the maximum difference of all node X coordinates as 60, the maximum difference of Y coordinates as 35, and the maximum difference of Z coordinates as 15.5. Temporarily set the direction of the X coordinate axis with the largest difference as the X axis direction of the projection plane mainX;

[0051] Step 3) Project all nodes along the X axis direction mainX of the projection plane, take a vector projectionX(0, 1, 0) perpendicular to the X axis direction of the projection plane as the X axis direction after projection, and calculate the convex hull of all projected nodes;

[0052] Step 4) Calculate the two-dimensional rectangular bounding box of the projected nodes, and the rectangular bounding box is perpendicular to the first direction D1 and the second direction D2. The initial value of the first direction D1 is the vector projectionX(0, 1, 0) perpendicular to the X-axis direction of the projection plane, and is rotated n times around the X-axis direction mainX of the projection plane with a rotation step of 90° / n. Calculate the area of the two-dimensional bounding box of the convex hull nodes in different first direction D1 and second direction D2, and the two-dimensional bounding box with the smallest area corresponds to the first direction D1 (0, 26.82, 11.11) and the second direction D2 (0, -2.96, 7.13);

[0053] Step 5) The first length L1 corresponding to the first direction D1 of the two-dimensional rectangular bounding box is 29.03, and the second length L2 corresponding to the second direction D2 is 7.72. Neither the first length L1 nor the second length L2 is 0, so the Y-axis direction mainY of the projection plane is taken as the first direction D1 and the second direction D2, respectively. The original points are projected on the plane formed by the X-axis direction mainX of the projection plane and the Y-axis direction mainY of the projection plane, and the first number s1 and the second number s2 of points in the projected all points within the range of the minimum member parameter (minMemberRefLength) are obtained. The first distance d1 and the second distance d2 of the points, the first number s1 is 8, the second number s2 is 197, the first distance d1 is 0.32, and the second distance d2 is 0.01.

[0054] The first number s1 is much smaller than the second number s2, so the bounding box direction corresponding to the first number s1 is selected as the first direction D1, which is the Y-axis direction mainY of the projection plane, and the unit vector of the Y-axis direction mainY of the projection plane is (0, 0.92, 0.38).

[0055] Step 6) Rotate the X-axis direction mainX of the projection plane around the Y-axis direction mainY of the projection plane by ±45 degrees, ±30 degrees, ±15 degrees, and 0 degrees, and select the final X-axis direction mainX of the projection plane according to step 5), and the adjusted X-axis direction mainX of the projection plane is (0.97, -0.10, 0.24).

[0056] Step 7) After finally determining the projection plane with the X-axis direction mainX (0.97, -0.10, 0.24) and the Y-axis direction mainY (0, 0.92, 0.38) of the projection plane as the main axis, the automatic layout of the tile is performed.

[0057] Step 8) Binding the planar and elevation view blocks with positional dependency as a block set, including plan view, front view, right view and drawing name, calculating the bounding box of each block, plan view bounding box (0,-250) (600,-250) (600,250) (0,250), front view bounding box (0,10) (600,10) (600,180) (0,180), right view bounding box (-180,-250) (-10,-250) (-10,250) (-180,250), drawing name bounding box (-17.28,-7.9) (24.63,-7.9) (24.63,-3) (-17.28,-3);

[0058] Step 9) Calculating the relative offset vector of each block, plan view relative offset vector (0,0), front view relative offset vector (0,-495), right view relative offset vector (845,0), drawing name relative offset vector (413.83,-514.5);

[0059] Step 10) Determining the initial drawing area of the drawing, considering the position of the drawing frame and the position of the drawing name column, obtaining the rectangular area of the initial drawing as the initial available drawing area;

[0060] Step 11) Following the order of first from top to bottom and then from left to right, judging whether the available drawing area can be put into the block set, updating the overall offset vector of the block set after putting it into the block set, and calculating the overall offset vector (45,561);

[0061] Step 12) Superimposing the relative offset vector when generating the block set and the overall offset vector of the block set to calculate the final offset vector of the block, plan view final offset vector (45,561), front view final offset vector (45,66), right view final offset vector (890,561), drawing name final offset vector (458.83,56.5);

[0062] Step 13) Judging that the remaining area on the drawing cannot be inserted into a new block, generating a new drawing;

[0063] Step 14) Calculating the bounding box of each block:

[0064] Installation drawing bounding box (3.5,83.97) (603.9,83.97) (603.9,56.41) (-3.5,56.41),

[0065] Component weight table bounding box (0,0) (154,0) (154,66.7) (0,66.7),

[0066] Component material table bounding box (0,0) (368.88,0) (368.88,453.1) (0,453.1),

[0067] Bounding Box for Table 1 of Component Material Table Box (0,0) (360.24,0) (360.24,453.1) (0,453.1);

[0068] Step 15) Calculate the relative offset vector of each block, install drawing (48.5, 754.59), component weight table (45, 583.91), component material table (45, 110.81), component material table_Continuation Table 1 (672.4, 357.9);

[0069] Step 16) Determine the initial drawing area of the drawing, and obtain the rectangular area of the initial drawing as the initial available drawing area after considering the frame position and the drawing name column position;

[0070] Step 17) Determine whether the available drawing area can be placed in the block set in the order of first from top to bottom and then from left to right, update the overall offset vector of the block set after placing it in the block set, and calculate the overall offset vector (0, 0);

[0071] Step 18) Superimpose the relative offset vector when generating the block set and the overall offset vector of the block set to calculate the final offset vector of the block, install drawing (48.5, 754.59), component weight table (45, 583.91), component material table (45, 110.81), component material table_Continuation Table 1 (672.4, 357.9).

[0072] Figure 9 For the structural plan and elevation drawings generated in the above embodiment, Figure 10 For the installation drawing of part of the structure in the above embodiment.

[0073] The above steps realize the automatic drawing of the construction drawing of the spatial structure; the drawing time is 20s, compared with the prior art, the construction drawing drawing efficiency is improved by more than 90%; the optimal projection plane of the structure is obtained, the text overlap rate of the drawing is 0%, and it fully meets the requirements of the construction drawing drawing standard.

[0074] Compared with the prior art which cannot realize the automatic drawing of the construction drawing of the complex spatial structure and still needs manual drawing, which takes several hours or more, the method can improve the construction drawing drawing efficiency of the complex spatial structure by more than 90%; the prior art cannot solve the problem of text overlap of the drawing, and through the technology, the optimal projection plane of the structure can be obtained, and the text overlap rate of the drawing is less than 5%, and it fully meets the requirements of the construction drawing drawing standard.

[0075] The above specific embodiments can be adjusted in different ways by those skilled in the art without departing from the principles and purposes of the present application, the protection scope of the present application is subject to the claims and is not limited by the above specific embodiments, and each implementation scheme within the scope is subject to the constraints of the present application.

Claims

1. A method for solving the optimal plane of a space structure construction drawing and automatically generating a drawing, characterized in that, First, all components are traversed to obtain structure information, second, the optimal two-dimensional projection plane is determined according to the projection plane solving method, and finally, the overall structure drawing automatic generation is realized by combining the projection plane through the block optimal arrangement method; The optimal two-dimensional projection plane is obtained by the following way: Step 1) traversing the components: determining the minimum component parameter minMemberRefLength as the basis for subsequent judgment, the minimum component parameter minMemberRefLength is obtained by calculating the component size and taking the minimum component size * coefficient, and the specific method is as follows: component size = |component A end coordinate-component B end coordinate|, minimum component parameter = minimum component size * coefficient; Step 2) calculating the maximum difference of X, Y, Z coordinates of all nodes, the node is the end point of the component, and the coordinate axis direction with the maximum difference is set as the X axis direction mainX of the projection plane, and the specific method is as follows: the maximum difference of X coordinates is the maximum value obtained by subtracting all node X coordinates from each other, the maximum difference of Y coordinates is the maximum value obtained by subtracting all node Y coordinates from each other, and the maximum difference of Z coordinates is the maximum value obtained by subtracting all node Z coordinates from each other; Step 3) projecting the X axis direction mainX of the projection plane of all nodes, taking a vector projectionX perpendicular to the X axis direction of the projection plane as the X axis direction after projection, and calculating the convex hull of all projected nodes, that is, the convex combination of all points in a set; Step 4) The two-dimensional rectangular bounding box of the projected node is rotated around the X-axis direction mainX of the projection plane, and the smallest area is taken as the final two-dimensional bounding box, specifically: the two-dimensional rectangular bounding box of the projected node is calculated, and the two perpendicular edge directions of the rectangular bounding box are set: the first direction D1 and the second direction D2, the initial value of the first direction D1 is the vector projectionX perpendicular to the X-axis direction of the projection plane, and the first direction D1 is rotated n times around the X-axis direction mainX of the projection plane, and the rotation step is The two-dimensional rectangular bounding box of the convex hull node in the first direction D1 and the second direction D2 of the rectangular bounding box is calculated, and the smallest area is taken as the final two-dimensional bounding box. Step 5) determining the Y axis direction mainY of the projection plane according to the first direction D1 and the second direction D2 of the two perpendicular edges of the two-dimensional rectangular bounding box and the first length L1 and the second length L2 corresponding to the lengths of the two perpendicular edge directions of the two-dimensional rectangular bounding box, and the specific method includes: ① when the first length L1 and the second length L2 are both 0, it indicates that the model is a one-dimensional model, and the Y axis direction mainY of the projection plane is taken as the first direction D1 or the second direction D2; ② when one of the first length L1 and the second length L2 is 0, it indicates that the model is a two-dimensional model, and the direction of the first length L1 and the second length L2 which is not 0 is taken as the Y axis direction mainY of the projection plane; ③ when the first length L1 and the second length L2 are both not 0: a. the Y axis direction mainY of the projection plane is taken as the first direction D1 and the second direction D2 respectively, and the original points are projected on the plane with the X axis direction mainX of the projection plane and the Y axis direction mainY of the projection plane; b. the first number s1 and the second number s2 of points in the projected points with a distance less than the minimum component parameter minMemberRefLength are obtained respectively, and the first distance d1 and the second distance d2 of the minimum distance of the points in the projected points with a distance less than the minimum component parameter minMemberRefLength are obtained. c. Select the bounding box direction corresponding to the smaller value of the first number s1 and the second number s2 as the Y-axis direction mainY of the projection plane, or when the first number s1 and the second number s2 are the same, then select the bounding box direction corresponding to the larger value of the first distance d1 and the second distance d2 as the Y-axis direction mainY of the projection plane; Step 6) Rotate the X-axis direction mainX of the projection plane around the Y-axis direction mainY of the projection plane by an angle θ, and repeat step 5) to determine the final X-axis direction mainX of the projection plane. The optimal two-dimensional projection plane is the projection plane with the X-axis direction mainX and the Y-axis direction mainY as the main axes.

2. The method of claim 1, wherein the method further comprises: The automatic generation of drawings specifically includes: Step ① Generate a set of blocks: bind the blocks with positional attachment relationship into a block set, such as a plan and elevation drawing, and calculate the relative offset vector of each block, specifically: generate block set relative offset vector = block binding after coordinates - block binding before coordinates; Step ② Determine the initial available drawing area of the drawing: after considering the drawing frame position and the drawing name bar position, obtain the initial rectangular area of the drawing as the initial available drawing area, specifically: initial available drawing area upper left corner coordinate = drawing frame area upper left corner coordinate; initial available drawing area left lower corner X coordinate = drawing frame area left lower corner X coordinate, initial available drawing area left lower corner Y coordinate = drawing name bar upper left corner Y coordinate; initial available drawing area right upper corner X coordinate = drawing name bar upper left corner X coordinate, initial available drawing area right upper corner Y coordinate = drawing frame area right upper corner Y coordinate; initial available drawing area right lower corner coordinate = drawing name bar upper left corner coordinate; Step ③ Place the block set: follow the order from top to bottom first and then from left to right to judge whether the available drawing area can be placed into the block set, and update the overall offset vector of the block set after placing it into the block set, and ensure that the first block set is placed into the drawing; Step ④ Determine the concave hexagonal available drawing area after placing the block set: define the available drawing area data form as: left lower corner point, right lower corner point, right upper corner point and left upper corner point, wherein the left upper corner point is the right lower corner point of the existing all block set bounding box, and the left upper corner point is taken out. The area above the left upper corner point forms a concave hexagonal drawing area, specifically: existing all block set bounding box X coordinate = existing all block set X coordinate maximum value, existing all block set bounding box Y coordinate = existing all block set Y coordinate minimum value; Step ⑤ Update the drawing area: update the left upper corner point of the available drawing area after placing the block set, thereby updating the initial drawing area; Step ⑥ Repeat steps ③ to ⑤ until no more block sets can be placed in the drawing, and a new drawing is generated; Step ⑦ Repeat steps ① to ⑦ until all block sets are placed into the drawing, achieving automatic generation of the drawing.

3. The method of claim 2, wherein the method further comprises: Record the tile and tile offset vector in each sheet, the offset vector of the tile is the relative offset vector when generating the tile set and the overall offset vector of the tile set, specifically: tile set overall offset vector = tile put into the paper after the coordinate - tile put into the paper before the coordinate; tile offset vector = tile set relative offset vector + tile set overall offset vector.

4. A system for implementing the method for optimal plane solving and automatic drawing generation of the spatial structure construction drawing according to any one of claims 1 to 3, characterized in that, Comprise: Model traversal module, projection plane module, tile set generation module and drawing area arrangement module, wherein: the model traversal module carries out component length algorithm processing according to the existing component information of the model, obtains the judgment basis, that is, the minimum component size; The projection plane module carries out projection plane algorithm processing according to the model information, obtains the optimal projection plane; the tile set generation module carries out tile optimal arrangement algorithm processing according to the tile coordinate information, obtains the most reasonable tile set; the drawing area arrangement module carries out drawing area arrangement algorithm processing according to the tile and drawing area coordinate information, realizes the automatic generation of drawing area drawing sheet.

Citation Information

Patent Citations

  • Drawing generation method and device, computer equipment and storage medium

    CN113094770A

  • Front view image generation method based on live-action three-dimensional model

    CN114627237A