A method for parameterizing and generating spatial models based on data coordinates
The method addresses the challenge of precise spatial model construction by using Grasshopper and Rhino to automate coordinate point editing and merging, enhancing connection accuracy and reducing redundancy in spatial model generation.
Patent Information
- Application Number
- CN201910450461.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-28
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2039-05-28
AI Technical Summary
Existing spatial model design drawings provide only plan views and node coordinate value tables, making it difficult to accurately prepare materials and perform precise processing, especially in installation plans, and there is a need for fast batch connection and easy operation.
A method for parametrically generating a spatial model using Grasshopper within Rhino, involving data extraction from CAD node coordinate tables, generation of editable coordinate points, and merging straight lines to form a spatial model while deleting redundant segments.
Enables quick batch connection and easy operation, improving connection accuracy and reducing storage capacity by using nearest point connection methods and automated processing in Grasshopper and Rhino.
Smart Images

Figure CN110175407B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for parameterizing and generating a space model based on data coordinates. Background Art
[0002] Spatial models have been widely used in various buildings such as public venues, airport terminal platform canopies, power plant dry coal sheds, cement raw material yards, large-span industrial plants, etc. due to their advantages such as small spatial force, light weight, high rigidity and good seismic resistance. Due to their unique advantages, they have good development prospects.
[0003] The spatial model design drawings can only provide plan views and node coordinate value tables. For construction, how to accurately prepare materials and perform precise processing is a difficult point, especially in the design of installation plans in spatial models. How to achieve fast batch connection and easy operation is a difficult point. Summary of the invention
[0004] The purpose of the present invention is to provide a technical solution for a method of parameterizing and generating a spatial model based on data coordinates in order to address the deficiencies in the prior art. The grid generation method can quickly connect in batches, is simple to operate, and has obvious value for promotion and application.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] A method for parametrically generating a spatial model based on data coordinates, in which the spatial model is parametrically generated in Grasshopper built into Rhino, and is characterized by comprising the following steps:
[0007] 1) First, based on the CAD node coordinate table provided by the architectural design unit, the CAD plug-in is used to extract the data in the node coordinate table to produce Excel, and then the Excel is saved as a txt text format;
[0008] 2) Then generate coordinate points through Rhino;
[0009] 3) Bake the coordinate points generated by the Grasshopper battery pack into Rhino, display the editable coordinate points, and select the coordinate point A1 surface and the coordinate point A2 surface in the editable coordinate point area. Since the coordinate points generated in Rhino cannot be edited, the Grasshopper plug-in can be used to edit the coordinate points to improve the connection accuracy between each point. The coordinate point A1 surface and the coordinate point A2 surface can provide a reference position for the formation of the entire space model;
[0010] 4) Then, select the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 in the editable coordinate point area. The height of the spatial model can be imported through the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4, so that each horizontal plane has a sense of hierarchy;
[0011] 5) Then select the coordinate point A5 and the coordinate point A6 along the editable coordinate point area, and merge all connected straight lines together from the battery set Sets→Tree→Merge to form an overall spatial model;
[0012] 6) Finally, manually delete the redundant line segments to form the final required spatial model. Since the overall spatial model is generated by a few poorly connected redundant straight lines, deleting the straight lines can reduce the storage capacity of the entire spatial model.
[0013] Further, the steps for generating the coordinate points in step 2) are specifically to open Rhino and the built-in Grasshopper plug-in, first select the battery pack Params→Input→File Path to extract the file path, then connect the battery pack Params→Primitive→Read Flie to read the coordinate data file; then connect the battery pack Sets→Text→Text split to the input end C and connect the Panel to enter a semicolon to split the file data; connect the battery pack Sets→List→ListItem to arrange the data XYZ in separate items; finally, connect the battery pack Vector→Point→Construct Point to generate coordinate points in the XYZ axis direction.
[0014] Furthermore, in step 3), the specific steps for generating the coordinate point A1 surface and the coordinate point A2 surface are to first connect the nearest distance points in the coordinate point A1 surface into a straight line, then connect the nearest distance points in the coordinate point A2 surface into a straight line, and then connect the nearest distance points in the coordinate point A1 surface and the coordinate point A2 surface into straight lines up and down.
[0015] Furthermore, in step 4), the specific steps for generating the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 are to first connect the closest distance points in the vertical plane of coordinate point A3 into straight lines, then connect the closest distance points in the vertical plane of coordinate point A4 into straight lines, and then connect the closest distance points in the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 into straight lines up and down.
[0016] Furthermore, in step 5), the specific steps for generating the coordinate point A5 surface and the coordinate point A6 surface are to connect the nearest distance points in the coordinate point A5 surface and the coordinate point A6 surface into straight lines using the steps for generating the coordinate points in the coordinate point A1 surface and the coordinate point A2 surface.
[0017] Furthermore, the specific steps for deleting the redundant line segments in step 6) are to bake the generated spatial model from the Grasshopper battery group into Rhino, manually delete them on the Rhino interface, and then read the grid from Params→Curve, flatten the tree data by connecting the battery group Sets→Tree→FlattenTree, and then delete the overlapping lines by connecting the battery group Vipers→Curve, and finally bake the battery group with deleted overlapping lines into Rhino to form the final required spatial model.
[0018] The present invention has the following beneficial effects due to the adoption of the above technical solution:
[0019] The present invention extracts the data coordinates of the XYZ axis direction of the CAD plane and edits them into a text format, reads the data coordinates in the XYZ axis direction based on Grasshopper built into Rhino to generate coordinate points, and uses the nearest point connection method to generate a spatial model. Compared with the existing manual connection of coordinate points, the present invention can quickly connect in batches, is easy to operate, and has obvious promotion and application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The present invention will be further described below in conjunction with the accompanying drawings:
[0021] Figure 1 A flow chart of a method for parameterizing and generating a spatial model based on data coordinates according to the present invention;
[0022] Figure 2 A coordinate point distribution diagram generated after reading the XYZ axis coordinate data text in the present invention;
[0023] Figure 3 This is a coordinate point distribution diagram baked in the present invention;
[0024] Figure 4 A schematic diagram of connecting the closest points on the coordinate point A1 surface into line segments in the present invention;
[0025] Figure 5 A schematic diagram of connecting the closest points of the coordinate point A2 surface into line segments in the present invention;
[0026] Figure 6 This is a rendering of the effect of connecting the closest points on the surface of coordinate point A1 and the surface of coordinate point A2 into line segments;
[0027] Figure 7 A schematic diagram of connecting the closest points of the coordinate point A3 surface into line segments in the present invention;
[0028] Figure 8 A schematic diagram of connecting the closest points on the coordinate point A4 surface into line segments in the present invention;
[0029] Fig. 9 This is a rendering of the line segments formed by connecting the points at the closest distance between the coordinate point A3 and the coordinate point A4 in the present invention;
[0030] Fig.10 A schematic diagram of connecting the closest points on the coordinate point A5 surface into line segments in the present invention;
[0031] Fig.11 A schematic diagram of connecting the closest points on the coordinate point A6 surface into line segments in the present invention;
[0032] Fig.12 This is a schematic diagram of generating the final spatial model in the present invention. DETAILED DESCRIPTION
[0033] like Figures 1 to 12 As shown in FIG. 1 , a method for parameterizing and generating a spatial model based on data coordinates is provided in the present invention. The spatial model is parameterized and generated in Grasshopper built into Rhino, and the method includes the following steps:
[0034] 1) First, based on the CAD node coordinate table provided by the architectural design unit, the CAD plug-in is used to extract the data in the node coordinate table to produce Excel, and then the Excel is saved as a txt text format;
[0035] 2) Then generate coordinate points through Rhino;
[0036] The specific steps for generating coordinate points are to open Rhino and the built-in Grasshopper plug-in, first select battery group Params→Input→File Path to extract the file path, then connect battery group Params→Primitive→Read Flie to read the coordinate data file; then connect battery group Sets→Text→Text split and connect Panel to input semicolon at input end C to split the file data; connect battery group Sets→List→List Item to arrange the data XYZ by item; finally, connect battery group Vector→Point→Construct Point to generate coordinate points in the XYZ axis direction. The XYZ axis coordinate point parameters are shown in Table 1.
[0037]
[0038]
[0039] Table 1 XYZ axis coordinate point parameters
[0040] 3) Bake the coordinate points generated by the Grasshopper battery pack into Rhino, display the editable coordinate points, and select the coordinate point A1 surface and the coordinate point A2 surface in the editable coordinate point area. Since the coordinate points generated in Rhino cannot be edited, the Grasshopper plug-in can be used to edit the coordinate points to improve the connection accuracy between each point. The coordinate point A1 surface and the coordinate point A2 surface can provide a reference position for the formation of the entire space model;
[0041] The specific steps for generating the coordinate point A1 surface and the coordinate point A2 surface are to first connect the nearest distance points in the coordinate point A1 surface into a straight line, then connect the nearest distance points in the coordinate point A2 surface into a straight line, and then connect the nearest distance points in the coordinate point A1 surface and the coordinate point A2 surface into straight lines up and down.
[0042] 4) Then, select the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 in the editable coordinate point area. The height of the spatial model can be imported through the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4, so that each horizontal plane has a sense of hierarchy;
[0043] The specific steps for generating the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 are to first connect the closest distance points in the vertical plane of coordinate point A3 into straight lines, then connect the closest distance points in the vertical plane of coordinate point A4 into straight lines, and then connect the closest distance points in the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 into straight lines up and down.
[0044] 5) Then select the coordinate point A5 and the coordinate point A6 along the editable coordinate point area, and merge all connected straight lines together from the battery set Sets→Tree→Merge to form an overall spatial model;
[0045] The specific steps for generating the coordinate point A5 plane and the coordinate point A6 plane are to connect the nearest distance points in the coordinate point A5 plane and the coordinate point A6 plane into straight lines using the steps for generating the coordinate points in the coordinate point A1 plane and the coordinate point A2 plane.
[0046] 6) Finally, manually delete the redundant line segments to form the final required spatial model. Since the overall spatial model is generated by a few poorly connected redundant straight lines, deleting the straight lines can reduce the storage capacity of the entire spatial model.
[0047] The specific steps for deleting redundant line segments are to bake the generated spatial model from the Grasshopper battery group into Rhino, delete them manually on the Rhino interface, then read the grid from Params→Curve, flatten the tree data by connecting the battery group Sets→Tree→Flatten Tree, and then delete the overlapping lines by connecting the battery group Vipers→Curve. Finally, bake the battery group with deleted overlapping lines into Rhino to form the final required spatial model.
[0048] The present invention extracts the data coordinates of the XYZ axis direction of the CAD plane and edits them into a text format, reads the data coordinates in the XYZ axis direction based on Grasshopper built into Rhino to generate coordinate points, and uses the nearest point connection method to generate a spatial model. Compared with the existing manual connection of coordinate points, the present invention can quickly connect in batches, is easy to operate, and has obvious promotion and application value.
[0049] The above are only specific embodiments of the present invention, but the technical features of the present invention are not limited thereto. Any simple changes, equivalent replacements or modifications made based on the present invention to achieve basically the same technical effects are all included in the protection scope of the present invention.
Claims
1. A method for parametrically generating a spatial model based on data coordinates, in which the spatial model is parametrically generated in Grasshopper built into Rhino, characterized in that The steps include: 1) First, based on the CAD node coordinate table provided by the architectural design unit, use the CAD plug-in to extract the data in the node coordinate table to produce Excel, and then save the Excel file as a txt text format; 2) Then generate coordinate points through Rhino; 3) Bake the coordinate points generated by the Grasshopper battery pack into Rhino, display the editable coordinate points, and select the coordinate point A1 surface and the coordinate point A2 surface in the editable coordinate point area; the specific steps for generating the coordinate point A1 surface and the coordinate point A2 surface are to first connect the closest distance points in the coordinate point A1 surface with a straight line, then connect the closest distance points in the coordinate point A2 surface with a straight line, and then connect the closest distance points in the coordinate point A1 surface and the coordinate point A2 surface with a straight line up and down; 4) Then select the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 in the editable coordinate point area; the specific steps of generating the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 are to first connect the closest distance points in the vertical plane of coordinate point A3 into straight lines, then connect the closest distance points in the vertical plane of coordinate point A4 into straight lines, and then connect the closest distance points in the vertical plane of coordinate point A3 and the vertical plane of coordinate point A4 into straight lines up and down; 5) Then select the coordinate point A5 surface and the coordinate point A6 surface along the editable coordinate point area, and merge all connected straight lines together from the battery pack Sets→Tree→Merge to form an overall spatial model; the specific generation steps of the coordinate point A5 surface and the coordinate point A6 surface are to use the generation steps of the coordinate points in the coordinate point A1 surface and the coordinate point A2 surface to connect the closest distance points in the coordinate point A5 surface and the coordinate point A6 surface into straight lines; 6) Finally, manually delete unnecessary line segments to form the final required spatial model.
2. The method for parameterizing and generating a spatial model based on data coordinates according to claim 1, characterized in that: The steps for generating coordinate points in step 2) are as follows: open Rhino and the built-in Grasshopper plug-in, first select battery pack Params→Input→File Path to extract the file path, then connect battery pack Params→Primitive→ReadFlie to read the coordinate data file; then connect battery pack Sets→Text→Text split and connect Panel to input semicolon at input end C to split the file data; connect battery pack Sets→List→List Item to arrange the data XYZ in separate items; finally connect battery pack Vector→Point→Construct Point to generate coordinate points in the XYZ axis direction.
3. The method for parameterizing and generating a spatial model based on data coordinates according to claim 1, characterized in that: The specific steps for deleting the redundant line segments in step 6) are to bake the generated spatial model from the Grasshopper battery group into Rhino, delete them manually on the Rhino interface, then read the grid from Params→Curve, flatten the tree data by connecting the battery group Sets→Tree→Flatten Tree, and then delete the overlapping lines by connecting the battery group Vipers→Curve. Finally, bake the battery group with deleted overlapping lines into Rhino to form the final required spatial model.
