A parametric modeling method for garden rockery based on Grasshopper

The parametric modeling method of the Grasshopper plug-in solves the problems of low modeling accuracy and efficiency in garden rockery design, realizes the rapid generation of multiple three-dimensional rockery model schemes, and improves design efficiency and the convenience of scheme comparison.

CN116702265BActive Publication Date: 2025-09-12ZHEJIANG SCI-TECH UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310440509.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-23
Publication Date
2025-09-12
Estimated Expiration
2043-04-23

AI Technical Summary

Technical Problem

The existing technology lacks a parametric rapid modeling method in garden rockery design, resulting in low design accuracy and low design efficiency.

Method used

A parametric modeling method based on Grasshopper was adopted. By creating geometric bodies in the Rhino plug-in, vertical segmentation, extraction of the center points of stone cubes, random unequal scaling and solid difference operations were performed to generate multiple three-dimensional rockery model schemes.

Benefits of technology

It realizes the rapid generation of three-dimensional rockery models, reduces repeated modeling steps, and improves design efficiency and the convenience of scheme comparison.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116702265B_ABST
    Figure CN116702265B_ABST
Patent Text Reader

Abstract

The invention discloses a parametric modeling implementation method for garden block stone rockery based on Grasshopper, comprising the following steps: 1) creating a geometric body in a Grasshopper plug-in of Rhino; 2) vertically splitting the geometric body into several layers by using a SplitBrepMultiple operator to form a layer model; 3) extracting the center points of block stone cubes constituting the layer model in the split layer model as reference points for operators such as scaling and offsetting of rockery stones in the layer model; 4) deconstructing the split layer model and independently controlling the X-axis and Y-axis offsets in the spatial structure of the layer model by using an Addition operator; 5) randomly scaling the offset layer model by using a ScaleNU operator; 6) randomly generating a point set on the modeling surface of the scaled model A by using a PopulateGeometry operator; 7) generating a random geometric body set B in the X-, Y- and Z-axis directions with the point set as the center; 8) deleting the geometric body by using a SolidDifference operator to realize hollowing of the rockery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of garden block stone rockery modeling, in particular to a parametric rapid modeling method for garden block stone rockery, and in particular to a Grasshopper-based parametric modeling implementation method for garden block stone rockery. Background Art

[0002] During the construction of a garden, rockery is often designed and constructed to create a unique landscape. Traditional landscape architects use drawings or miniature models to outline the rockery's design. During the construction phase, they rely on their accumulated experience and artistic expertise to guide the design and construction, resulting in limited precision in rockery design and construction. While modern landscape designers can utilize computers to create construction drawings and renderings during the design phase, the time-consuming and repetitive process of comparing and revising proposals often results in low design efficiency.

[0003] With the development of three-dimensional modeling technology and parametric design, information technology and computer programming technologies have been increasingly used in the field of garden design. However, since most garden designers lack attention to the methods and approaches of parametric design, and have little knowledge of parametric software and programming application methods, it is difficult to achieve the transformation from the existing design process to digitalization and parametricization. Therefore, there are few parametric rapid modeling methods in the current rockery design. Summary of the Invention

[0004] In view of this, the object of the present invention is to provide a parametric modeling implementation method for garden block stone rockery based on Grasshopper.

[0005] To achieve the above object, the present invention provides a method for parametric modeling of garden block rockery based on Grasshopper, comprising the following steps:

[0006] 1) Create a geometry in the Grasshopper plug-in for Rhino, where the Z-axis height is set to the upper limit of the rockery model;

[0007] 2) Use the Split Brep Multiple operator to vertically split the geometry into several layers to form a layer model. Adjust the height of each layer model to the set value.

[0008] 3) Extract the center point of the stone cube that constitutes the layer model in the segmented layer model as the reference point for the operators such as scaling and offset of the rockery stone in the layer model;

[0009] 4) Deconstruct the split layer model and independently control the X and Y axis offsets in the layer model's spatial structure through the Addition operator;

[0010] 5) The offset layer model is randomly scaled by the Scale NU operator to obtain a model A with random widths on the X and Y axes.

[0011] 6) Using the Populate Geometry component, randomly generate a set of points on the scaled surface of model A.

[0012] 7) Generate a random geometric set B in the X, Y, and Z axis directions with the point set as the center;

[0013] 8) Use the Solid Difference operator to delete and hollow out the rockery.

[0014] In step 1), the specific steps to create a geometric body are:

[0015] Create a rectangle R1 and use the numeric range Construct Domain to control the X and Y axis length values ​​of rectangle R1, where Domain start is the minimum value and Domain end is the maximum value. Use the Extrude operator to extrude the overall height L to obtain the geometric body A.

[0016] In step 2), the rectangle R1 is copied n times along the Z axis to obtain R1-R n , using R1-R n Use the Split BrepMultiple operator to split the geometry A along the Z axis to obtain the geometry A1-A n+1 And control the height L1-L of each layer of model geometry after segmentation through Gene Pool n+1 .

[0017] In step 3), for the geometry A1-A n+1 After sealing the hole, extract the segmented geometry A1-A n+1 The center point P1-P n+1 .

[0018] In step 4),

[0019] 4.1) Extract the center point of the stone cube constituting the layer model in the segmented layer model as the reference origin;

[0020] 4.2) Obtain the X and Y coordinates of the center point of each rockery layer after the offset, and calculate the difference between them and the coordinates of the reference origin.

[0021] 4.3) Get the X-axis and Y-axis lengths of each layer of the model as L and W respectively;

[0022] 4.4) i is set according to the sum of the offset value and the aspect ratio value, which is divided into 1, 0.9, 0.8, 0.7...0, and the layer model offset preset value based on the offset value and aspect ratio classification is constructed; wherein, i is set according to the sum of the offset value and the aspect ratio value as follows: for the center point P1-P n+1 The Deconstruct operator extracts the center point coordinates X, Y, and Z, and determines the offset i value of the X and Y coordinate values. The Addition operator and Gene Pool are used to individually control the offset i value of each layer of geometry.

[0023] In step 4.2, the differences X1 and Y1 must be converted to absolute values ​​so that each offset result is a positive number.

[0024] In step 4.4, the calculation formula for the offset value and the aspect ratio value is: i = X1 / L+Y1 / W.

[0025] In step 5), the model after the offset is randomly scaled by the Scale NU operator, where the basic geometry input is A1-A n+1 ;The reference plane input end is P1-P n+1 ; Add the Random operator to the X and Y axes, and adjust the concave and convex degree and shape type of the geometry through the NumberSlider to obtain geometry A 1′ -A n+1′ .

[0026] In step 6), the randomly scaled geometry is deconstructed by the Deconstruct Brep operator to extract surface elements, and a point set is randomly generated on the extracted surface by the Populate Geometry operator.

[0027] In step 7), a geometric body set B with random X, Y, and Z axis values ​​is generated by the Random operator with the point set as the center.

[0028] In step 8), the Solid Difference operator is used to perform a difference between the unequally scaled geometry and the randomly generated geometry set, where the operator A inputs geometry A. 1′ -A n+1′ ; Input geometry collection B on the B end.

[0029] The method designed by the present invention can automatically and quickly generate multiple three-dimensional model schemes in a short period of time by inputting basic size data of block rockery and adjusting random type values, greatly reducing the repetition rate of corresponding steps in traditional modeling technology.

[0030] The method designed by the present invention can synchronously generate a three-dimensional rockery model and perform real-time adjustments, thereby improving design efficiency and facilitating scheme comparison and selection. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for describing the embodiments or the prior art.

[0032] Figure 1 It is a schematic diagram of the overall process of the parametric modeling implementation method of the present invention;

[0033] Figure 2 It is a schematic diagram of two different layer cutting methods for block rockery modeling according to the present invention. DETAILED DESCRIPTION

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0035] Reference Figure 1 and Figure 2 A parametric modeling method for garden rockery based on Grasshopper includes the following steps:

[0036] 1) Create a geometry in the Grasshopper plug-in for Rhino, where the Z-axis height is set to the upper limit of the rockery model;

[0037] 2) Use the Split Brep Multiple operator to vertically split the geometry into several layers to form a layer model. Adjust the height of each layer model to the set value.

[0038] 3) Extract the center point of the stone cube that constitutes the layer model in the segmented layer model as the reference point for the operators such as scaling and offset of the rockery stone in the layer model;

[0039] 4) Deconstruct the split layer model and independently control the X and Y axis offsets in the layer model's spatial structure through the Addition operator;

[0040] 5) The offset layer model is randomly scaled by the Scale NU operator to obtain a model A with random widths on the X and Y axes.

[0041] 6) Using the Populate Geometry component, randomly generate a set of points on the scaled surface of model A.

[0042] 7) Generate a random geometric set B in the X, Y, and Z axis directions with the point set as the center;

[0043] 8) Use the Solid Difference operator to delete and hollow out the rockery.

[0044] In step 1), the specific steps to create a geometric body are:

[0045] Create a rectangle R1 and use the numeric range Construct Domain to control the X and Y axis length values ​​of rectangle R1, where Domain start is the minimum value and Domain end is the maximum value. Use the Extrude operator to extrude the overall height L to obtain the geometric body A.

[0046] In step 2), the rectangle R1 is copied n times along the Z axis to obtain R1-R n , using R1-R n Use the Split BrepMultiple operator to split the geometry A along the Z axis to obtain the geometry A1-A n+1 And control the height L1-L of each layer of model geometry after segmentation through Gene Pool n+1 .

[0047] In step 3), for the geometry A1-A n+1 After sealing the hole, extract the segmented geometry A1-A n+1 The center point P1-P n+1 .

[0048] In step 4),

[0049] 4.1) Extract the center point of the stone cube constituting the layer model in the segmented layer model as the reference origin;

[0050] 4.2) Obtain the X and Y coordinates of the center point of each rockery layer after the offset, and calculate the difference between them and the coordinates of the reference origin.

[0051] 4.3) Get the X-axis and Y-axis lengths of each layer of the model as L and W respectively;

[0052] 4.4) i is set according to the sum of the offset value and the aspect ratio value, which is divided into 1, 0.9, 0.8, 0.7...0, and the layer model offset preset value based on the offset value and aspect ratio classification is constructed; wherein, i is set according to the sum of the offset value and the aspect ratio value as follows: for the center point P1-P n+1The Deconstruct operator extracts the center point coordinates X, Y, and Z, and determines the offset i value of the X and Y coordinate values. The Addition operator and Gene Pool are used to individually control the offset i value of each layer of geometry.

[0053] In step 4.2, the differences X1 and Y1 must be converted to absolute values ​​so that each offset result is a positive number.

[0054] In step 4.4, the calculation formula for the offset value and the aspect ratio value is: i = X1 / L+Y1 / W.

[0055] In step 5), the model after the offset is randomly scaled by the Scale NU operator, where the basic geometry input is A1-A n+1 ;The reference plane input end is P1-P n+1 ; Add the Random operator to the X and Y axes, and adjust the concave and convex degree and shape type of the geometry through the NumberSlider to obtain geometry A 1′ -A n+1′ .

[0056] In step 6), the randomly scaled geometry is deconstructed by the Deconstruct Brep operator to extract surface elements, and a point set is randomly generated on the extracted surface by the Populate Geometry operator.

[0057] In step 7), a geometric body set B with random X, Y, and Z axis values ​​is generated by the Random operator with the point set as the center.

[0058] In step 8), the Solid Difference operator is used to perform a difference between the unequally scaled geometry and the randomly generated geometry set, where the operator A inputs geometry A. 1′ -A n+1′ ; Input geometry collection B on the B end.

[0059] In the above, the Z-axis rockery height input in step 1) is based on actual project requirements or refers to theories such as "external module", "optimal viewing distance" and "landscape space scale".

[0060] The number of layers in step 2) can be the actual number of layers of the block rockery or the three parts of the traditional rockery construction steps of "bottom layer - middle waist - top layer".

[0061] In step 4), if the number of layers is divided according to the actual number of layers of the rockery, based on the static force relationship and engineering safety considerations, the X and Y axis offset i values ​​should not be greater than 0.5.

[0062] The X-axis and Y-axis coefficients of the random unequal scaling in step 5) are reasonably adjusted according to the method of the number of slices in step 2).

[0063] The method designed by the present invention can automatically and quickly generate multiple three-dimensional model schemes in a short period of time by inputting basic size data of block rockery and adjusting random type values, greatly reducing the repetition rate of corresponding steps in traditional modeling technology.

[0064] The method designed by the present invention can synchronously generate a three-dimensional rockery model and perform real-time adjustments, thereby improving design efficiency and facilitating scheme comparison and selection.

[0065] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.

Claims

1. A parametric modeling method for garden rockery based on Grasshopper, characterized in that: The steps include: 1) Create a geometry in the Grasshopper plug-in for Rhino, where the Z-axis height is set to the upper limit of the rockery model; 2) Use the Split Brep Multiple operator to vertically split the geometry into several layers to form a layer model. Adjust the height of each layer model to the set value. 3) Extract the center point of the stone cube that constitutes the layer model in the segmented layer model as the reference point of the rockery stone scaling and offset operator of the layer model; 4) Deconstruct the split layer model and independently control the X and Y axis offsets in the layer model's spatial structure through the Addition operator, including: 4.1) Extract the center point of the stone cube constituting the layer model in the segmented layer model as the reference origin; 4.2) Obtain the X and Y coordinates of the center point of each rockery layer after the offset, and calculate the difference between them and the coordinates of the reference origin. 4.3) Get the X-axis and Y-axis lengths of each layer of the model as L and W respectively; 4.4) i is set according to the sum of the offset value and the aspect ratio value, which is divided into 1, 0.9, 0.8, 0.7...0, and the layer model offset preset value based on the offset value and aspect ratio classification is constructed; wherein, i is set according to the sum of the offset value and the aspect ratio value as follows: for the center point P1-P n+1 The Deconstruct operator extracts the center point coordinates X, Y, and Z, and determines the offset i value of the X and Y coordinate values. The Addition operator and Gene Pool are used to individually control the offset i value of each layer of geometry. In step 4.2, the differences X1 and Y1 must be converted to absolute values ​​so that each offset result is a positive number. In step 4.4, the offset value and aspect ratio are calculated as follows: i = X1 / L + Y1 / W; 5) The offset layer model is randomly scaled by the Scale NU operator to obtain a model A with random widths on the X and Y axes. Specifically: The offset model is randomly scaled by the Scale NU operator, where the basic geometry input is A1-A n+1 ;The reference plane input end is P1-P n+1 ; Add the Random operator to the X and Y axes, and use the Number Slider to adjust the concave and convex degree and shape type of the geometry to obtain geometry A 1′ -A n+1′ ; 6) Use the Populate Geometry component to randomly generate a set of points on the scaled surface of model A. Specifically: The randomly scaled geometry is deconstructed using the Deconstruct Brep operator to extract surface elements, and a set of points is randomly generated on the extracted surface using the Populate Geometry operator. 7) Generate a random geometric set B in the X, Y, and Z axis directions with the point set as the center; 8) Use the Solid Difference operator to delete and hollow out the rockery.

2. The method for implementing parametric modeling of garden block rockery based on Grasshopper according to claim 1, characterized in that: In step 1), the specific steps to create a geometric body are: Create a rectangle R1 and use the numeric range Construct Domain to control the X and Y axis length values ​​of rectangle R1, where Domain start is the minimum value and Domain end is the maximum value. Use the Extrude operator to extrude the overall height L to obtain the geometric body A.

3. The method for implementing parametric modeling of garden block rockery based on Grasshopper according to claim 1, characterized in that: In step 2), the rectangle R1 is copied n times along the Z axis to obtain R1-R n , using R1-R n Use the Split BrepMultiple operator to split the geometry A along the Z axis to obtain the geometry A1-A n+1 And control the height L1-L of each layer of model geometry after segmentation through Gene Pool n+1 .

4. The method for implementing parametric modeling of garden block rockery based on Grasshopper according to claim 1, characterized in that: In step 3), for the geometry A1-A n+1 After sealing the hole, extract the segmented geometry A1-A n+1 The center point P1-P n+1 .

5. The method for implementing parametric modeling of garden block rockery based on Grasshopper according to claim 1, characterized in that: In step 7), a geometric body set B with random X, Y, and Z axis values ​​is generated by the Random operator with the point set as the center.

6. The method for implementing parametric modeling of garden block rockery based on Grasshopper according to claim 1, characterized in that: In step 8), the Solid Difference operator is used to perform a difference between the unequally scaled geometry and the randomly generated geometry set, where the operator A inputs geometry A. 1′ -A n+1′ ; Input geometry collection B on the B end.

Citation Information

Patent Citations

  • Grasshopper-based bionic lattice model construction method

    CN115358126A

  • Garden Taihu rock single-peak form automatic generation method and system

    CN115758533A