Three-dimensional visual vegetation design method, system, electronic device and storage medium

By creating and applying three-dimensional vegetation combination templates, the problems of intuitiveness and accuracy in traditional vegetation design methods are solved, enabling flexible adjustment and precise layout according to the target area, thereby improving the accuracy and ecological benefits of the design.

CN119888125BActive Publication Date: 2026-04-24BGI ENG CONSULTANTS
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BGI ENG CONSULTANTS
Filing Date
2024-12-06
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Traditional vegetation design methods are difficult to visualize intuitively and accurately, lack flexible means of vegetation combination and configuration, cannot adjust plant combinations according to the specific conditions of the target area, and lack scientific and accurate three-dimensional coordinate calculations, resulting in inaccurate designs and increased workload.

Method used

This paper provides a three-dimensional visualization vegetation design method. By creating a template containing multiple three-dimensional vegetation combinations, a three-dimensional scene of the target area is constructed. The target combination is selected from the template, mapped to the three-dimensional scene for visualization, and plant attributes and naming are combined for precise management and layout.

Benefits of technology

It improves the accuracy and visualization of vegetation design, enhances the rationality and ecological benefits of the design, ensures that plant combinations meet ecological and aesthetic requirements, and improves the scientific nature and operability of the design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119888125B_ABST
    Figure CN119888125B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of three-dimensional model, and more particularly to a three-dimensional visualization vegetation design method, system, electronic device and storage medium, comprising: creating a three-dimensional vegetation combination template; wherein the three-dimensional vegetation combination template contains a plurality of three-dimensional vegetation combinations; constructing a three-dimensional scene corresponding to a target area, and selecting a target three-dimensional vegetation combination from the three-dimensional vegetation combination template; mapping the target three-dimensional vegetation combination to the three-dimensional scene, obtaining a vegetation design scheme and outputting to a display terminal for visual display. The present application improves the accuracy and visualization degree of vegetation design, avoiding the non-intuitive and inaccurate problems caused by traditional two-dimensional drawings or simple three-dimensional models. At the same time, by flexibly selecting and applying the three-dimensional vegetation combination template, the combination of various plants can be adjusted according to the specific situation and needs of the target area, enhancing the rationality and ecological benefits of the design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of three-dimensional modeling technology, and in particular to a three-dimensional visualization vegetation design method, system, electronic device, and storage medium. Background Technology

[0002] Currently, with the acceleration of urbanization, urban community landscape design has become increasingly complex and important. However, traditional vegetation design methods have many shortcomings in addressing this challenge. First, when selecting plants and planning layouts, designers often rely on two-dimensional drawings or simple three-dimensional models, making it difficult to visualize and accurately represent the designs, leading to inaccuracies in the design schemes and deviations during implementation. Second, existing vegetation design methods lack flexible means of vegetation combination and configuration, failing to effectively adjust the combination of various plants according to the specific conditions of the target area, thus affecting the rationality of the design and its ecological benefits. Furthermore, traditional methods often rely on manual measurement and estimation when determining vegetation placement points, lacking scientifically accurate three-dimensional coordinate calculation methods. This not only increases the workload of the design process but also leads to irrational vegetation placement.

[0003] Therefore, there is an urgent need to provide a technical solution to address the above problems. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention provides a three-dimensional visualization vegetation design method, system, electronic device, and storage medium.

[0005] Firstly, the present invention provides a three-dimensional visualization vegetation design method, the technical solution of which is as follows:

[0006] Create a three-dimensional vegetation combination template; wherein, the three-dimensional vegetation combination template contains a variety of three-dimensional vegetation combinations;

[0007] A three-dimensional scene corresponding to the target area is constructed, and a target three-dimensional vegetation combination is selected from the three-dimensional vegetation combination template; the target three-dimensional vegetation combination is mapped to the three-dimensional scene to obtain a vegetation design scheme and output to a display terminal for visualization.

[0008] The beneficial effects of the three-dimensional visualization vegetation design method of the present invention are as follows:

[0009] The method of this invention improves the accuracy and visualization of vegetation design, avoiding the problems of unintuitiveness and inaccuracy caused by traditional two-dimensional drawings or simple three-dimensional models. Furthermore, by flexibly selecting and applying three-dimensional vegetation combination templates, the combination of various plants can be adjusted according to the specific conditions and needs of the target area, enhancing the rationality and ecological benefits of the design.

[0010] Based on the above scheme, the three-dimensional visualization vegetation design method of the present invention can be further improved as follows.

[0011] In one alternative approach, each three-dimensional vegetation combination includes at least one vegetation type, each vegetation type includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.

[0012] Among the aforementioned options, configuring attributes and naming for each plant ensures precise management of plant information during the vegetation design process. This helps designers and relevant personnel clearly understand the characteristics of each plant, such as growth conditions, appearance, and ecological functions, thereby improving the scientific rigor and feasibility of the design. Furthermore, clear plant naming also facilitates communication and collaboration.

[0013] In one alternative approach, the steps for creating a three-dimensional vegetation composition template include:

[0014] Based on the target vegetation design requirements, each plant is configured with corresponding plant attributes and plant names, and each plant is configured with a corresponding vegetation type. The plants included in each three-dimensional vegetation combination are preset to obtain the three-dimensional vegetation combination template.

[0015] Among the above-mentioned optional methods, configuring plant attributes and naming according to the target vegetation design requirements and pre-setting 3D vegetation combinations enables the customization and flexible application of 3D vegetation combination templates. This ensures the relevance and practicality of the 3D vegetation combination templates, allowing for rapid response to different needs during the specific design process, thereby improving work efficiency and design quality.

[0016] In one alternative approach, the step of selecting a target three-dimensional vegetation combination from the three-dimensional vegetation combination template includes:

[0017] Using the center of the three-dimensional vegetation combination template as the origin, the relative position coordinates of each plant point in the three-dimensional vegetation combination template with respect to the origin are determined, thereby obtaining the vegetation design range of the three-dimensional scene.

[0018] Based on the vegetation design scope, the plant attributes, and the plant naming, a vegetation combination that meets the target vegetation design requirements is queried from a preset plant model library and determined as the target three-dimensional vegetation combination.

[0019] In the aforementioned optional methods, by determining the relative position coordinates of plant points, the layout of plants in the 3D scene can be precisely controlled. Combining the vegetation design scope, plant attributes, and naming, vegetation combinations that meet the target vegetation design requirements are queried from a preset plant model library, ensuring that the selected vegetation combinations are not only visually appealing but also achieve the expected goals in ecological function, such as carbon sequestration.

[0020] In one optional approach, the step of mapping the target 3D vegetation combination to the 3D scene to obtain a vegetation design scheme and outputting it to a display terminal for visualization includes:

[0021] Obtain the projection coordinates of the target three-dimensional vegetation combination onto the three-dimensional scene, and calculate the three-dimensional coordinates of the vegetation placement point corresponding to the target three-dimensional vegetation combination based on the projection coordinates;

[0022] Based on the three-dimensional coordinates of the vegetation placement points, the target three-dimensional vegetation combination is placed in the three-dimensional scene to obtain the vegetation design scheme and output it to the display terminal for visualization.

[0023] Among the aforementioned alternative methods, obtaining the projected coordinates and calculating the 3D coordinates of the vegetation placement points ensures the accurate placement of vegetation combinations within the 3D scene. This method not only improves design accuracy but also allows for previewing the actual planting effect in a virtual environment, helping to identify and resolve potential problems in advance, thus enhancing the feasibility and implementability of the design.

[0024] Secondly, this invention provides a three-dimensional visualization vegetation design system, the technical solution of which is as follows:

[0025] The 3D visualization vegetation design system includes a creation module and a design module;

[0026] The creation module is used to: create a three-dimensional vegetation combination template; wherein, the three-dimensional vegetation combination template contains a variety of three-dimensional vegetation combinations;

[0027] The design module is used to: construct a three-dimensional scene corresponding to the target area, and select a target three-dimensional vegetation combination from the three-dimensional vegetation combination template; map the target three-dimensional vegetation combination to the three-dimensional scene to obtain a vegetation design scheme and output it to the display terminal for visualization display.

[0028] The beneficial effects of the three-dimensional visualization vegetation design system of the present invention are as follows:

[0029] The system of this invention improves the accuracy and visualization of vegetation design, avoiding the problems of unintuitiveness and inaccuracy caused by traditional two-dimensional drawings or simple three-dimensional models. Furthermore, by flexibly selecting and applying three-dimensional vegetation combination templates, the combination of various plants can be adjusted according to the specific conditions and needs of the target area, enhancing the rationality and ecological benefits of the design.

[0030] Based on the above scheme, the three-dimensional visualization vegetation design system of the present invention can be further improved as follows.

[0031] In one alternative approach, each three-dimensional vegetation combination includes at least one vegetation type, each vegetation type includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.

[0032] Among the aforementioned options, configuring attributes and naming for each plant ensures precise management of plant information during the vegetation design process. This helps designers and relevant personnel clearly understand the characteristics of each plant, such as growth conditions, appearance, and ecological functions, thereby improving the scientific rigor and feasibility of the design. Furthermore, clear plant naming also facilitates communication and collaboration.

[0033] In an alternative approach, the creation module is specifically used for:

[0034] Based on the target vegetation design requirements, each plant is configured with corresponding plant attributes and plant names, and each plant is configured with a corresponding vegetation type. The plants included in each three-dimensional vegetation combination are preset to obtain the three-dimensional vegetation combination template.

[0035] Among the above-mentioned optional methods, configuring plant attributes and naming according to the target vegetation design requirements and pre-setting 3D vegetation combinations enables the customization and flexible application of 3D vegetation combination templates. This ensures the relevance and practicality of the 3D vegetation combination templates, allowing for rapid response to different needs during the specific design process, thereby improving work efficiency and design quality.

[0036] Thirdly, the technical solution of an electronic device according to the present invention is as follows:

[0037] It includes a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the three-dimensional visualization vegetation design method of the present invention.

[0038] Fourthly, the technical solution of a computer-readable storage medium provided by the present invention is as follows:

[0039] The computer-readable storage medium stores instructions that, when read, cause the computer-readable storage medium to perform the steps of the three-dimensional visualization vegetation design method of the present invention.

[0040] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0041] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0042] Figure 1 This is a flowchart illustrating an embodiment of a three-dimensional visualization vegetation design method according to the present invention.

[0043] Figure 2 This is a schematic diagram of a 3D vegetation combination template;

[0044] Figure 3 A schematic diagram of the bounding rectangle of the polygonal projection outline;

[0045] Figure 4 This is a schematic diagram of the circumscribed rectangular grid.

[0046] Figure 5 This is a schematic diagram of a vegetation design scheme;

[0047] Figure 6 This is a structural schematic diagram of an embodiment of the three-dimensional visualization vegetation design system of the present invention;

[0048] Figure 7 This is a schematic diagram of an embodiment of an electronic device according to the present invention. Detailed Implementation

[0049] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0050] Figure 1 The diagram illustrates a flowchart of an embodiment of a three-dimensional visualization vegetation design method provided by the present invention, which is executed by a controller. Figure 1 As shown, it includes the following steps:

[0051] S1. Create a 3D vegetation combination template; the 3D vegetation combination template contains various 3D vegetation combinations, in S1:

[0052] 1) such as Figure 2 The illustrated 3D vegetation combination template is a pre-designed and configured template containing a variety of different 3D vegetation combinations. Each 3D vegetation combination consists of multiple vegetation types, and each vegetation type contains at least one plant. Each plant has specific attributes and a name. The 3D vegetation combination template provides a basic library or resource pool for storing and managing various preset vegetation combinations. Multiple vegetation combinations can be selected and adjusted according to different design needs. The 3D vegetation combination template serves as a reference framework, allowing designers to quickly select vegetation combinations suitable for the target area.

[0053] 2) A 3D vegetation ensemble is a specific combination within a 3D vegetation ensemble template, containing at least one vegetation type, and each vegetation type contains at least one plant. Each plant has its corresponding attributes and name. A 3D vegetation ensemble is a vegetation structure unit specifically applied to a 3D scene. 3D vegetation ensembles are configured according to the plant species, attributes, and names to meet specific design and functional requirements (such as aesthetics, ecological function, carbon sequestration, etc.).

[0054] Specifically, the controller creates a 3D vegetation combination template that includes multiple 3D vegetation combinations.

[0055] S2. Construct a 3D scene corresponding to the target area, and select the target 3D vegetation combination from the 3D vegetation combination template; map the target 3D vegetation combination to the 3D scene to obtain the vegetation design scheme and output it to the display terminal for visualization. In S2:

[0056] 1) The target area is a specific geographical region or spatial range that requires 3D vegetation design. A corresponding 3D scene will be constructed within the target area. The target area defines the application scenario and scope of the design. It is the foundation for constructing the 3D scene and determines the spatial background and environmental conditions of the vegetation design scheme.

[0057] 2) A 3D scene is a three-dimensional spatial model constructed based on the target area, used to display and apply the selected target 3D vegetation combination. The 3D scene provides a platform for displaying vegetation design schemes. By mapping the target 3D vegetation combination to a specific spatial coordinate system, the design scheme is visualized and facilitates further analysis and adjustment.

[0058] 3) The target 3D vegetation combination is selected from the 3D vegetation combination template and is a specific vegetation combination suitable for the target area and design requirements. The target 3D vegetation combination is selected based on carbon sequestration requirements and other design standards. The target 3D vegetation combination is the vegetation structure ultimately applied to the 3D scene. The target 3D vegetation combination is selected and optimized to meet the ecological, aesthetic, and functional requirements of a specific area. By mapping it onto the 3D scene, it constitutes the final vegetation design scheme.

[0059] Specifically, the controller further constructs a three-dimensional scene corresponding to the target area and selects a target three-dimensional vegetation combination from the three-dimensional vegetation combination template; the target three-dimensional vegetation combination is mapped to the three-dimensional scene to obtain the vegetation design scheme and output to the display terminal for visualization display.

[0060] The technical solution in this embodiment improves the accuracy and visualization of vegetation design, avoiding the problems of unintuitiveness and inaccuracy caused by traditional two-dimensional drawings or simple three-dimensional models. Furthermore, by flexibly selecting and applying three-dimensional vegetation combination templates, the combination of various plants can be adjusted according to the specific conditions and needs of the target area, enhancing the rationality and ecological benefits of the design.

[0061] In one alternative approach, the steps for creating a three-dimensional vegetation composition template include:

[0062] Based on the target vegetation design requirements, each plant is configured with corresponding plant attributes and plant names, and each plant is configured with a corresponding vegetation type. The plants included in each three-dimensional vegetation combination are preset to obtain a three-dimensional vegetation combination template.

[0063] It should be noted that, firstly, the vegetation design process should be based on specific target vegetation design requirements. These requirements can originate from, but are not limited to, project requirements, ecological restoration goals, landscape design needs, and carbon sequestration needs. The target vegetation design requirements are the starting point of the entire creation process, determining the direction of subsequent plant selection and configuration.

[0064] Secondly, for each plant to be used in the design, its plant attributes and name need to be configured. A plant name is a unique identifier for each plant; it can be a scientific name or a common name, used to distinguish different plant species. Plant attributes are data describing plant characteristics, including but not limited to: plant height, crown width, leaf shape, growth rate, water requirements, light requirements, and soil adaptability. Plant attributes are crucial to the ecological function and visual effect of vegetation combinations.

[0065] Each plant species is categorized into a corresponding vegetation type. Vegetation types include, but are not limited to, trees, shrubs, herbaceous plants, and ground cover plants. Each vegetation type determines the role and position of the corresponding plant in the three-dimensional vegetation composition. This classification helps to systematically organize and manage various plants, facilitating subsequent combination and configuration.

[0066] Finally, for each preset 3D vegetation combination, the goal is to determine which plant species are included in each combination. A 3D vegetation combination can contain only one vegetation type, or it can contain multiple vegetation types (such as trees, shrubs, and herbaceous plants), with each vegetation type containing specific plant species. The above preset process determines the specific composition of each 3D vegetation combination.

[0067] After the above process, a complete 3D vegetation combination template is obtained. This template contains various pre-configured 3D vegetation combinations, each containing multiple plant species, each with its own attributes and name. The 3D vegetation combination template will serve as a foundational tool for subsequent design processes, used to select and apply vegetation to specific 3D scenes.

[0068] In this embodiment, based on carbon sequestration requirements, square three-dimensional vegetation combination templates are created according to the three major categories of trees, shrubs and herbaceous plants, thereby enabling rapid and flexible configuration of three-dimensional vegetation combinations.

[0069] Assign plant attributes to each plant in the vegetation combination template. The plant naming method is: "Vegetation type (tree, shrub, herb) + plant name (e.g., cypress) + serial number".

[0070] Specifically, the controller further configures the corresponding plant attributes and plant names for each plant according to the target vegetation design requirements, configures the corresponding vegetation type for each plant, and presets the plants included in each three-dimensional vegetation combination to obtain a three-dimensional vegetation combination template.

[0071] In one alternative approach, the step of selecting a target three-dimensional vegetation combination from a three-dimensional vegetation combination template includes:

[0072] Using the center of the 3D vegetation combination template as the origin, the relative position coordinates of each plant point in the 3D vegetation combination template with respect to the origin are determined, thus obtaining the vegetation design range of the 3D scene.

[0073] Based on the vegetation design scope, plant attributes, and plant naming, the system queries the preset plant model library for vegetation combinations that meet the target vegetation design requirements and identifies them as the target three-dimensional vegetation combinations.

[0074] It should be noted that, firstly, the center of the 3D vegetation combination template is determined as the origin. Determining the origin is the basis for subsequently determining the relative position of each plant. The center point can be the geometric center of the template, or other locations can be chosen as the origin depending on specific needs.

[0075] After determining the origin, it is necessary to define the relative position coordinates of each plant point (i.e., the plant's position in 3D space) relative to the origin in the 3D vegetation composite template. The relative position coordinates are 3D coordinates used to describe the position of each plant relative to the origin in 3D space. The above steps provide precise positional information for the layout of each plant in the 3D scene.

[0076] Secondly, by determining the relative coordinates of each plant, the vegetation design range for the entire 3D scene can be obtained. The vegetation design range describes the distribution of all plants in 3D space, including their specific locations and coverage areas within the scene. This range is a crucial basis for subsequently selecting target 3D vegetation combinations.

[0077] Based on the vegetation design scope, plant attributes, and plant naming, vegetation combinations that meet the carbon sequestration requirements are queried from a pre-set plant model library, including:

[0078] The vegetation design scope limits the range and layout of the vegetation combinations to be adapted to the current 3D scene; plant attributes filter plants that meet specific ecological functions (such as carbon sequestration) and physical characteristics (such as height and canopy width); plant naming is used to accurately select and identify specific plant species. The preset plant model library is a database storing various plant models, each containing detailed plant attributes and a 3D representation. The target vegetation design requirements are the most important filtering condition in the selection process, requiring the queried vegetation combinations to meet specific standards or values ​​in aspects such as aesthetics, ecological function, and carbon sequestration.

[0079] Finally, after searching and filtering, vegetation combinations that meet the target vegetation design requirements were identified as the target 3D vegetation combinations. These target 3D vegetation combinations will be used in actual 3D scene design and applications.

[0080] In this embodiment, the center of the three-dimensional vegetation combination template is determined as the origin. Assuming the geometric center point of the template is selected as the origin, with coordinates (0, 0, 0), the positions of all plants will be defined relative to this origin. The three-dimensional vegetation template contains multiple vegetation combinations. Assuming all vegetation combinations containing ginkgo and rhododendron are selected from the three-dimensional vegetation template, the process for obtaining the vegetation design range is as follows:

[0081] Taking one of the vegetation combinations as an example, the relative position coordinates are:

[0082] The relative position coordinates of Ginkgo 1 are (5, 5, 0);

[0083] The relative position coordinates of Ginkgo 2 are (15, 5, 0);

[0084] The relative position coordinates of Azalea 1 are (10, 10, 0).

[0085] The coordinates define the specific location of each plant in three-dimensional space. For example, Ginkgo 1 is located at a point 5 units to the right and 5 units forward from the origin, with a height of 0. The coordinates of Ginkgo 2 and Azalea 1 also define their corresponding positions in three-dimensional space. These coordinates allow for the precise placement of these plants in a three-dimensional scene.

[0086] Based on the relative position coordinates of the plants, the entire vegetation design area can be calculated. The vegetation design area is defined by minimum and maximum coordinate values, forming a bounding box that surrounds all plants.

[0087] Therefore, the minimum coordinates are determined by the position of Ginkgo 1, which is (5, 5, 0); the maximum coordinates are determined by the position of Azalea 1, which is (15, 10, 0).

[0088] The vegetation design range describes the distribution area of ​​all plants in three-dimensional space. In the example above, the vegetation design range is from (5, 5, 0) to (15, 10, 0), which is an area with a width of 10 units (from 5 to 15), a length of 5 units (from 5 to 10), and a height of 0 units (all plants are on the same plane).

[0089] The process of querying vegetation combinations that meet the carbon sequestration data (carbon sequestration amount) requirements from a pre-set plant model library based on the vegetation design scope, plant attributes, and plant naming is as follows:

[0090] Based on the vegetation design scope and plant attributes (such as carbon sequestration), query the vegetation combinations that meet the criteria from all vegetation combinations.

[0091] For example, ginkgo has a carbon sequestration capacity of 100 kg / year; rhododendron has a carbon sequestration capacity of 20 kg / year; the total carbon sequestration requirement is ≥150 kg / year. The query process is as follows:

[0092] Among all vegetation combinations, identify those that meet the carbon sequestration requirements. Based on the total carbon sequestration requirement (≥150 kg / year), calculate possible combinations; for example, if three suitable vegetation combinations are found:

[0093] 1 ginkgo tree + 10 azaleas: 100kg / year + 10 × 20kg / year = 100kg / year + 200kg / year = 300kg / year;

[0094] 2 ginkgo trees + 5 azaleas: 2 × 100 kg / year + 5 × 20 kg / year = 200 kg / year + 100 kg / year = 300 kg / year;

[0095] 5 ginkgo trees + 10 azaleas: 5 × 100 kg / year + 10 × 20 kg / year = 500 kg / year + 200 kg / year = 700 kg / year.

[0096] To achieve both carbon sequestration requirements and vegetation diversity and aesthetics, a combination of 5 ginkgo trees and 10 rhododendrons was selected, which met the higher carbon sequestration requirements and increased vegetation diversity.

[0097] Finally, based on the above process, the final target three-dimensional vegetation combination can be determined, including plant species, quantity, relative position coordinates, and carbon sequestration.

[0098] Specifically, the controller further uses the center of the 3D vegetation combination template as the origin to determine the relative position coordinates of each plant point in the 3D vegetation combination template with respect to the origin, thereby obtaining the vegetation design range of the 3D scene; based on the vegetation design range, plant attributes and plant names, it queries the preset plant model library for vegetation combinations that meet the target vegetation design requirements and determines them as the target 3D vegetation combination.

[0099] In one alternative approach, the steps of mapping the target 3D vegetation combination to a 3D scene, obtaining a vegetation design scheme, and outputting it to a display terminal for visualization include:

[0100] Obtain the projected coordinates of the target 3D vegetation combination mapped to the 3D scene, and calculate the 3D coordinates of the vegetation placement point corresponding to the target 3D vegetation combination based on the projected coordinates;

[0101] Based on the three-dimensional coordinates of the vegetation placement points, the target three-dimensional vegetation combination is placed in the three-dimensional scene to obtain the vegetation design scheme and output it to the display terminal for visualization.

[0102] It should be noted that the display terminal can provide visual displays via mobile phones, computers, and other display methods.

[0103] By obtaining the projected coordinates of the target 3D vegetation combination mapped to the 3D scene, the outline of the vegetation design area in the 3D scene can be projected from a top or bottom viewpoint onto all triangulated mesh surfaces. In the 3D scene, the purpose of triangulating all mesh surfaces is to divide all non-triangular faces, ensuring that each face consists of a triangle with three vertices. Because the triangle is the most basic polygon in geometry, any polygon can be divided into several triangles, and triangles have a fixed shape (collinearity is avoided), making subsequent mathematical calculations and projection operations simpler and more efficient.

[0104] In this embodiment, firstly, data for all mesh faces are extracted from the 3D scene. A mesh consists of a set of faces, each of which can be a triangle, quadrilateral, or other polygon. For uniform processing, all non-triangular faces are divided into multiple triangles. Mesh faces that are already triangular are directly retained; for each non-triangular polygonal face (such as a quadrilateral, pentagon, etc.), each non-triangular polygonal face needs to be divided into multiple triangles using at least one of the following methods: ear segmentation, sector segmentation, and Delaunay triangulation.

[0105] The ear-cutting method is used to process arbitrarily simple polygons (non-self-intersecting polygons) by repeatedly cutting the "ears" of the polygon to achieve triangulation. The ear-cutting method first needs to find the ear tip, which is a triangle formed by three consecutive vertices and whose interior does not contain other vertices of the polygon. Then, the ear tip is cut off from the polygon, forming an independent triangle. Finally, the operation is repeated, continuously cutting off the ear tip, until the polygon is completely divided into triangles.

[0106] The sector partitioning method is used to process convex polygons. It involves selecting a vertex as a base point and then connecting the remaining vertices sequentially to the selected vertex to form triangles. The sector partitioning method first requires selecting a base point, that is, choosing one vertex of the polygon as the base point (e.g., the first vertex). Then, the base point is connected to any two adjacent vertices to form a triangle. Finally, the remaining vertices are processed sequentially until the polygon is completely partitioned into triangles.

[0107] Delaunay triangulation is an optimization-based triangulation method that not only ensures that polygons are divided into triangles but also minimizes the generation of overly elongated triangles. Delaunay triangulation maximizes the minimum angle of a triangle, thus improving its quality. The process begins by constructing initial triangles to create a basic triangular shell for the polygon. Then, the vertices of the polygon are inserted sequentially, and the shape of the triangles is optimized through local adjustments or edge flipping to ensure that the Delaunay condition is met (i.e., the circumcircle of each triangle does not contain any other vertices).

[0108] After completing the mesh triangulation process, all faces are represented as triangles. Each triangle consists of three vertices. Mesh data includes: vertex coordinates (i.e., the 3D coordinates (x, y, z) of each vertex), normals (i.e., the normal vector of each vertex, used for lighting calculations), UV coordinates (i.e., the texture coordinates of each vertex), and index information (i.e., the vertex indices of the triangles, used to determine the composition of the triangles). It is ensured that the vertex, normal, and UV coordinates of each triangle are stored correctly for subsequent mapping processing.

[0109] It should be noted that the outline of the vegetation design area in the 3D scene is projected from either the top or bottom viewpoint onto all triangulated mesh surfaces. The outline of the vegetation design area is drawn in either the top or bottom viewpoint. The outline of the vegetation design area is a polygonal outline that defines the planting area of ​​the vegetation combination (such as a combination of ginkgo and rhododendron). The polygonal outline is digitized and represented as a set of vertices. For example, the vertices of the polygon can be represented as (x1, y1), (x2, y2), ..., (xn, yn), where these vertices are points on a two-dimensional plane.

[0110] In this embodiment, the outline of the two-dimensional vegetation design area in the top or bottom view is mapped onto a triangularized mesh surface in the three-dimensional scene to obtain the projected coordinates on each mesh surface. For example, in the top view, the projection direction is vertically downward (i.e., along the negative Z-axis). In the bottom view, the projection direction is different, but the basic principle is the same. For each triangularized mesh surface in the scene, the coordinates of its three vertices (v1, v2, v3) are obtained, where the vertices are points in three-dimensional space. To simplify the calculation, the Z-coordinates of the three vertices of the triangle can be ignored, thus projecting the three-dimensional triangle onto a two-dimensional plane. For example, vertex v1 = (x1, y1, z1) becomes (x1, y1) on the two-dimensional plane. Through the above process, the projected coordinates on each mesh surface can be obtained.

[0111] Assume the obtained projection coordinates (i.e., the coordinates of the polygon projection contour) are P1(x1, y1), P2(x2, y2), P3(x3, y3), ..., P n (x n y n ); where P1, P2, P3, ..., P n This represents all vertices in a polygonal projected outline, defined as P1, traversed sequentially in a clockwise or counterclockwise direction. The Axis-Aligned Bounding Box (AABB) algorithm is used to obtain the bounding box. Figure 3 The bounding rectangle of the polygonal projection outline is shown. First, all vertices of the polygonal projection outline are traversed to find the minimum and maximum X and Y values. Then, based on the obtained minimum and maximum X and Y values, the four vertices of the bounding rectangle are calculated. These four vertices define the minimum rectangle that completely encloses the polygonal projection outline, thus determining the boundary coordinates of the bounding rectangle, which include the left, right, top, and bottom boundaries. The multiple boundaries of the bounding rectangle, as well as its width and height, are used for subsequent grid division.

[0112] It should be noted that the coordinates of the top-left and bottom-right corners (or other diagonal coordinates) of the bounding rectangle of the obtained polygonal projection contour are obtained, and these coordinates define the boundary of the bounding rectangle. Each vegetation combination (e.g., a combination containing ginkgo and rhododendron) has a predefined size (length and width).

[0113] In this embodiment, the outer rectangle of the polygonal projection outline is divided into sections based on the coordinates of its upper left corner and the length of each vegetation combination. Figure 4 The grid shown is used to determine how many grids can be divided in the width and height directions based on the width and height of the bounding rectangle. The center point coordinates of each grid can be obtained by shifting the coordinates of the bottom left corner of each grid point along the X-axis by half a grid length and along the Y-axis by half a grid width.

[0114] It should be noted that the center point coordinates of the grid provide a basic reference position for calculating the intended placement point. By combining the center point coordinates of the grid with the relative offset in the 3D vegetation combination template, the specific placement position (intended placement point) of each plant within each grid can be determined. Therefore, the center point coordinates of the grid are the starting point for calculating the intended placement point, and the intended placement point is the specific location obtained by offsetting and adjusting the center point coordinates of the grid.

[0115] In this embodiment, the 3D vegetation combination template can provide the offset of each plant relative to the center point of the vegetation combination. Assuming a vegetation combination contains multiple plants, the offset of each plant can be expressed as (d... xn d yn The form of ) is used, where d xn d represents the X-axis offset of the nth plant in the vegetation combination relative to the center point of the vegetation combination; yn This represents the Y-axis offset of the nth plant in the vegetation combination relative to the center point of the vegetation combination. The multiple offsets mentioned above represent the horizontal distance of each plant relative to the center point of the vegetation combination.

[0116] For the center point coordinates of each grid obtained The provided basic reference location, among which This represents the x-coordinate of the center point in the i-th row and j-th column of the grid. This represents the ordinate of the center point in the i-th row and j-th column of the grid. The proposed placement point is calculated based on the relative position coordinates in the 3D vegetation combination template. For each plant point in the template (d... x d y This adds the offset of the corresponding point to the center point coordinates of the grid. (Through...) Calculate the actual X coordinates of the plant in the 3D scene, where, This is the X-coordinate of the intended placement point. (Through...) Calculate the actual Y coordinates of the plant in the 3D scene, where, This is the Y coordinate of the intended placement point. The Z coordinate (height) of the plant is Pz. plant This can be determined by obtaining the height of the corresponding mesh face, where, This is the Z-coordinate of the proposed placement point. Through the above process, the three-dimensional coordinates of the proposed placement point can be obtained.

[0117] It should be noted that for the intersection calculation of the 3D coordinates of the proposed placement point with the polygon projection outline, the intersection calculation can use at least one of the methods of intersection number method or ray method. First, by performing the intersection calculation, one or more proposed placement points located outside the polygon outline can be filtered out, ensuring that all vegetation objects are placed within the valid area. If the design requires that vegetation can only be placed in a specific shape or area (such as a rectangular garden or an irregular green space), the intersection calculation can strictly comply with the above design constraints.

[0118] Secondly, in real-world scenarios, the placement area may not be a regular rectangle or circle, but rather an irregular polygon. Therefore, regardless of whether it's a rectangle, circle, or any irregular polygon, projection and intersection calculations can determine which points are located inside the polygon. The polygon's projected outline can be adjusted according to design requirements, and intersection calculations allow vegetation placement to flexibly adapt to different design schemes.

[0119] Furthermore, based on intersection calculations, the vegetation density within each polygonal region can be further analyzed to ensure that there are no excessively dense or sparse areas. Simultaneously, intersection calculations also ensure that vegetation is evenly distributed within the polygonal regions, thereby achieving better visual appeal and functionality.

[0120] Finally, intersection calculations ensure that each vegetation object is located within the polygonal area and does not overlap with other vegetation objects. If there are other objects within the polygonal area (such as buildings, roads, water bodies, etc.), intersection calculations can also help avoid placing vegetation on or near other objects.

[0121] In this embodiment, the projection coordinates (i.e., the coordinates of the polygon projection contour) are: (x1, y1), (x2, y2), (x3, y3), ..., (x n y n The vertices of the above projected coordinates are connected sequentially to form a closed polygon. The proposed placement point is calculated using the 3D vegetation combination template and the center point of the grid. The 3D coordinates of the proposed placement point are: In the intersection calculation, the two-dimensional coordinates of the proposed placement point are mainly used.

[0122] To determine whether the proposed placement point lies within the polygon's projected outline, the Crossing Number Algorithm is used. This is determined from the two-dimensional coordinates of the proposed placement point, i.e., the point to be judged. A ray is emitted in any direction (such as the right horizontal direction). The number of intersections between the ray and the edges of the polygon is calculated. If the number of intersections is odd, the point to be determined is inside the polygon; if the number of intersections is even, the point to be determined is outside the polygon.

[0123] If the point to be judged (the point to be placed) is inside the polygon, then the corresponding point to be placed is retained. The final vegetation placement points do not require coordinate changes. If the location is outside the polygon, the corresponding proposed placement point is ignored based on the target vegetation design requirements, or the proposed placement point is moved to the nearest boundary or the nearest valid placement point within the polygon. This process generates the complete three-dimensional coordinates of all vegetation placement points.

[0124] Based on the template information of each vegetation combination, the calculated three-dimensional coordinates of the vegetation placement points, and the plant names, the target three-dimensional vegetation combination is placed in the three-dimensional scene for storage, forming a complete vegetation design scheme and outputting it to the display terminal for visualization.

[0125] Specifically, the controller further acquires the projected coordinates of the target 3D vegetation combination mapped to the 3D scene, and calculates the 3D coordinates of the vegetation placement point corresponding to the target 3D vegetation combination based on the projected coordinates; based on the 3D coordinates of the vegetation placement point, the target 3D vegetation combination is placed in the 3D scene to obtain, as shown below. Figure 5 The vegetation design scheme shown is output to the display terminal for visualization.

[0126] Figure 6 A schematic diagram of an embodiment of a three-dimensional visualization vegetation design system 200 provided by the present invention is shown. Figure 6 As shown, the system 200 includes a creation module 210 and a design module 220.

[0127] The creation module 210 is used to: create a three-dimensional vegetation combination template; wherein, the three-dimensional vegetation combination template contains a variety of three-dimensional vegetation combinations;

[0128] The design module 220 is used to: construct a three-dimensional scene corresponding to the target area, and select a target three-dimensional vegetation combination from the three-dimensional vegetation combination template; map the target three-dimensional vegetation combination to the three-dimensional scene, obtain the vegetation design scheme, and output it to the display terminal for visualization display.

[0129] In one alternative approach, each three-dimensional vegetation combination includes at least one vegetation type, each vegetation type includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.

[0130] In an alternative approach, module 210 is specifically used for:

[0131] Based on the target vegetation design requirements, each plant is configured with corresponding plant attributes and plant names, and each plant is configured with a corresponding vegetation type. The plants included in each three-dimensional vegetation combination are preset to obtain a three-dimensional vegetation combination template.

[0132] The technical solution in this embodiment improves the accuracy and visualization of vegetation design, avoiding the problems of unintuitiveness and inaccuracy caused by traditional two-dimensional drawings or simple three-dimensional models. Furthermore, by flexibly selecting and applying three-dimensional vegetation combination templates, the combination of various plants can be adjusted according to the specific conditions and needs of the target area, enhancing the rationality and ecological benefits of the design.

[0133] The parameters and steps for implementing the corresponding functions of each module in the three-dimensional visualization vegetation design system 200 of this embodiment can be referred to the parameters and steps in the embodiments of the three-dimensional visualization vegetation design method above, and will not be repeated here.

[0134] like Figure 7 As shown, an electronic device 300 according to an embodiment of the present invention includes a processor 320 coupled to a memory 310. The memory 310 stores at least one computer program 330, which is loaded and executed by the processor 320 to enable the electronic device 300 to implement any of the above-mentioned three-dimensional visualization vegetation design methods. Specifically:

[0135] The electronic device 300 can vary considerably due to differences in configuration or performance. It may include one or more processors 320 (Central Processing Units, CPUs) and one or more memories 310. The one or more memories 310 store at least one computer program 330, which is loaded and executed by the one or more processors 320 to enable the electronic device 300 to implement any of the three-dimensional visualization vegetation design methods provided in the above embodiments. Of course, the electronic device 300 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The electronic device 300 may also include other components for implementing device functions, which will not be elaborated upon here.

[0136] An embodiment of the present invention provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to enable a computer to implement any of the above-described three-dimensional visualization vegetation design methods.

[0137] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.

[0138] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform any of the above-described three-dimensional visualization vegetation design methods.

[0139] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of this application described herein can be implemented in an order other than that shown or described.

[0140] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this disclosure can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this invention can also be implemented as a computer program product in one or more computer-readable media containing computer-readable program code.

[0141] Any combination of one or more computer-readable media can be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0142] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A three-dimensional visualization vegetation design method, characterized in that, include: Create a three-dimensional vegetation combination template; wherein, the three-dimensional vegetation combination template contains a variety of three-dimensional vegetation combinations; A 3D scene corresponding to the target area is constructed, and a target 3D vegetation combination is selected from the 3D vegetation combination template; the target 3D vegetation combination is mapped to the 3D scene to obtain a vegetation design scheme and output it to a display terminal for visualization; The steps of mapping the target 3D vegetation combination onto the 3D scene to obtain a vegetation design scheme and outputting it to a display terminal for visualization include: Obtain the projection coordinates of the target three-dimensional vegetation combination onto the three-dimensional scene, and calculate the three-dimensional coordinates of the vegetation placement point corresponding to the target three-dimensional vegetation combination based on the projection coordinates; Based on the three-dimensional coordinates of the vegetation placement points, the target three-dimensional vegetation combination is placed in the three-dimensional scene to obtain the vegetation design scheme and output it to the display terminal for visualization display; The step of obtaining the projected coordinates of the target 3D vegetation combination mapped to the 3D scene, and calculating the 3D coordinates of the vegetation placement point corresponding to the target 3D vegetation combination based on the projected coordinates, includes: Extract data for all mesh faces from the 3D scene. The data for each mesh face consists of a set of faces, each of which is a triangle, quadrilateral, or other polygon. For each non-triangular polygonal face, each non-triangular polygonal face is divided into multiple triangles by at least one of the ear-cutting method, sector segmentation method and Delaunay triangulation, to obtain the triangulated Mesh face; The outline of the vegetation design range is drawn in either the top or bottom view, and the outline of the vegetation design range is the planting area corresponding to the target three-dimensional vegetation combination. Map the outline of the vegetation design area in the top or bottom view to the triangulated Mesh surface in the 3D scene to obtain the projected coordinates on each Mesh surface. Based on the projected coordinates on each Mesh surface, the bounding rectangle of each polygon's projected outline is obtained using the axis-aligned bounding box algorithm. Based on the bounding rectangle of each polygon projection contour, obtain the coordinates of the upper left corner and the lower right corner of each bounding rectangle; For each circumscribed rectangle, starting from the upper left corner coordinates of the circumscribed rectangle of the polygonal projection contour, the circumscribed rectangle is divided into a grid based on the length of the target three-dimensional vegetation combination. According to the width and height of the circumscribed rectangle, the number of grids to be divided in the width and height directions is determined. The center point coordinates of each grid are obtained by translating the coordinates of the lower left corner point of each grid by half the grid length in the X-axis direction and by half the grid width in the Y-axis direction. The center point coordinates of each grid are combined with the relative offset in the 3D vegetation combination template to determine the intended placement point of each plant in each grid; For each grid, for each plant point in the 3D vegetation composite template ( , This adds the offset of the corresponding point to the center point coordinates of the grid. = + The actual X coordinates of the plant in the 3D scene are calculated, where, Let X be the coordinate of the point to be placed, and then... = + The actual Y coordinates of the plant in the 3D scene are calculated, where, Here are the Y coordinates of the proposed placement point and the Z coordinates of the plant. The height of the corresponding mesh face is determined by obtaining the height of the mesh face. and The three-dimensional coordinates of the proposed placement point ( , , ),in, This represents the x-coordinate of the center point in the i-th row and j-th column of the grid. This represents the ordinate of the center point in the i-th row and j-th column of the grid. Based on the three-dimensional coordinates of the intended placement point corresponding to each grid ( , , ),judge Whether each proposed placement point is within the corresponding polygonal projection outline; For each proposed placement point, if the proposed placement point is within the corresponding polygon projection outline, then the corresponding proposed placement point is retained as the three-dimensional coordinates of the vegetation placement point corresponding to the target three-dimensional vegetation combination.

2. The three-dimensional visualization vegetation design method according to claim 1, characterized in that, Each three-dimensional vegetation combination contains at least one vegetation type, each vegetation type includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.

3. The three-dimensional visualization vegetation design method according to claim 2, characterized in that, The steps to create a 3D vegetation composition template include: Based on the target vegetation design requirements, each plant is configured with corresponding plant attributes and plant names, and each plant is configured with a corresponding vegetation type. The plants included in each three-dimensional vegetation combination are preset to obtain the three-dimensional vegetation combination template.

4. The three-dimensional visualization vegetation design method according to claim 3, characterized in that, The step of selecting a target three-dimensional vegetation combination from the three-dimensional vegetation combination template includes: Using the center of the three-dimensional vegetation combination template as the origin, the relative position coordinates of each plant point in the three-dimensional vegetation combination template with respect to the origin are determined, thereby obtaining the vegetation design range of the three-dimensional scene. Based on the vegetation design scope, the plant attributes, and the plant names, a vegetation combination that meets the target vegetation design requirements is queried from a preset plant model library and determined as the target three-dimensional vegetation combination.

5. A three-dimensional visualization vegetation design system, characterized in that, The three-dimensional visualization vegetation design method according to claim 1, wherein the system comprises: a creation module and a design module; The creation module is used to: create a three-dimensional vegetation combination template; wherein, the three-dimensional vegetation combination template contains a variety of three-dimensional vegetation combinations; The design module is used to: construct a three-dimensional scene corresponding to the target area, and select a target three-dimensional vegetation combination from the three-dimensional vegetation combination template; map the target three-dimensional vegetation combination to the three-dimensional scene to obtain a vegetation design scheme and output it to the display terminal for visualization display.

6. The three-dimensional visualization vegetation design system according to claim 5, characterized in that, Each three-dimensional vegetation combination contains at least one vegetation type, each vegetation type includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.

7. A three-dimensional visualization vegetation design system according to claim 5, characterized in that, The creation module is specifically used for: Based on the target vegetation design requirements, each plant is configured with corresponding plant attributes and plant names, and each plant is configured with a corresponding vegetation type. The plants included in each three-dimensional vegetation combination are preset to obtain the three-dimensional vegetation combination template.

8. An electronic device, characterized in that, The electronic device includes a processor coupled to a memory, the memory storing at least one computer program, which is loaded and executed by the processor to enable the electronic device to implement the three-dimensional visualization vegetation design method as described in any one of claims 1 to 4.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to enable the computer-readable storage medium to implement the three-dimensional visualization vegetation design method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Garden vegetation informatization management method and device based on three-dimensional visualization, terminal and medium

    CN114282738A

  • Three-dimensional planning design method and device for residential area landscape, medium and computing equipment

    CN118965535A