A method for structural clearance analysis based on Rhino and Grasshopper
By combining Rhino and Grasshopper, structural clearance can be quickly analyzed, solving the problem of structural deviation caused by construction errors, providing a clear 3D visualization solution, simplifying the multi-software collaborative workflow, and achieving efficient judgment of clearance dimensions.
Patent Information
- Application Number
- CN202210905987.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-07-29
AI Technical Summary
In existing technologies, the on-site structural model of the project does not match the schematic drawings, resulting in construction errors. Furthermore, Revit software is not capable enough to handle complex shapes and lacks a flexible and efficient 3D visualization solution to quickly analyze whether the structural dimensional deviations and clearance dimensions meet the installation requirements.
Using a method based on Rhino and Grasshopper, Grasshopper is used to pick three models, filter the nearest surface layer, divide the spacing, mark the net size, set the display level range, draw the range gradient diagram, and display the offset analysis results through different color gamuts.
It enables rapid and intuitive structural clearance analysis, allowing for early determination of whether clearance dimensions meet installation requirements. It also provides a clear 3D visualization method and simplifies the workflow for multi-software collaboration.
Smart Images

Figure CN115294271B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of decorative building clearance analysis, and particularly relates to a structural clearance analysis method based on Rhino and Grasshopper. BACKGROUND
[0002] In actual engineering projects, due to possible errors in construction of civil engineering units, the on-site structure may have a deviation problem, that is, the on-site structural model does not conform to the scheme drawing.
[0003] Currently, Navisworks, Revit and derivative plug-ins are commonly used on the market to complete collision checking and deviation analysis and the like, and in actual use, multiple software are involved in cooperation, and the work flow is complex. Moreover, the Revit software has poor processing capability for curved surfaces, and has great limitations in projects involving complex modeling. In view of the above problems, how to quickly analyze the structural size deviation and judge whether the clearance size meets the installation requirements, there is no flexible and efficient three-dimensional display scheme at present. SUMMARY
[0004] In view of the above problems, the present application aims to provide a structural clearance analysis method based on Rhino and Grasshopper.
[0005] To solve the problem, the technical scheme adopted by the present application is as follows:
[0006] A structural clearance analysis method based on Rhino and Grasshopper, comprising the following steps:
[0007] 1) picking up three models in Grasshopper: a decorative surface layer model, a scheme structure model and an actual project structure model;
[0008] 2) selecting the scheme structure surface layer closest to the decorative surface layer according to the projection length;
[0009] 3) dividing and calculating the distance between the scheme structure surface layer and each corresponding decorative surface layer according to the UV value;
[0010] 4) labeling the distance between the scheme structure surface layer and each corresponding decorative surface layer, and the distance value is used to judge in advance whether the clearance size meets the installation requirements under the theoretical condition;
[0011] 5) calculating the distance between the actual project structure surface layer and each corresponding decorative surface layer;
[0012] 6) judging the offset size between the actual project structure surface layer and the corresponding scheme structure surface layer according to the difference between the two types of distance values;
[0013] 7) Set the display level interval of the clearance analysis, draw the interval gradient chart, and the same type of level interval displays the same color;
[0014] 8) Determine which clearance analysis interval the offset size belongs to according to the inclusion relationship;
[0015] 9) Convert the offset analysis result to the decorative surface layer and represent it through different color domains. Preferably, the actual structure model in step 1) is a model fed back according to the actual situation of the project site.
[0016] Preferably, the filtering according to the projection length in step 2) is to use the nearest point operator to pull the center points of each surface layer of the scheme structure model to the decorative surface layer model, and the one with the smallest distance value is selected as the nearest scheme structure surface layer.
[0017] Preferably, step 3) is specifically:
[0018] 3.1) After the decorative surface layer model is disassembled using the disassembled surface operator, the subdivision points based on the UV direction of each decorative surface layer are obtained using the divided surface operator, the subdivision points are pulled to the scheme structure surface layer using the nearest point operator, the interval between the each decorative surface layer and the scheme structure surface layer is obtained, the interval values are sorted by the list sorting operator, the maximum and minimum distances between the each decorative surface layer and the scheme structure surface layer are calculated by the head and tail data operator, the data list is merged by the merging operator, the repeated values in the list are merged by the merging same item operator, the length of the data list after merging the repeated values is calculated by the list length operator, it is judged whether the list length is greater than 1 by the greater than operator, the merged data list is divided into two categories by the shunt operator, the identification name of the two types of shunted data list is added by the panel operator, and after addition, the length of the shunted data list is aligned by the long row operator;
[0019] 3.2) The identification name list and the data list are merged by the merging operator, the list length is calculated by the list length operator, it is judged whether the list length is greater than 1 by the greater than operator, the list is divided into two categories by the shunt operator, and after selecting the list with a length greater than 1, the text and data of the identification are combined by the text combination operator;
[0020] 3.3) The two types of text identification are woven by the weaving operator, the unit mm is added by the panel operator, the length of the woven list is aligned by the long row operator, and the text to be identified and the unit are combined by the text combination operator to obtain the identification content of the clearance analysis, that is, the interval between the scheme structure surface layer and each corresponding decorative surface layer.
[0021] Preferably, step 4) is specifically:
[0022] 4.1) Obtain the intersection line of each decorative surface layer and the upper edge line of the scheme structure surface layer by using the intersection operator, and obtain the end point of the intersection line by using the end point operator, and then generate the marking line of each decorative surface layer by using the vector straight line operator;
[0023] 4.2) Obtain the plane where the scheme structure surface layer is located by using the judgment plane operator, and obtain the reference point and the normal direction of the plane by using the decomposition plane operator, and obtain the vector product of the space Z axis direction and the normal direction of the plane where the structure surface is located as the Y axis direction of the reconstructed plane by using the vector product operator, and reconstruct the reference plane according to the space Z axis direction, the obtained Y axis direction and the reference point;
[0024] 4.3) Divide the reconstructed reference plane into two categories according to the list length of the content to be identified by using the shunt operator, keep the position of the reference plane unchanged when the list length is equal to 1, and move the reference plane along the Z axis direction of the reference plane to obtain two reference planes by using the moving operator when the list length is greater than 1, and weave the two types of clear space distance and the reference plane to be identified to obtain the identification plane to be referred to by the clear space analysis identification content by using the weaving operator;
[0025] 4.4) Display the three-dimensional clear space analysis identification content in Rhino according to the reference plane by using the text instance operator.
[0026] Preferably, in step 5), the interval between the actual structure surface layer of the project and the corresponding decorative surface layer is calculated by projecting the subdivision points of the decorative surface layer onto the corresponding actual structure surface layer of the project by using the projection operator, and the interval between the actual structure surface layer of the project and the corresponding decorative surface layer is calculated by using the distance operator.
[0027] Preferably, in step 6), the offset size is obtained by calculating the numerical difference between the interval of the decorative surface layer to the actual structure surface layer of the project and the interval of the decorative surface layer to the scheme structure surface layer by using the difference operator.
[0028] Preferably, step 7) is specifically:
[0029] 7.1) Input the interval span to be analyzed by using the panel operator, and divide the whole span into multiple analysis intervals by using the interval operator;
[0030] 7.2) Draw the interval gradient display shape by using the rectangle operator, divide the long side of the rectangle according to the interval number of the analysis interval by using the equal division curve operator, obtain the equal division points of the long side after equal division, generate the equal division line of the rectangle by using the vector straight line operator, divide the closed surface formed by the rectangle by using the line-surface segmentation operator, add the display color of each clearance analysis interval by using the gradient color operator, display the clearance analysis interval gradient graph by using the self-defined preview operator, and label the clearance analysis gradient value by using the text instance operator.
[0031] Preferably, in step 8), according to the containing relationship, it is judged by using the interval containing operator to judge which of the clearance analysis intervals the offset size belongs to, it is judged by using the greater than operator whether the offset size is greater than the maximum value of the clearance analysis interval, and it is judged by using the less than operator whether the offset size is less than the minimum value of the clearance analysis interval.
[0032] Preferably, step 9) is specifically:
[0033] 9.1) using the returned Boolean value after the judgment as the basis for shunting, using the subdivision points obtained after the division based on the UV direction of each decorative surface as the medium for displaying the offset size, and obtaining the subdivision points of each clearance analysis interval after shunting by using the shunting operator;
[0034] 9.2) using the self-defined preview operator to display the points after shunting according to the display color and legend of each clearance analysis interval,
[0035] and judging whether the offset condition is serious by changing the color and legend and viewing the interval gradient graph.
[0036] The advantages of the present application are that the actual engineering problems are described by using the visual programming language Grasshopper, the clearance size under the theoretical condition is judged in advance to determine whether it meets the installation requirements, the deviation of the structure size is analyzed in combination with the interval analysis gradient graph, the display mode is clear and intuitive, and a new direction is provided for the development of structure clearance analysis. BRIEF DESCRIPTION OF DRAWINGS
[0037] Figure 1 It is a technical flowchart of the embodiment of the present application;
[0038] Figure 2 It is a clearance size identification schematic diagram in the embodiment of the present application; Figure 3 It is a clearance analysis result schematic diagram in the embodiment of the present application; DETAILED DESCRIPTION
[0039] The application will be further described in connection with examples, the purpose of which is only to better understand the content of the application, therefore, the examples are not used to limit the application.
[0040] The application aims to provide a Rhino and Grasshopper-based structural clearance analysis method, as shown in the accompanying drawings, comprising the following steps: Figure 1
[0041] 1) Pick up three models in Grasshopper: decorative surface layer model, scheme structure model, and project actual structure model;
[0042] 2) According to the projection length, select the scheme structure surface layer closest to the decorative surface layer;
[0043] 3) According to the UV value, divide and calculate the distance between the scheme structure surface layer and each corresponding decorative surface layer;
[0044] 4) Label the distance between the scheme structure surface layer and each corresponding decorative surface layer, and the distance value is used to judge in advance whether the clearance size meets the installation requirements under the theoretical condition;
[0045] 5) Calculate the distance between the project actual structure surface layer and each corresponding decorative surface layer;
[0046] 6) According to the difference between the two types of distance values, judge the size of the offset size between the project actual structure surface layer and the corresponding scheme structure surface layer;
[0047] 7) Set the display level interval of clearance analysis, draw interval gradient chart, and the same type of level interval has the same display color;
[0048] 8) According to the inclusion relationship, judge which clearance analysis interval the offset size belongs to;
[0049] 9) Convert the offset analysis result to the decorative surface layer and show it through different color domains.
[0050] The project actual structure model in step 1) is a model fed back according to the actual situation of the project site.
[0051] In step 2), according to the projection length, the center points of each surface layer of the scheme structure model are pulled to the decorative surface layer model using the nearest point operator, and the one with the smallest distance value is selected as the nearest scheme structure surface layer.
[0052] Step 3) specifically includes:
[0053] 3.1) After the decorative surface layer model is disassembled by the disassembling curved surface operator, the subdivision points based on the UV direction of each decorative surface layer are obtained by the division curved surface operator, the subdivision points are pulled to the scheme structure surface layer by the nearest point operator, the interval between the decorative surface layer and the scheme structure surface layer is obtained, the interval values are sorted by the list sorting operator, the maximum and minimum distances between the decorative surface layer and the scheme structure surface layer are calculated by the head and tail data operator, the data list is merged by the merging operator, the repeated values in the list are merged by the merging similar items operator, the length of the data list after merging the repeated values is calculated by the list length operator, whether the list length is greater than 1 is judged by the greater than operator, the merged data list is divided into two categories by the shunt operator, the identification name of the two categories of data list after shunting is added by the panel operator, and the length of the data list after shunting is aligned by the long row operator;
[0054] 3.2) The identification name list and the data list are merged by the merging operator, the list length is calculated by the list length operator, whether the list length is greater than 1 is judged by the greater than operator, the list is divided into two categories by the shunt operator, the list with a length greater than 1 is selected, and the text and data of the identification are combined by the text combination operator;
[0055] 3.3) The two categories of text identification are woven by the weaving operator, the unit mm is added by the panel operator, the length of the woven list is aligned by the long row operator, the text to be identified and the unit are combined by the text combination operator, the identification content of the clearance analysis is obtained, that is, the interval between the scheme structure surface layer and each corresponding decorative surface layer.
[0056] As shown in Figure 2 , step 4) processing specifically includes:
[0057] 4.1) The intersection line of the decorative surface layer and the uppermost edge line of the scheme structure surface layer is calculated by the intersection operator, the end point of the intersection line is calculated by the end point operator, and the annotation line of the decorative surface layer is generated by the vector straight line operator after the end point is taken as the starting point;
[0058] 4.2) The plane where the scheme structure surface layer is located is obtained by the judging plane operator, the reference point and the normal direction of the plane of the plane are calculated by the decomposition plane operator, the vector product of the space Z axis direction and the normal direction of the plane where the structure surface is located is taken as the Y axis direction of the reconstructed plane by the vector product operator, and the reference plane is reconstructed according to the space Z axis direction, the obtained Y axis direction and the reference point;
[0059] 4.3) using the shunt operator to shunt the reconstructed reference plane into two categories according to the list length of the content to be identified, the position of the reference plane with a list length equal to 1 remains unchanged, and the reference plane with a list length greater than 1 is moved up and down along the Z-axis direction of the reference plane respectively to form two reference planes using the moving operator, and the two types of clear space distance are woven with the reference plane to be identified using the weaving operator to obtain the identification plane to be referred to by the clear space analysis identification content;
[0060] 4.4) using the text instance operator to display the three-dimensional clear space analysis identification content in Rhino according to the reference plane.
[0061] In step 5), the interval between the actual structural surface layer of the project and the corresponding decorative surface layer is calculated by projecting the subdivision points of the decorative surface layer onto the corresponding actual structural surface layer of the project using the projection operator, and the interval between the actual structural surface layer of the project and the corresponding decorative surface layer is calculated using the distance operator.
[0062] In step 6), the offset size is obtained by calculating the difference between the interval of the decorative surface layer to the actual structural surface layer of the project and the interval of the decorative surface layer to the scheme structural surface layer using the difference operator.
[0063] Step 7) processing specifically includes:
[0064] 7.1) using the panel operator to input the interval span that needs to be analyzed, and using the interval operator to divide the overall span into multiple analysis intervals;
[0065] 7.2) using the rectangle operator to draw the interval gradient display shape, using the equidistribution curve operator to equidistribute the long side of the rectangle according to the number of intervals of the analysis interval, obtaining the equidistribution points of the long side after equidistribution, using the vector straight line operator to generate the equidistribution line of the rectangle, using the line-surface segmentation operator to segment the closed surface formed by the rectangle, using the gradient color operator to add the display color of each clear space analysis interval, using the custom preview operator to display the clear space analysis interval gradient graph, and using the text instance operator to label the clear space analysis gradient value.
[0066] In step 8), according to the inclusion relationship, using the interval inclusion operator to determine which type of clear space analysis interval the offset size belongs to, using the greater than operator to determine whether the offset size is greater than the maximum value of the clear space analysis interval, and using the less than operator to determine whether the offset size is less than the minimum value of the clear space analysis interval.
[0067] As shown in Figure 3 Step 9) processing specifically includes:
[0068] 9.1) using the Boolean value returned after the judgment as the basis for shunting, using the subdivision points obtained after dividing based on the UV direction of each decorative surface as the medium for displaying the offset size, and using a shunting operator to obtain the subdivision points of each clearance analysis interval after shunting;
[0069] 9.2) using a custom preview operator to display the points after shunting according to the display color and legend of each clearance analysis interval, and judging whether the offset is serious by observing the interval gradient map through color and legend changes. The above description is only the best and most feasible embodiment of the present application and is not intended to limit the application. However, any changes and modifications made to the embodiments of the present application by those skilled in the art once they know the basic creative concept of the present application shall fall within the scope of protection of the claims of the present application.
Claims
1. A method for structural clearance analysis based on Rhino and Grasshopper, characterized in that, The method comprises the following steps: 1) picking up three models in Grasshopper: a decorative surface layer model, a scheme structure model, and a project actual structure model; 2) selecting a scheme structure surface layer closest to the decorative surface layer according to the projection length; 3) dividing the distance between the scheme structure surface layer and each corresponding decorative surface layer according to the UV value; 4) marking the distance between the scheme structure surface layer and each corresponding decorative surface layer, which is used to judge in advance whether the clearance size meets the installation requirements under the theoretical condition; 5) measuring the distance between the project actual structure surface layer and each corresponding decorative surface layer; 6) judging the size of the offset size between the project actual structure surface layer and the corresponding scheme structure surface layer according to the numerical difference between the distance measured in step 3) and the distance measured in step 5); 7) setting the display level interval of the clearance analysis, drawing an interval gradient graph, and displaying the same type of level interval in the same color; 8) judging which clearance analysis interval the offset size belongs to according to the inclusion relationship; 9) converting the offset analysis result to the decorative surface layer and representing it through different color domains.
2. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, The project actual structure model in step 1) is a model fed back according to the actual situation of the project site.
3. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, In step 2), the selection according to the projection length is to use the nearest point operator to pull the center points of each surface layer of the scheme structure model to the decorative surface layer model, and the one with the smallest distance value is selected as the nearest scheme structure surface layer.
4. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, Step 3) specifically comprises: 3.1) using the disassembled surface operator to disassemble the decorative surface layer model to obtain each decorative surface layer, using the subdivision surface operator to obtain the subdivision points based on the UV direction of each decorative surface layer, using the nearest point operator to pull the subdivision points to the scheme structure surface layer to obtain the distance between each decorative surface layer and the scheme structure surface layer, sorting the distance values by the list sorting operator, using the head and tail data operator to calculate the maximum and minimum distances between each decorative surface layer and the scheme structure surface layer, merging the data list by the merge operator, merging the repeated values in the list by the merge same item operator, calculating the length of the data list after merging the repeated values by the list length operator, judging whether the list length is greater than 1 by the greater than operator, dividing the merged data list into two categories by the shunt operator, adding identification names to the two categories of divided data list by the panel operator, and then aligning the lengths of the divided data list by the long row operator; 3.2) merging the identification name list and the data list by the merge operator, calculating the length of the list by the list length operator, judging whether the length of the list is greater than 1 by the greater than operator, dividing the list into two categories by the shunt operator, selecting the list with a length greater than 1, and combining the identification text and data by the text combination operator. 3.3) weaving the two types of text marks with the weaving operator, adding units of mm with the panel operator, aligning the length of the list after weaving with the long row operator, and combining the text to be marked and the units with the text combination operator to obtain the mark content of the clearance analysis, i.e. the spacing between the scheme structure surface layer and each corresponding decorative surface layer.
5. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, Step 4) specifically includes: 4.1) obtaining the intersection line of each decorative surface layer and the uppermost edge line of the scheme structure surface layer with the intersection operator, obtaining the end point of the intersection line as the starting point with the end point operator, and generating the marking line of each decorative surface layer with the vector straight line operator; 4.2) obtaining the plane where the scheme structure surface layer is located with the judgment plane operator, obtaining the reference point and the normal direction of the plane with the decomposition plane operator, and taking the vector product of the space Z-axis direction and the normal direction of the plane where the scheme structure surface layer is located as the Y-axis direction of the reconstructed plane with the vector product operator, and reconstructing the reference plane according to the space Z-axis direction, the Y-axis direction and the reference point; 4.3) dividing the reconstructed reference plane into two types according to the list length of the mark content with the shunt operator, wherein the mark content is the mark content of the clearance analysis in step 3.3), the position of the reference plane with a list length of 1 remains unchanged, the reference planes with a list length greater than 1 are moved upward and downward along the Z-axis direction of the reference plane respectively to form two reference planes with the moving operator, and the two types of clearance space are woven with the reference plane to be marked with the weaving operator to obtain the mark plane to be referred to by the mark content of the clearance analysis; 4.4) displaying the three-dimensional clearance analysis mark content in Rhino according to the reference plane with the text instance operator, wherein the three-dimensional clearance analysis mark content is the spacing between the scheme structure surface layer and each corresponding decorative surface layer in step 3.3).
6. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, In step 5), the spacing between the actual structure surface layer of the project and each corresponding decorative surface layer is obtained by projecting the subdivision points of each decorative surface layer onto the corresponding actual structure surface layer of the project with the projection operator, and calculating the spacing between the actual structure surface layer of the project and each corresponding decorative surface layer with the distance operator.
7. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, In step 6), the offset size is obtained by calculating the numerical difference between the spacing of each decorative surface layer to the actual structure surface layer of the project and to the scheme structure surface layer with the difference operator.
8. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, Step 7) specifically includes: 7.1) inputting the interval span to be analyzed with the panel operator, and decomposing the overall span into multiple analysis intervals with the interval operator; 7.2) Draw interval gradient display shape by rectangle operator, divide the long side of the rectangle according to the interval number of the analysis interval by interval curve operator, get the interval points of the long side after division, generate the interval line of the rectangle by vector straight line operator, divide the closed surface formed by the rectangle by line surface division operator, add the display color of each clearance analysis interval by gradient color operator, display the clearance analysis interval gradient graph by custom preview operator, and label the clearance analysis gradient value by text instance operator.
9. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, Step 8) According to the inclusion relationship, it is judged by interval inclusion operator which category of the clearance analysis interval the offset size belongs to, whether the offset size is greater than the maximum value of the clearance analysis interval is judged by greater than operator, and whether the offset size is less than the minimum value of the clearance analysis interval is judged by less than operator.
10. The Rhino and Grasshopper based structural clearance analysis method according to claim 1, wherein, Step 9) Specifically includes: 9.1) Use the Boolean value returned by the judgment in step 8) as the basis for shunting, use the subdivision points obtained after dividing each decorative surface based on the UV direction of each decorative surface layer obtained in step 3.1) as the medium for displaying the offset size, and use the shunting operator to get the subdivision points of the corresponding clearance analysis interval after shunting; 9.2) Display the points after shunting according to the display color and legend of each clearance analysis interval by custom preview operator, and judge whether the offset is serious by changing the color and legend and viewing the interval gradient graph.
Citation Information
Patent Citations
Clearance analysis method and device for power transmission line, and storage medium
CN109631818A
Intelligent construction method for special-shaped floor block-shaped decorative surface layer
CN111046465A