Roof parting and gradual change effect modeling method and system based on Rhino and Grasshopper platforms
By working collaboratively with the Rhino and Grasshopper platforms, and utilizing the Delaunay triangulation algorithm and control curves, triangle combinations were generated and given visual attributes. This solved the parametric modeling problem of roof fractal and gradient effects, improving design efficiency and aesthetic value.
Patent Information
- Application Number
- CN202511584722.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-02-03
AI Technical Summary
Existing technologies lack a parametric modeling method specifically for roof triangular fractal and gradient effects, which fails to meet the dual requirements of aesthetic efficiency and construction convenience in architectural design.
Based on the Rhino and Grasshopper platforms, triangle combinations are generated using the Delaunay triangulation algorithm, classified by combining control curves and random parameters, and assigned different visualization attributes to achieve a gradient effect.
It enables parametric and rapid design of roof triangular fractal and gradient effects, improves design efficiency, enhances architectural aesthetics, supports multi-scheme comparison, and promotes the integration of design and construction.
Smart Images

Figure CN121456964A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital architectural design technology, and more specifically, to a parametric modeling method and system for roof parting and gradient effects based on the Rhino and Grasshopper platforms. Background Technology
[0002] With the continuous improvement of modern architectural design, curved surfaces have become an important form of architectural expression, with curved roofs widely used in public buildings, cultural facilities, and commercial projects. However, the design refinement of curved roofs faces many challenges: on the one hand, large-scale curved roofs can easily create a sense of visual monotony and oppression, affecting the user's spatial experience; on the other hand, curved roofs are viewed from multiple angles, including bird's-eye views and human perspectives, making roof detail design crucial. To address these challenges, architects often employ fractal design techniques, decomposing the overall curved surface into multiple similar geometric shapes to enhance visual hierarchy and dynamic effects. Triangular fractals, due to their geometric stability and ease of construction, have become a preferred solution for roof refinement.
[0003] Traditional fractal roof design relies on manual modeling in software such as Rhino or CAD tools. Manual modeling is inefficient, and fractal operations on triple surfaces are technically challenging, requiring designers to possess advanced spatial imagination and software skills. More importantly, manual modeling is extremely time-consuming when the design process involves comparing multiple options and iterative optimization, making it difficult to implement in real-world projects. This not only limits the exploration of design ideas but also increases project time and costs.
[0004] While existing technologies employ parametric modeling methods for steel or membrane roof structures, such as mesh generation techniques based on Rhino and Grasshopper, these methods primarily focus on the arrangement and mechanical properties of structural components, neglecting the design of roof fractals and visual gradations. For instance, CN108629117A discloses a method for modeling a curved steel arch mesh roof, but emphasizes structural line generation and solidification; CN115391899A, targeting the steel structure of an amusement park's exterior, uses parametric modeling through categorized shapes, but fails to address roof fractals and gradations; CN119416301A utilizes Dynamo for membrane roof modeling, but this method is based on the Revit platform and does not include control over triangle fractals and gradations. Therefore, existing technologies lack a dedicated parametric modeling method for roof triangle fractal and gradation effects, failing to meet the dual demands of aesthetic efficiency and construction convenience in architectural design. Summary of the Invention
[0005] To address the aforementioned shortcomings of existing technologies, this invention proposes a modeling method and system for roof fractal and gradient effects based on the Rhino and Grasshopper platforms. The purpose of this invention is to achieve rapid generation and multi-scheme comparison of triangular fractal and gradient effects on curved roofs through parametric technology, thereby improving design efficiency and quality.
[0006] To solve the above-mentioned technical problems, the technical solution proposed in this application is as follows: This invention provides a modeling method for roof parting and gradient effects based on the Rhino and Grasshopper platforms, comprising the following steps: Step 1: Surface fractal: Based on the basic curved surface of the building roof, generate a triangle combination G that covers the basic curved surface; Step 2: Triangle classification. Based on the control curve and randomness parameters, the triangle combination G is classified into at least two triangle sub-combinations. Step 3: Gradient Formation. Assign different visual attributes to the triangular sub-combinations obtained in Step 2 to form a gradient effect on the base surface.
[0007] Furthermore, step 1 specifically includes: Step 1-1: Select the base surface in Rhino software; Step 1-2: Using the Grasshopper platform, generate N1 random points on the outer contour line of the base surface and N2 random control points on the base surface, wherein the number of N1 and N2 is adjusted by the Number Slider controller in Grasshopper; Steps 1-3: Using the Delaunay triangulation algorithm in the Grasshopper platform, calculate the N1 random points and N2 random control points to generate the triangle combination G covering the basic surface.
[0008] Further, in steps 1-2, the N1 random points and N2 random control points are generated by the Populate Geometry operator in the Grasshopper platform; in steps 1-3, the Delaunay triangulation calculation is performed by the Delaunay Mesh operator in the Grasshopper platform.
[0009] Furthermore, step 2 specifically includes: Step 2-1: Set a control curve C in Rhino software; Step 2-2: Input the control curve C and the triangle combination G into the arithmetic unit built on the Grasshopper platform; Steps 2-3: By adjusting the position and shape of the control curve C, the randomness parameter value in the Grasshopper calculator, and the random range value, the triangle combination G is randomly classified into the first triangle sub-combination G1 and the second triangle sub-combination G2.
[0010] Furthermore, the randomness parameter value controls the magnitude of the classification fluctuation, and the random range value controls the proportion of each triangular sub-combination after classification; the randomness parameter value and the random range value are adjusted by the Number Slider controller in Grasshopper.
[0011] Furthermore, after classifying the triangle combination G into G1 and G2, the process further includes: setting new control curves and repeating the classification operation on the first triangle sub-combination G1 and / or the second triangle sub-combination G2 to generate more levels of triangle sub-combinations.
[0012] Furthermore, in step 3, the visualization attributes include material, color, or perforation rate; the classified triangle sub-combinations are output to the Rhino model through the Bake function of the Grasshopper platform, and different visualization attributes are assigned to each triangle sub-combination in the Rhino model.
[0013] This invention also provides a modeling system for roof parting and gradient effects based on the Rhino and Grasshopper platforms, comprising: The fractal module is used to generate a triangle combination G that covers the basic curved surface of the building roof. A triangle classification module is used to classify the triangle combination G into at least two triangle sub-combinations based on control curves and random parameters; The gradient generation module is used to assign different visual attributes to the categorized triangular subgroups to create a gradient effect.
[0014] Furthermore, the surface fractal module specifically includes: The basic surface selection unit is used to select the basic surface in Rhino software; The random point generation unit is used to generate N1 random points on the outer contour line of the base surface through the Grasshopper platform, and to generate N2 random control points on the base surface. Triangulation units are used to generate the triangle combination G using the Delaunay triangulation algorithm in the Grasshopper platform.
[0015] Furthermore, the triangle classification module specifically includes: The control curve setting unit is used to set control curves in Rhino software; The parameter adjustment unit is used to adjust the randomness parameter value and random range value through the Grasshopper arithmetic unit; The classification execution unit is used to classify the triangle combination G into multiple triangle sub-combinations.
[0016] On the other hand, this application claims protection for an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the method as described in any of the foregoing statements.
[0017] In another aspect, this application claims protection for a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any of the preceding descriptions.
[0018] Compared with the prior art, the present invention achieves the following beneficial technical effects: Compared to existing technologies, this invention, based on the Rhino and Grasshopper platforms, enables rapid parametric design of roof triangular fractal and gradient effects. First, Delaunay triangulation generates an organic triangular mesh, breaking the visual monotony of curved roof surfaces. Second, control curves and random parameters are used to classify triangles, supporting multi-level gradient control and providing high design flexibility. Finally, the application of visual attributes creates a natural gradient effect, enhancing the architectural aesthetic value. This method significantly reduces the time and workload of manual modeling, supports real-time multi-scheme comparison, and meets the needs of architects. Simultaneously, decomposing spatial curved surfaces into planar triangular units facilitates subsequent component manufacturing and installation, promoting the integration of design and construction. The modular design of the system further improves the operability and applicability of the method. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the core steps of a specific embodiment of the present invention.
[0021] Figure 2 This is a three-dimensional schematic diagram of the basic curved surface in a specific embodiment of the present invention.
[0022] Figure 3 This is a schematic diagram of a Grasshopper battery pack that fractals a curved surface in a specific embodiment of the present invention.
[0023] Figure 4 This is a three-dimensional schematic diagram of controlling the 1#Number Slider to generate N1 points in a specific embodiment of the present invention.
[0024] Figure 5 This is a three-dimensional schematic diagram of controlling the 2#Number Slider to generate N2 points in a specific embodiment of the present invention.
[0025] Figure 6 This is a three-dimensional schematic diagram of the control point generating triangular face combination G in a specific embodiment of the present invention.
[0026] Figure 7 This is a three-dimensional schematic diagram of curve C1 controlling triangle classification in a specific embodiment of the present invention.
[0027] Figure 8 This is a three-dimensional schematic diagram of a Grasshopper battery pack generating a gradient effect in a specific embodiment of the present invention.
[0028] Figure 9 This is a three-dimensional schematic diagram illustrating the effect of triangular facets G1 being classified into G1 and G2 in a specific embodiment of the present invention.
[0029] Figure 10 This is a three-dimensional schematic diagram of curve C2, which controls the classification of triangles, in a specific embodiment of the present invention.
[0030] Figure 11 This is a schematic diagram illustrating the effect of classifying the triangular face combination G1 into G1-1 and G1-2 in a specific embodiment of the present invention.
[0031] Figure 12 This is a three-dimensional view of the fractal and gradient effects of curved triangles in a specific embodiment of the present invention.
[0032] Figure 13 This is a flowchart illustrating a modeling method for roof parting and gradient effects based on the Rhino and Grasshopper platforms according to the present invention.
[0033] Figure 14 This is a structural diagram of a roof parting and gradient effect modeling system based on the Rhino and Grasshopper platforms according to the present invention. Detailed Implementation To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0035] like Figure 13 As shown, this application provides a modeling method for roof fractal and gradient effects based on the Rhino and Grasshopper platforms, including the following steps: Step 1: Surface fractal, generating a triangle combination G covering the basic surface of the building roof; Step 2: Triangle classification, classifying the triangle combination G into at least two triangle sub-combinations based on control curves and randomness parameters; Step 3: Gradient formation, assigning different visual attributes to each triangle sub-combination obtained in Step 2 to form a gradient effect on the basic surface.
[0036] This application utilizes a modeling method for roof fractals and gradient effects based on the Rhino and Grasshopper platforms. This method generates a triangular combination G covering the base surface through surface fractals. Then, based on control curves and randomness parameters, the triangular combination G is classified into at least two triangular sub-combinations. Finally, different visual attributes are assigned to each triangular sub-combination to create a gradient effect. This technical principle overcomes the difficulty in flexibly achieving complex gradient appearance effects in traditional architectural design, allowing designers to intuitively control and adjust the visual representation of the roof in a 3D modeling environment, achieving precise control over the gradient effect of the roof appearance. By using the Delaunay triangulation algorithm and adjusting random parameters on the Grasshopper platform, not only is the tightness and continuity of the roof coverage ensured, but natural random variations are also introduced to mimic gradient phenomena in nature, enhancing the artistry and uniqueness of the building's appearance. Furthermore, by adjusting visual attributes such as material, color, or perforation rate, rich layers and light and shadow effects can be created on the same roof surface, improving the aesthetic value and spatial experience of the building. In summary, the technical solution of this application provides architects with an efficient and flexible tool to achieve complex roof gradient effects, thereby enhancing the innovation and expressiveness of architectural design.
[0037] Further, in this embodiment, step 1 specifically includes: Step 1-1: Selecting a base surface in Rhino software; Step 1-2: Generating N1 random points on the outer contour line of the base surface and N2 random control points on the base surface using the Grasshopper platform, wherein the number of N1 and N2 is adjusted by the controller in Grasshopper; Step 1-3: Calculating the N1 random points and N2 random control points using the Delaunay triangulation algorithm in the Grasshopper platform to generate a triangle combination G covering the base surface.
[0038] In this embodiment, a modeling method for roof parting and gradient effects based on the Rhino and Grasshopper platforms is specifically described. First, the base surface selection unit selects the base surface of the target roof in Rhino software. Then, the random point generation unit generates a preset number of random points N1 and N2 on the boundary and inside of this surface using the Grasshopper platform. The number of these points is flexibly adjusted by the Number Slider controller. The triangulation unit uses the Delaunay Mesh operator to perform triangulation calculations on the generated points, forming a triangular combination G covering the base surface. Next, the control curve setting unit sets the control curve C in Rhino, and the parameter adjustment unit adjusts the randomness parameter and random range value in Grasshopper. The classification execution unit randomly classifies G into two sub-combinations, G1 and G2, based on the adjusted parameters. By iteratively setting new control curves and repeating the classification operation, the hierarchy of the triangular sub-combinations can be further refined. Finally, the gradient generation module uses the Bake function to output the categorized triangular sub-combinations to the Rhino model, assigning each sub-combination different visual attributes, such as material, color, or perforation rate, thereby achieving a unique gradient effect on the roof. This method not only creates visually rich roof designs but also allows for flexible adjustment of the effect through parameter control, providing new possibilities for architectural design.
[0039] Furthermore, in this embodiment, in steps 1-2, N1 random points and N2 random control points are generated by the PopulateGeometry operator in the Grasshopper platform; in steps 1-3, Delaunay triangulation calculation is performed by the Delaunay Mesh operator in the Grasshopper platform.
[0040] In this embodiment, a modeling method for roof fractal and gradient effects based on the Rhino and Grasshopper platforms is implemented. Its core lies in three steps: surface fractal, triangle classification, and gradient formation. First, N1 random outer contour points and N2 random surface control points are generated on the base surface of the building roof. Using the Delaunay triangulation algorithm, a triangle combination G covering the base surface is created. This process utilizes the Populate Geometry and Delaunay Mesh operators in the Grasshopper platform. Next, based on control curves and randomness parameters, the triangle combination G is classified into at least two triangle sub-combinations. The position and shape of the control curves, as well as the values and ranges of the randomness parameters, are adjusted by the Number Slider controller in the Grasshopper platform to ensure precise control over the classification fluctuations and the proportion of each sub-combination. Finally, by assigning different visual attributes, such as material, color, or perforation rate, to the classified triangle sub-combinations and outputting them to the Rhino model using Grasshopper's Bake function, a gradient effect on the base surface is achieved. This method not only generates roof designs that are layered and visually impactful, but also refines the effects through repeated categorization operations, increasing the complexity and artistry of the design. The entire process demonstrates the powerful flexibility and innovative potential of digital design tools in architectural representation, meeting architects' diverse and personalized needs for roof forms.
[0041] Further, in this embodiment, step 2 specifically includes: step 2-1: setting a control curve C in the Rhino software; step 2-2: inputting the control curve C and the triangle combination G into the calculator built on the Grasshopper platform; step 2-3: by adjusting the position and shape of the control curve C, the randomness parameter value and the random range value in the Grasshopper calculator, randomly classifying the triangle combination G into a first triangle sub-combination G1 and a second triangle sub-combination G2.
[0042] In this embodiment, steps 2-1 to 2-3 describe the process of triangle classification based on control curves and random parameters. First, step 2-1 involves selecting a control curve C in the Rhino software, which serves as the basic guiding principle for classification. Then, step 2-2 imports the selected control curve C along with the triangle combination G generated in the previous step into the Grasshopper platform's calculator. Finally, step 2-3 achieves random classification of triangle combination G by dynamically adjusting the geometric properties of control curve C, the randomness parameter values within the Grasshopper calculator, and the random range values, generating the first triangle sub-combination G1 and the second triangle sub-combination G2. This classification method based on control curves and parameter adjustments can introduce necessary random variations while maintaining design consistency, creating rich visual layers for subsequent gradient effects. Furthermore, by repeating step 2, these triangle sub-combinations can be further subdivided, increasing the complexity and detail of the design, so that the final roof model not only has a gradient aesthetic but also possesses higher artistic expression and functionality. In other embodiments not shown in the figure, the applicability of the method can be expanded to roof surfaces of different shapes and sizes by changing the number and type of control curves, achieving more diverse design effects.
[0043] Furthermore, in this embodiment, the randomness parameter value controls the magnitude of the classification fluctuation, and the random range value controls the proportion of each triangular sub-combination after classification; the randomness parameter value and the random range value are adjusted by the Number Slider controller in Grasshopper.
[0044] In this embodiment, by introducing a Number Slider controller into the Grasshopper platform to adjust the randomness parameter and random range values, precise control over the classification of triangular sub-combinations is achieved. Adjusting the randomness parameter affects the volatility during the classification process, while the random range determines the proportion of each triangular sub-combination after classification. This parameterized control method allows designers to explore and optimize gradient effects more flexibly. Leveraging Grasshopper's powerful computing capabilities, designers can create roof gradation schemes that are both aesthetically pleasing and consistent with their design intent through iterative adjustments. In practical applications, this algorithm-based gradient modeling method significantly enhances the innovation and visual appeal of architectural design while ensuring the replicability and controllability of the design results, facilitating seamless integration between architectural design and engineering implementation. Furthermore, this method supports multi-level classification operations, further subdividing the already classified triangular sub-combinations by setting new control curves, thereby creating richer and more nuanced gradient layers on the roof, enhancing the dynamic and spatial feel of the building's facade. Whether pursuing architectural aesthetics or considering building functionality, this method provides strong technical support, enabling designers to find a balance in complex and ever-changing design needs and create architectural works that combine beauty and practicality. In other embodiments not shown, designers can further expand the application scope of this method to meet more diverse design requirements by changing the shape and position of the control curves or adjusting the properties of the triangles (such as material, color, or perforation rate).
[0045] Furthermore, in this embodiment, after classifying the triangle combination G into G1 and G2, the method further includes: setting a new control curve, and repeating the classification operation on the first triangle sub-combination G1 and / or the second triangle sub-combination G2 to generate more levels of triangle sub-combinations.
[0046] In this embodiment, after generating the basic triangle combination G, a further technical solution is to introduce a multi-level classification mechanism. First, by setting one or more control curves and combining them with the calculator in the Grasshopper platform, G is randomly divided into a first triangle sub-combination G1 and a second triangle sub-combination G2. Based on this, new control curves can be set again to further classify G1 or G2, generating more subdivided triangle sub-combinations and forming a multi-layered gradient distribution. This hierarchical classification strategy not only enhances the visual hierarchy of the roof design but also provides greater design freedom, allowing designers to precisely control the complexity and detail of the roof gradient effect. By adjusting the position, shape, and random parameter values of the control curves, various gradient patterns can be created on the roof to meet different architectural aesthetic and functional requirements. Finally, by assigning different visual attributes, such as material, color, or perforation rate, to the triangle sub-combinations at each level, a dynamic and deep gradient effect can be formed on the building roof, enhancing the artistry and functionality of the building's appearance. In other embodiments not shown, this method is also applicable to the design of various complex curved surfaces, demonstrating its wide applicability and high flexibility.
[0047] Furthermore, in this embodiment, in step 3, the visualization attributes include material, color, or perforation rate; the classified triangle sub-combinations are output to the Rhino model through the Bake function of the Grasshopper platform, and different visualization attributes are assigned to each triangle sub-combination in the Rhino model.
[0048] In this embodiment, a modeling method for roof fractal and gradient effects based on the Rhino and Grasshopper platforms is further detailed. First, the fractal module selects the basic surface of the building roof in Rhino software. Random points are generated on the outer contour line and surface of this surface, and the Delaunay triangulation algorithm is used to calculate and form a triangular combination G covering the basic surface. Then, the triangle classification module uses control curves and randomness parameters to classify the triangular combination G into at least two triangular sub-combinations. By adjusting the position and shape of the control curves and the parameter values in the Grasshopper calculator, the randomness of the classification and the proportion of each triangular sub-combination are controlled. Finally, the gradient forming module outputs the classified triangular sub-combinations to the Rhino model through the Grasshopper platform's Bake function and assigns different visual attributes, such as material, color, or perforation rate, to achieve a gradient effect on the surface. This method not only creates visually rich and varied roof designs, but also allows for precise control over design details through fine-tuning of control curves and parameters, achieving predictability and innovation in the design and providing new possibilities for personalized and aesthetically pleasing building facades. In some implementations, by setting new control curves to reclassify the categorized triangular sub-combinations, more levels of triangular combinations can be generated, further enriching the gradient effect and making the roof design more complex and refined.
[0049] like Figure 14 As shown, in order to implement the above method, this application provides a modeling system for roof fractal and gradient effects based on the Rhino and Grasshopper platforms, including: a surface fractal module for generating a triangle combination G covering the basic surface of the building roof; a triangle classification module for classifying the triangle combination G into at least two triangle sub-combinations based on control curves and randomness parameters; and a gradient forming module for assigning different visual attributes to each classified triangle sub-combination to form a gradient effect.
[0050] The technical solution of this embodiment, a roof fractal and gradient effect modeling system based on the Rhino and Grasshopper platforms, firstly generates dense triangle combinations on the selected basic roof surface using the surface fractal module, and uses the Delaunay triangulation algorithm to ensure that the triangles uniformly cover the entire surface. Next, the triangle classification module, based on set control curves and randomness parameters, randomly and systematically divides these triangles into several sub-combinations. This division method not only follows the guidance of the design curves but also introduces random factors to enhance visual hierarchy and complexity. Finally, the gradient forming module assigns specific visual attributes to the triangles in different sub-combinations, such as changes in material, color, or perforation rate. By displaying the gradual changes of these attributes on the surface, a gradient effect on the roof appearance is achieved. This technical solution allows designers to intuitively adjust gradient details in the 3D model, improving design efficiency and creative expression capabilities, and solving the problem of traditional design methods' difficulty in accurately controlling roof detail gradients.
[0051] Furthermore, in this embodiment, the surface fractal module specifically includes: a basic surface selection unit, used to select a basic surface in Rhino software; a random point generation unit, used to generate N1 random points on the outer contour line of the basic surface and N2 random control points on the basic surface through the Grasshopper platform; and a triangulation unit, used to generate a triangle combination G through the Delaunay triangulation algorithm in the Grasshopper platform.
[0052] In this embodiment, the roof fractal and gradient effect modeling system based on the Rhino and Grasshopper platforms achieves innovation in roof design and optimization of visual effects through a surface fractal module, a triangle classification module, and a gradient forming module. The surface fractal module first selects a base surface, then generates N1 random points on the outer contour and N2 random control points on the surface. It then uses the Delaunay triangulation algorithm to generate a triangle combination G covering the base surface. Subsequently, the triangle classification module, based on control curves and randomness parameters, classifies triangle combination G into at least two triangle sub-combinations. This process controls the volatility and quantity ratio of classification by adjusting the curve position, shape, and parameter values, achieving refined management of the triangle combinations. Finally, the gradient forming module assigns different visual attributes to each triangle sub-combination, such as material, color, or perforation rate, and outputs it to the Rhino model through the Grasshopper platform's Bake function to form a gradient effect. This modeling method not only creates unique roof designs, but also generates multi-level triangular sub-combinations through repeated classification operations, further enriching the visual hierarchy and design details, and enhancing the aesthetic value of the building's appearance and the innovation of its structure.
[0053] Furthermore, in the fractal surface module, the basic surface selection unit selects the design basis in Rhino software, the random point generation unit generates random points on the outer contour and surface using the Grasshopper platform, and the triangulation unit efficiently generates triangle combinations covering the surface using the Delaunay triangulation algorithm. The collaborative work of these units ensures the flexibility and controllability of the modeling process, enabling the model to accurately reflect the architect's creative concepts. Simultaneously, through parameter adjustments in Grasshopper, designers can easily explore different design possibilities, achieving personalized and diverse expressions of the roof structure.
[0054] Furthermore, in this embodiment, the triangle classification module specifically includes: a control curve setting unit for setting a control curve in Rhino software; a parameter adjustment unit for adjusting the randomness parameter value and random range value through the Grasshopper arithmetic unit; and a classification execution unit for classifying triangle combination G into multiple triangle sub-combinations.
[0055] In this embodiment, the triangle classification module enables refined management of the basic surface-covered triangle combination G. First, the control curve setting unit defines one or more control curves within the Rhino software environment. These curves serve not only as visual guides but also as classification criteria, directing the hierarchical division of triangles. Next, the parameter adjustment unit, through the Grasshopper platform's interactive calculator, adjusts the randomness parameter and random range values to control the degree of uncertainty in classification and the proportional distribution of each triangle sub-combination, granting the design process a degree of freedom and creativity. Finally, the classification execution unit, based on the set control curves and adjusted parameters, randomly divides the triangle combination G into at least two triangle sub-combinations. This multi-level classification mechanism allows designers to create complex textures and gradient effects, enhancing the expressiveness of roof designs. By repeatedly executing the classification operation, richer and more hierarchical triangle sub-combinations can be generated, thereby achieving subtle visual transitions and a sense of depth. Throughout the process, the combination of randomness and controllability ensures that each modeling attempt can produce unique results, meeting the architectural art field's demand for personalization and innovation. In terms of implementation effectiveness, this solution effectively creates a gradient texture effect on the roof by flexibly adjusting control curves and parameters. This is not only aesthetically pleasing but also adaptable to structural and lighting changes, providing new possibilities for building facade design. Furthermore, the triangular sub-combinations exported to the Rhino model via the Bake function can be assigned different visual attributes such as material, color, or perforation rate as needed, further enhancing the artistry and functionality of the roof design.
[0056] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described above.
[0057] Applying the technical solution of this embodiment, the modeling method for roof parting and gradient effects based on the Rhino and Grasshopper platforms, executed by the electronic device, generates triangle combinations on the base surface, then classifies these triangles according to control curves and random parameters, and finally assigns specific visual attributes to different categories of triangle combinations, thus realizing a dynamic gradient design for the roof appearance. This solution effectively utilizes the geometric characteristics of the Delaunay triangulation algorithm, combined with user-defined control curves and parameter adjustments, to flexibly control the details and complexity of the roof gradient effect, thereby achieving the goal of diversified and personalized roof design, and solving the problem of difficulty in achieving fine parting and gradient transitions in traditional roof design.
[0058] This application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described above.
[0059] By applying the technical solution of this embodiment, a computer program on a non-transitory computer-readable storage medium is executed by a processor, realizing a modeling method for roof parting and gradient effects based on the Rhino and Grasshopper platforms. This method first processes the base surface using the Delaunay triangulation algorithm to generate triangle combinations covering it. Then, these triangles are classified using control curves and random parameters to form at least two triangle sub-combinations. Finally, by assigning visual attributes such as material, color, or perforation rate to different triangle sub-combinations, a gradient visual effect is successfully constructed on the base surface. This technical solution not only expands the expressive means of architectural design but also simplifies the modeling process for complex roof forms, effectively improving design efficiency and the ability to realize visual creativity, and solving the limitations of traditional modeling methods in handling complex geometric shapes.
[0060] The present application will be further described below with reference to a specific embodiment: This invention provides a method for quickly creating triangular fractals and gradient effects on curved roof surfaces using the Grasshopper platform. A schematic diagram of the core steps is shown below. Figure 1 The following detailed description is provided in conjunction with specific examples: The first major step is to perform surface fractal design. In Rhino software, select the basic roof surface for fractal design, such as... Figure 2 Then as Figure 3As shown, in the calculator built in Grasshopper, the basic roof surface is assigned to the basic surface battery. By sliding or manually inputting numbers in the #1 Number Slider controller, N1 points are randomly generated on the outer contour of the surface, as shown below. Figure 4 By sliding or manually entering numbers in the #2 Number Slider controller, N² points are randomly generated based on the basic roof surface, as shown below. Figure 5 A preview of the triangular face combination G generated by N1 outer contour points and N2 surface points, as shown below. Figure 6 Determine if the effect is satisfactory. If not, readjust the values of 1#Number Slider and 2#Number Slider until the effect is satisfactory.
[0061] The second major step is to classify the fractal triangular faces. First, in Rhino, a curve C1 is set to control the classification of the triangles, as shown below. Figure 7 Insert curve C1 Figure 8 The control curve battery in the arithmetic unit shows a strong correlation between its position and the boundary line of the triangle facet classification. Then, by sliding or manually inputting numbers in controller #3 (Number Slider), the random fluctuation of the classification is controlled. The minimum value is 0, and the maximum value is 1; the value of the number is positively correlated with the magnitude of the random fluctuation. Next, by sliding or manually inputting numbers in controller #4 (Number Slider), the range of classification is controlled. The minimum value is 0, and the maximum value is 1. The closer the number is to 0.5, the more balanced the number of triangle facets G is after being divided into two classes; the closer it is to 0 or 1, the greater the difference in the number of triangle facets G after being divided into two classes. In Grasshopper, the satisfaction of classifying the generated triangle facet G1 combination into G1 and G2 is determined. Figure 9 If you are not satisfied, readjust the position and shape of curve C1 in Rhino, as well as the values of Number Slider #3 and Number Slider #4, until you are satisfied with the result.
[0062] In many cases, simply classifying triangle G1 into G1 and G2 is insufficient to create a gradient effect that satisfies the designer. If the existing gradient effect is deemed unsatisfactory, a new control curve C2 can be set, such as... Figure 10 Repeat the triangular face classification operation to generate G1-1, G1-2, etc., as follows. Figure 11 This continues until a satisfactory classification result is achieved.
[0063] The third major step is to create a gradient effect. Bake the G1, G1-1, and G1-2 triangles created in Grassopper into Rhino. Assign a dark gray material to G1, a light gray material to G1-1, and a white material to G1-2, thus creating a natural color gradient effect. Figure 12 In other cases, the categorized triangular faces can be given different perforation rates or different colors to create a gradient effect that meets the designer's requirements.
[0064] In summary, the method and system proposed in this invention, through the collaborative work of the Rhino and Grasshopper platforms, achieve automated modeling of roof parting and gradient effects, breaking through the limitations of traditional manual design and greatly enriching the language and expressiveness of architectural design. It not only improves design efficiency and ensures model accuracy but also provides innovative solutions for the environmental performance of buildings, embodying the design philosophy of harmonious coexistence between architecture and nature. This method is not only applicable to professional architects but also opens new avenues for innovation and sustainable development in the architectural field.
[0065] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0066] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A modeling method for roof parting and gradient effects based on the Rhino and Grasshopper platforms, characterized in that, Includes the following steps: Step 1: Surface fractal: Based on the basic curved surface of the building roof, generate a triangle combination G that covers the basic curved surface; Step 2: Triangle classification. Based on the control curve and randomness parameters, the triangle combination G is classified into at least two triangle sub-combinations. Step 3: Gradient Formation. Assign different visual attributes to the triangular sub-combinations obtained in Step 2 to form a gradient effect on the base surface.
2. The method according to claim 1, characterized in that, Step 1 specifically includes: Step 1-1: Select the base surface in Rhino software; Step 1-2: Using the Grasshopper platform, generate N1 random points on the outer contour line of the base surface and N2 random control points on the base surface, wherein the number of N1 and N2 is adjusted by the controller in Grasshopper; Steps 1-3: Using the Delaunay triangulation algorithm in the Grasshopper platform, calculate the N1 random points and N2 random control points to generate the triangle combination G covering the basic surface.
3. The method according to claim 2, characterized in that, In steps 1-2, the N1 random points and N2 random control points are generated by the Populate Geometry operator in the Grasshopper platform; in steps 1-3, the Delaunay triangulation calculation is performed by the Delaunay Mesh operator in the Grasshopper platform.
4. The method according to claim 1, characterized in that, Step 2 specifically includes: Step 2-1: Set a control curve C in Rhino software; Step 2-2: Input the control curve C and the triangle combination G into the arithmetic unit built on the Grasshopper platform; Steps 2-3: By adjusting the position and shape of the control curve C, the randomness parameter value in the Grasshopper calculator, and the random range value, the triangle combination G is randomly classified into the first triangle sub-combination G1 and the second triangle sub-combination G2.
5. The method according to claim 4, characterized in that, The randomness parameter value controls the volatility of the classification, and the random range value controls the proportion of each triangular sub-combination after classification; the randomness parameter value and the random range value are adjusted by the Number Slider controller in Grasshopper.
6. The method according to claim 4, characterized in that, After classifying the triangle combination G into G1 and G2, the process further includes: Set a new control curve and repeat the classification operation on the first triangle sub-combination G1 and / or the second triangle sub-combination G2 to generate more levels of triangle sub-combinations.
7. The method according to claim 1, characterized in that, In step 3, the visualization attributes include material, color, or perforation rate; the classified triangle sub-combinations are output to the Rhino model through the Bake function of the Grasshopper platform, and different visualization attributes are assigned to each triangle sub-combination in the Rhino model.
8. A modeling system for roof parting and gradient effects based on the Rhino and Grasshopper platforms, characterized in that, include: The fractal module is used to generate a triangle combination G that covers the basic curved surface of the building roof. A triangle classification module is used to classify the triangle combination G into at least two triangle sub-combinations based on control curves and random parameters; The gradient generation module is used to assign different visual attributes to the categorized triangular subgroups to create a gradient effect.
9. The system according to claim 8, characterized in that, The fractal surface module specifically includes: The basic surface selection unit is used to select the basic surface in Rhino software; The random point generation unit is used to generate N1 random points on the outer contour line of the base surface through the Grasshopper platform, and to generate N2 random control points on the base surface. Triangulation units are used to generate the triangle combination G using the Delaunay triangulation algorithm in the Grasshopper platform.
10. The system according to claim 8, characterized in that, The triangle classification module specifically includes: The control curve setting unit is used to set control curves in Rhino software; The parameter adjustment unit is used to adjust the randomness parameter value and random range value through the Grasshopper arithmetic unit; The classification execution unit is used to classify the triangle combination G into multiple triangle sub-combinations.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 7.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Modeling method for steel structure of large-span steel arch surface grid roof steel structure based on Rhino platform
CN108629117A
Grasshopper-based parametric modeling method for outer packing steel structure of parameterized park
CN115391899A
Dynamo parametric modeling method for membrane structure roof
CN119416301A