Three-dimensional visual vegetation design method and system, electronic equipment and storage medium
Through the three-dimensional visual vegetation design method, the lack of accuracy and flexibility of traditional design methods in complex urban landscape design is solved, and the design effect with high accuracy and ecological benefits is achieved.
Patent Information
- Application Number
- CN202411788503.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-06
AI Technical Summary
When facing complex urban landscape design, traditional vegetation design methods are difficult to achieve accurate visualization, flexible combination configuration and scientific and accurate three-dimensional coordinate calculation, resulting in inaccurate design and implementation deviation.
Using the three-dimensional visual vegetation design method, by creating a three-dimensional vegetation combination template, a three-dimensional scene of the target area is constructed, and the target three-dimensional vegetation combination is selected from the template, and mapped to the three-dimensional scene to generate a design plan and visually display it.
It improves the accuracy and visualization of vegetation design, enhances the rationality and ecological benefits of the design, and reduces design deviations and workload.
Smart Images

Figure CN119888125A_ABST
Abstract
Description
Background Art
[0002] At present, with the acceleration of urbanization, the landscape design of urban communities has become increasingly complex and important. However, traditional vegetation design methods have many shortcomings in the face of this challenge. First, when designers select plants and make layout plans, they often rely on two-dimensional drawings or simple three-dimensional models, which are difficult to visualize intuitively and accurately, resulting in inaccurate design plans and deviations in the implementation process. Secondly, the existing vegetation design methods lack flexible means of vegetation combination configuration, and cannot effectively adjust the combination of multiple plants according to the specific conditions of the target area, thus affecting the rationality and ecological benefits of the design. In addition, when determining the placement points of vegetation, traditional methods often rely on manual measurement and estimation, and lack scientific and accurate three-dimensional coordinate calculation methods, which not only increases the workload of the design, but also leads to unreasonable vegetation placement.
[0003] Therefore, it is urgent to provide a technical solution to solve the above problems. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a three-dimensional visualized vegetation design method, system, electronic device and storage medium.
[0005] In a first aspect, the present invention provides a three-dimensional visual vegetation design method, the technical solution of the method is as follows:
[0006] Creating a three-dimensional vegetation combination template; wherein the three-dimensional vegetation combination template includes multiple 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, a vegetation design scheme is obtained and output to a display terminal for visual display.
[0008] The beneficial effects of a three-dimensional visualization vegetation design method of the present invention are as follows:
[0009] The method of the present invention improves the accuracy and visualization of vegetation design, avoiding the unintuitive and imprecise problems caused by traditional two-dimensional drawings or simple three-dimensional models. At the same time, 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, thereby enhancing the rationality of the design and the ecological benefits.
[0010] Based on the above solution, the three-dimensional visualization vegetation design method of the present invention can also be improved as follows.
[0011] In an optional manner, each three-dimensional vegetation combination includes at least one vegetation type, each of the vegetation types includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.
[0012] In the above optional methods, by configuring attributes and naming each plant, accurate management of plant information can be ensured during vegetation design, which helps designers and related personnel to clearly understand the characteristics of each plant, such as growth conditions, appearance, ecological functions, etc., thereby improving the scientificity and operability of the design. At the same time, clear plant naming also facilitates communication and collaboration.
[0013] In an optional manner, the step of creating a three-dimensional vegetation combination template includes:
[0014] According to the target vegetation design requirements, corresponding plant attributes and plant names are configured for each plant, and a corresponding vegetation type is configured for each plant. The plants included in each three-dimensional vegetation combination are preset to obtain the three-dimensional vegetation combination template.
[0015] In the above optional methods, the plant attributes and names are configured according to the target vegetation design requirements, and the three-dimensional vegetation combination is preset, so that the three-dimensional vegetation combination template can be customized and flexibly applied. This ensures the pertinence and practicality of the three-dimensional vegetation combination template, so that different requirements can be quickly responded to in the specific design process, and work efficiency and design quality can be improved.
[0016] In an optional manner, the step of selecting a target three-dimensional vegetation combination from the three-dimensional vegetation combination template includes:
[0017] Taking the center of the three-dimensional vegetation combination template as the origin, determining the relative position coordinates of the plant point of each plant in the three-dimensional vegetation combination template relative to the origin, and obtaining the vegetation design range of the three-dimensional scene;
[0018] According to the vegetation design range, 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 above optional method, by determining the relative position coordinates of the plant points, the layout of the plants in the three-dimensional scene can be accurately controlled. Combined with the vegetation design range, plant attributes and naming, the vegetation combination that meets the target vegetation design requirements is queried from the preset plant model library to ensure that the selected vegetation combination is not only visually beautiful, but also achieves the expected goals in ecological functions, such as carbon fixation.
[0020] In an optional manner, the step of mapping the target three-dimensional vegetation combination to the three-dimensional scene, obtaining a vegetation design scheme and outputting the scheme to a display terminal for visual display includes:
[0021] Acquire the projection coordinates of the target three-dimensional vegetation combination mapped to the three-dimensional scene, and calculate the three-dimensional coordinates of the vegetation placement point corresponding to the target three-dimensional vegetation combination according to the projection coordinates;
[0022] According to 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 a display terminal for visual display.
[0023] In the above optional methods, by obtaining the projection coordinates and calculating the three-dimensional coordinates of the vegetation placement points, the accurate placement of the vegetation combination in the three-dimensional scene can be ensured. This method not only improves the accuracy of the design, but also enables the preview of the actual planting effect in the virtual environment, which helps to discover and solve potential problems in advance and improve the feasibility and feasibility of the design.
[0024] In a second aspect, the present invention provides a three-dimensional visual vegetation design system, the technical solution of which is as follows:
[0025] The three-dimensional visual 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 multiple 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, obtain a vegetation design plan and output it to a display terminal for visual display.
[0028] The beneficial effects of a three-dimensional visual vegetation design system of the present invention are as follows:
[0029] The system of the present invention improves the accuracy and visualization of vegetation design, avoiding the unintuitive and imprecise problems caused by traditional two-dimensional drawings or simple three-dimensional models. At the same time, 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, thereby enhancing the rationality of the design and the ecological benefits.
[0030] Based on the above solution, the three-dimensional visual vegetation design system of the present invention can also be improved as follows.
[0031] In an optional manner, each three-dimensional vegetation combination includes at least one vegetation type, each of the vegetation types includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.
[0032] In the above optional methods, by configuring attributes and naming each plant, accurate management of plant information can be ensured during vegetation design, which helps designers and related personnel to clearly understand the characteristics of each plant, such as growth conditions, appearance, ecological functions, etc., thereby improving the scientificity and operability of the design. At the same time, clear plant naming also facilitates communication and collaboration.
[0033] In an optional manner, the creation module is specifically used to:
[0034] According to the target vegetation design requirements, corresponding plant attributes and plant names are configured for each plant, and a corresponding vegetation type is configured for each plant. The plants included in each three-dimensional vegetation combination are preset to obtain the three-dimensional vegetation combination template.
[0035] In the above optional methods, the plant attributes and names are configured according to the target vegetation design requirements, and the three-dimensional vegetation combination is preset, so that the three-dimensional vegetation combination template can be customized and flexibly applied. This ensures the pertinence and practicality of the three-dimensional vegetation combination template, so that different requirements can be quickly responded to in the specific design process, and work efficiency and design quality can be improved.
[0036] In a third aspect, a technical solution of an electronic device of the present invention is as follows:
[0037] The invention comprises a memory, a processor and a program stored in the memory and running on the processor. When the processor executes the program, the steps of the three-dimensional visualization vegetation design method of the present invention are realized.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium having the following technical solution:
[0039] Instructions are stored in the computer-readable storage medium. When the computer-readable storage medium reads the instructions, the computer-readable storage medium executes the steps of the three-dimensional visualization vegetation design method of the present invention.
[0040] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0042] Figure 1 A schematic diagram of a flow chart of an embodiment of a three-dimensional visual vegetation design method of the present invention;
[0043] Figure 2 This is a schematic diagram of a three-dimensional vegetation combination template;
[0044] Figure 3 A schematic diagram of the circumscribed rectangle of the polygonal projection outline;
[0045] Figure 4 It is a schematic diagram of the circumscribed rectangular grid;
[0046] Figure 5 Provide a schematic diagram of the vegetation design plan;
[0047] Figure 6 A schematic diagram of the structure of an embodiment of a three-dimensional visual vegetation design system of the present invention;
[0048] Figure 7 The figure is a schematic structural diagram of an embodiment of an electronic device of the present invention. DETAILED DESCRIPTION
[0049] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0050] Figure 1 FIG. 1 is a flow chart of an embodiment of a three-dimensional visual vegetation design method provided by the present invention, and the method is executed by a controller. Figure 1 As shown, the following steps are included:
[0051] S1. Create a three-dimensional vegetation combination template; wherein the three-dimensional vegetation combination template includes multiple three-dimensional vegetation combinations. In S1:
[0052] 1) If Figure 2 The 3D vegetation combination template shown is a pre-designed and configured template that contains 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 properties and naming. 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 requirements. The 3D vegetation combination template serves as a reference framework for designers to quickly select vegetation combinations suitable for the target area.
[0053] 2) A 3D vegetation combination is a specific combination in a 3D vegetation combination template, which contains 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 combination is a vegetation structural unit specifically applied to a 3D scene. A 3D vegetation combination is configured according to the type, attributes and name of the plant to meet specific design and functional requirements (such as aesthetics, ecological function, carbon fixation, etc.).
[0054] Specifically, the controller creates a three-dimensional vegetation combination template including a plurality of three-dimensional vegetation combinations.
[0055] S2, 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 a vegetation design scheme and output it to a display terminal for visual display. In S2:
[0056] 1) The target area is a specific geographical area or spatial range where 3D vegetation design is required. The target area will construct the corresponding 3D scene. The target area defines the application scenario and scope of the design. It is the basis for 3D scene construction and determines the spatial background and environmental conditions of the vegetation design scheme.
[0057] 2) The 3D scene is a 3D spatial model constructed based on the target area, which is used to display and apply the selected target 3D vegetation combination. The 3D scene provides a display platform for vegetation design solutions. By mapping the target 3D vegetation combination into a specific spatial coordinate system, the design solution is visualized and facilitates further analysis and adjustment.
[0058] 3) The target 3D vegetation combination is a specific vegetation combination selected from the 3D vegetation combination template that is suitable for the target area and design requirements. The target 3D vegetation combination is selected based on carbon sequestration requirements and other design criteria. The target 3D vegetation combination is the vegetation structure that is 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 to the 3D scene, the final vegetation design is formed.
[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; maps the target three-dimensional vegetation combination to the three-dimensional scene, obtains a vegetation design plan and outputs it to a display terminal for visual display.
[0060] The technical solution of this embodiment improves the accuracy and visualization of vegetation design, avoiding the unintuitive and imprecise problems caused by traditional two-dimensional drawings or simple three-dimensional models. At the same time, 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, thereby enhancing the rationality and ecological benefits of the design.
[0061] In an optional manner, the step of creating a three-dimensional vegetation combination template includes:
[0062] According to the target vegetation design requirements, the corresponding plant attributes and plant names are configured for each plant, the corresponding vegetation type is configured for each plant, and 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, first of all, it is carried out according to the specific target vegetation design requirements. The sources of vegetation design requirements include but are not limited to: project requirements, ecological restoration goals, landscape design requirements, and carbon fixation requirements. The target vegetation design requirements are the starting point of the entire creation process and determine the direction of subsequent plant selection and combination configuration.
[0064] Secondly, for each plant to be used in the design, its plant attributes and plant names need to be configured. Plant names are unique identifiers for each plant. Plant names can be scientific names or common names, which are used to distinguish different plant species. Plant attributes are data that describe 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 will be classified 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 combination. The above classification helps to systematically organize and manage multiple plants, which is convenient for subsequent combination configuration.
[0066] Finally, for each preset three-dimensional vegetation combination, the purpose is to determine which plant species are included in each three-dimensional vegetation combination. A three-dimensional vegetation combination can contain only one vegetation type or multiple vegetation types (such as trees, shrubs, and herbaceous plants), and each vegetation type contains specific plant species. The above preset process determines the specific composition of each three-dimensional vegetation combination.
[0067] After the above process, a complete 3D vegetation combination template is finally obtained. The 3D vegetation combination template contains a variety of pre-configured 3D vegetation combinations, each combination contains a variety of plants, and each plant has its corresponding attributes and names. The 3D vegetation combination template will be used as a basic tool in the subsequent design process to select and apply to specific 3D scenes.
[0068] In this embodiment, according to the carbon fixation demand, a square three-dimensional vegetation combination template is created according to the points of the three major combinations of trees, shrubs, and herbaceous plants, so as to realize the rapid and flexible configuration of the three-dimensional vegetation combination.
[0069] Assign plant attributes to each plant in the vegetation combination template. The plant naming method is: "vegetation type (trees, shrubs, herbaceous plants) + plant name (such as cypress) + serial number".
[0070] Specifically, the controller further configures corresponding plant attributes and plant names for each plant according to the target vegetation design requirements, configures corresponding vegetation types for each plant, and presets the plants included in each three-dimensional vegetation combination to obtain a three-dimensional vegetation combination template.
[0071] In an optional manner, the step of selecting a target three-dimensional vegetation combination from a three-dimensional vegetation combination template includes:
[0072] Taking the center of the three-dimensional vegetation combination template as the origin, determine the relative position coordinates of the plant point of each plant in the three-dimensional vegetation combination template relative to the origin, and obtain the vegetation design range of the three-dimensional scene;
[0073] According to the vegetation design scope, plant attributes and plant naming, the vegetation combination that meets the target vegetation design requirements is queried from the preset plant model library and determined as the target three-dimensional vegetation combination.
[0074] It should be noted that, first, the center of the three-dimensional vegetation combination template is determined as the origin. The determination of the origin is the basis for the subsequent determination of the relative position of each plant. The center point can be the geometric center of the template, or other positions can be selected as the origin according to specific needs.
[0075] After determining the origin, it is necessary to clarify the relative position coordinates of each plant point in the 3D vegetation combination template (i.e. the position of the plant in 3D space) relative to the origin. The relative position coordinate is a 3D coordinate that describes the position of each plant in 3D space relative to the origin. The above steps provide accurate position information for the layout of each plant in the 3D scene.
[0076] Secondly, by determining the relative position coordinates of each plant, the vegetation design range of the entire 3D scene can be obtained. The vegetation design range describes the distribution of all plants in 3D space, including the specific position and coverage of all plants in the scene. The above range is an important basis for the subsequent selection of the target 3D vegetation combination.
[0077] According to the vegetation design scope, plant attributes and plant naming, the vegetation combination that meets the carbon fixation requirements is queried from the preset plant model library, where:
[0078] The vegetation design scope is used to limit the vegetation combination to be queried to fit the scope and layout of the current three-dimensional scene; plant attributes are used to screen plants that meet specific ecological functions (such as carbon fixation) and physical characteristics (such as height and canopy); plant naming is used to accurately select and identify specific plant species. The preset plant model library is a database that stores various plant models, each of which contains detailed plant attributes and three-dimensional representations of the plant. The target vegetation design requirement is the most important screening condition in the selection process, requiring the queried vegetation combination to meet specific standards or values in terms of aesthetics, ecological function, and carbon fixation.
[0079] Finally, after querying and screening, the vegetation combination that meets the target vegetation design requirements is determined as the target three-dimensional vegetation combination. The target three-dimensional vegetation combination will be used for actual three-dimensional scene design and application.
[0080] In this embodiment, the center of the three-dimensional vegetation combination template is determined as the origin. Assuming that the geometric center point of the template is selected as the origin, the origin coordinates are (0, 0, 0), and the positions of all plants will be defined relative to the origin. The three-dimensional vegetation template contains multiple vegetation combinations. Assuming that all vegetation combinations of ginkgo and azalea are selected in the three-dimensional vegetation template, the process of 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 Dujuan 1 are (10, 10, 0).
[0085] Different coordinates define the specific position of each plant in three-dimensional space. For example, Ginkgo 1 is located 5 units to the right of the origin, 5 units forward, and at a height of 0. The coordinates of Ginkgo 2 and Azalea 1 also define their corresponding positions in three-dimensional space. Through these coordinates, these plants can be accurately laid out in a three-dimensional scene.
[0086] Based on the relative position coordinates of the plants, the entire vegetation design range can be calculated. The vegetation design range is defined by the minimum and maximum coordinate values, forming a bounding box surrounding all plants.
[0087] Therefore, the minimum coordinate is determined by the position of Ginkgo 1, and the minimum coordinate is (5, 5, 0); the maximum coordinate is determined by the position of Dujuan 1, and the maximum coordinate is (15, 10, 0).
[0088] The vegetation design range describes the distribution area of all plants in three-dimensional space. In the above example, the vegetation design range is from (5, 5, 0) to (15, 10, 0), that 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 requirements of carbon fixation data (carbon fixation amount) from the preset plant model library according to the vegetation design range, plant attributes and plant naming is as follows:
[0090] According to the vegetation design range and plant properties (such as carbon fixation), the vegetation combination that meets the conditions is queried from all vegetation combinations.
[0091] For example, the carbon fixation of Ginkgo is 100kg / year; the carbon fixation of Rhododendron is 20kg / year; the total carbon fixation requirement is: ≥150kg / year. The query process is as follows:
[0092] Among all vegetation combinations, find the vegetation combination that meets the carbon sequestration requirement. According to the total carbon sequestration requirement (≥150kg / year), calculate the possible combinations. For example, if 3 vegetation combinations that meet the requirements are found:
[0093] 1 ginkgo tree + 10 azalea trees: 100kg / year + 10×20kg / year = 100kg / year + 200kg / year = 300kg / year;
[0094] 2 ginkgo trees + 5 azalea trees: 2×100kg / year + 5×20kg / year = 200kg / year + 100kg / year = 300kg / year;
[0095] 5 ginkgo trees + 10 azalea trees: 5×100kg / year + 10×20kg / year = 500kg / year + 200kg / year = 700kg / year.
[0096] In order to achieve the diversity and aesthetics of vegetation while meeting the carbon fixation requirements, a combination of 5 ginkgo trees and 10 azalea trees was selected to meet the higher carbon fixation requirements and increase the diversity of vegetation.
[0097] Finally, according to the above process, the final target three-dimensional vegetation combination can be determined, including plant species, quantity, relative position coordinates and carbon fixation amount.
[0098] Specifically, the controller further uses the center of the three-dimensional vegetation combination template as the origin, determines the relative position coordinates of the plant point of each plant in the three-dimensional vegetation combination template relative to the origin, and obtains the vegetation design range of the three-dimensional scene; according to the vegetation design range, plant attributes and plant naming, the vegetation combination that meets the target vegetation design requirements is queried from the preset plant model library, and determined as the target three-dimensional vegetation combination.
[0099] In an optional manner, the step of mapping the target three-dimensional vegetation combination to a three-dimensional scene, obtaining a vegetation design scheme, and outputting the scheme to a display terminal for visual display includes:
[0100] Obtain the projection coordinates of the target three-dimensional vegetation combination mapped to the three-dimensional scene, and calculate the three-dimensional coordinates of the vegetation placement point corresponding to the target three-dimensional vegetation combination according to the projection coordinates;
[0101] According to the three-dimensional coordinates of the vegetation placement points, the target three-dimensional vegetation combination is placed in the three-dimensional scene to obtain a vegetation design plan and output it to the display terminal for visual display.
[0102] It should be noted that the display terminal can perform visual display through a mobile phone, a computer or other display methods.
[0103] By obtaining the projection coordinates of the target three-dimensional vegetation combination mapped to the three-dimensional scene, the outline of the vegetation design range in the three-dimensional scene can be projected onto all triangulated Mesh surfaces from an upward or downward perspective. In a three-dimensional scene, the purpose of triangulating all Mesh surfaces is to segment all non-triangular faces to ensure that each face is composed of triangles composed of three vertices. Because triangles are the most basic polygons in geometry, any polygon can be split into several triangles, and triangles have a fixed shape (no collinearity), which makes subsequent mathematical calculations and projection operations simpler and more efficient.
[0104] In this embodiment, first, the data of all Mesh faces are extracted from the three-dimensional scene. Mesh is composed of a group of faces, each of which can be a triangle, a quadrilateral or other polygons. In order to uniformly process, all non-triangular faces are divided into multiple triangles. For Mesh faces that are already triangular, they are directly retained; for each non-triangular polygonal face (such as a quadrilateral, a pentagon, etc.), each non-triangular polygonal face needs to be divided into multiple triangles by at least one of the ear cutting method, the fan segmentation method and the Delaunay triangulation method.
[0105] Among them, the ear cutting method is used to process any simple polygon (polygon that does not intersect itself), and triangulation is completed by repeatedly cutting the "ears" of the polygon. The ear cutting method first needs to find the ear tip. An ear tip is a triangle composed of three consecutive vertices, and the triangle does not contain other vertices of the polygon. Then, the ear tip is cut, and the found ear tip is cut off from the polygon to form an independent triangle. Finally, the operation is repeated, and the ear tip is continuously cut off until the polygon is completely divided into triangles.
[0106] The fan segmentation method is used to process convex polygons. By selecting a vertex as the base point, the remaining vertices are connected to the selected vertex in turn to form triangles. The fan segmentation method first requires selecting a base point, that is, selecting a vertex of the polygon as the base point (for example, the first vertex). Then, the base point is connected to the other two adjacent vertices to form a triangle. Finally, the remaining vertices are processed in turn until the polygon is completely divided into triangles.
[0107] Delaunay triangulation is a triangulation method based on optimization principles. It not only ensures that polygons are divided into triangles, but also avoids the generation of overly narrow and long triangles. Delaunay triangulation can maximize the minimum angle of triangles, thereby improving the quality of triangles. Delaunay triangulation first needs to construct an initial triangle to build an initial triangular shell for the polygon. Then the vertices of the polygon are inserted in sequence, and the shape of the triangle is optimized by local adjustment or by flipping the edges to ensure that the Delaunay condition is met (that is, the circumcircle of each triangle does not contain other vertices).
[0108] After completing the triangulation of the Mesh face, all faces are represented as triangles. Each triangular face is composed of three vertices. Mesh data contains: vertex coordinates (i.e. the three-dimensional 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 index of the triangle, used to determine the composition of the triangle). Ensure that the vertex, normal, UV coordinates and other information of each triangle are stored correctly for subsequent mapping processing.
[0109] It should be noted that the outline of the vegetation design range in the three-dimensional scene is projected from an upper view or a lower view to all triangulated Mesh surfaces. The outline of the vegetation design range is drawn in an upper view or a lower view. The outline of the vegetation design range is a polygonal outline that defines the planting area of a vegetation combination (such as a combination of ginkgo and azalea). 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), and the above multiple vertices are points on a two-dimensional plane.
[0110] In this embodiment, the outline of the two-dimensional vegetation design range in the upward viewing angle or the downward viewing angle is mapped to the triangulated Mesh surface in the three-dimensional scene to obtain the projection coordinates on each Mesh surface. For example, in the upward viewing angle, the projection direction is vertically downward (i.e., along the negative direction of the Z axis). In the downward viewing angle, the projection direction will be different, but the basic principle is the same. For each triangulated Mesh surface in the scene, obtain its three vertex coordinates (v1, v2, v3), and the above vertices are points in three-dimensional space. In order to simplify the calculation, the Z coordinates of the three vertices of the triangle can also be ignored, thereby 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. After the above process, the projection coordinates on each Mesh surface can be obtained.
[0111] Assume that the acquired projection coordinates (i.e., the coordinates of the polygon projection outline) are P1(x1, y1), P2(x2, y2), P3(x3, y3), ..., P n (x n ,y n ); where P1, P2, P3, ..., P n In the polygonal projection outline, define any vertex as P1 and traverse all vertices in clockwise or counterclockwise order. Use the Axis-Aligned Bounding Box (AABB) algorithm to obtain Figure 3 The circumscribed rectangle of the polygonal projection outline shown. First, traverse all the vertices of the polygonal projection outline to find the minimum and maximum X, Y values. Then, based on the obtained minimum and maximum X, Y values, calculate the four vertices of the circumscribed rectangle. The above four vertices define the minimum rectangle that completely surrounds the polygonal projection outline, so that the boundary coordinates of the circumscribed rectangle can be determined. The boundary coordinates of the circumscribed rectangle include the left boundary, the right boundary, the upper boundary and the lower boundary. The multiple boundaries of the circumscribed rectangle and the width and height of the circumscribed rectangle are used for subsequent grid division.
[0112] It should be noted that the coordinates of the upper left corner and the lower right corner (or the coordinates of other diagonal corners) are obtained through the circumscribed rectangle of the obtained polygonal projection outline, and the above multiple coordinates define the boundary of the circumscribed rectangle. Each vegetation combination (such as a combination containing ginkgo and azalea) has a predefined size (length and width).
[0113] In this embodiment, the coordinates of the upper left corner of the circumscribed rectangle of the polygonal projection outline are taken as the starting point, and the circumscribed rectangle is divided into the following according to the length of each vegetation combination: Figure 4 The grid shown. According to the width and height of the circumscribed rectangle, determine how many grids can be divided in the width and height directions. By translating the coordinates of the lower left corner of each grid by half the length of the grid in the X-axis direction and half the width of the grid in the Y-axis direction, the coordinates of the center point of each grid can be obtained.
[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 three-dimensional vegetation combination template, the specific placement position (intended placement point) of each plant in 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 position 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 that there are multiple plants in a vegetation combination, the offset of each plant can be expressed as (d xn , d yn ), where d xn Indicates the X-axis offset of the nth plant in the vegetation combination relative to the center point of the vegetation combination; d yn Indicates the Y-axis offset of the nth plant in the vegetation combination relative to the center point of the vegetation combination. The above multiple offsets represent the horizontal distance of each plant relative to the center point of the vegetation combination.
[0116] For each grid center point coordinate obtained Provides a base reference position where Represents the horizontal coordinate of the center point of the i-th row and j-th column in the grid; Represents the ordinate of the center point of the i-th row and j-th column in the grid. According to the relative position coordinates in the three-dimensional vegetation combination template, the proposed placement point is calculated. For each plant point in the template (d x , d y ), add the offset of the corresponding point to the center point coordinates of the grid. Calculate the actual X coordinate of the plant in the 3D scene, where This is the X coordinate of the point to be placed. Calculate the actual Y coordinate of the plant in the three-dimensional scene, where This is the Y coordinate of the intended placement point. The Z coordinate (height) of the plant is Pz plant It can be determined by obtaining the height of the corresponding Mesh surface, where: This is the Z coordinate of the point to be placed. Through the above process, the three-dimensional coordinates of the point to be placed can be obtained.
[0117] It should be noted that, for the intersection calculation of the three-dimensional coordinates of the intended placement point and the polygonal projection contour, the intersection calculation can use at least one method of the intersection number method or the ray method. First, through the intersection calculation, one or more intended placement points outside the polygonal contour can be filtered out to ensure that all vegetation objects are placed in the valid area. If the design requires that the 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 actual scenarios, the placement area may not be a regular rectangle or circle, but an irregular polygon. Therefore, whether it is a rectangle, a circle, or any irregular polygon, projection and intersection calculation can be used to determine which points are inside the polygon. The polygon projection outline can be adjusted according to design requirements, and intersection calculation allows vegetation placement to flexibly adapt to different design schemes.
[0119] Furthermore, based on the intersection calculation, the density of vegetation in each polygon area can be further analyzed to ensure that it is not too dense or sparse. At the same time, the intersection calculation can also ensure that the vegetation is evenly distributed in the polygon area, thereby achieving better visual effects and functionality.
[0120] Finally, the intersection calculation ensures that each vegetation object is located within the polygon area and does not overlap with other vegetation objects. If there are other objects in the polygon area (such as buildings, roads, water bodies, etc.), the intersection calculation can also help avoid placing vegetation on or near other objects.
[0121] In this embodiment, the projection coordinates (i.e., the coordinates of the polygonal projection outline) are: (x1, y1), (x2, y2), (x3, y3), ..., (x n ,y n ); The vertices of the above projection coordinates are connected in sequence to form a closed polygon. The proposed placement point is calculated by the three-dimensional vegetation combination template and the center point of the grid. The three-dimensional coordinates of the proposed placement point are: In the intersection calculation, the two-dimensional coordinates of the point to be placed are mainly used
[0122] In order to determine whether the proposed placement point is within the polygon projection contour, the Crossing Number Algorithm is used for judgment. Send a ray in any direction (such as horizontally to the right), and calculate the number of intersections between the ray and the polygon edge. If the number of intersections is an odd number, the point to be determined is inside the polygon; if the number of intersections is an even number, the point to be determined is outside the polygon.
[0123] If the point to be judged (the point to be placed) is within the polygon, the corresponding point to be placed is retained As the final vegetation placement point, there is no need to change the coordinates. If it is outside the polygon, the corresponding proposed placement point is ignored according to the target vegetation design requirements, or the corresponding proposed placement point is moved to the nearest boundary or the nearest valid placement point within the polygon. After the above process, the three-dimensional coordinates of all complete vegetation placement points are formed.
[0124] According to the template information of each vegetation combination, the calculated three-dimensional coordinates of the vegetation placement points, the plant naming data and other data, the target three-dimensional vegetation combination is placed in the three-dimensional scene for storage, forming a complete vegetation design plan and output to the display terminal for visual display.
[0125] Specifically, the controller further obtains the projection coordinates of the target three-dimensional vegetation combination mapped to the three-dimensional scene, and calculates the three-dimensional coordinates of the vegetation placement point corresponding to the target three-dimensional vegetation combination according to the projection coordinates; according to the three-dimensional coordinates of the vegetation placement point, the target three-dimensional vegetation combination is placed in the three-dimensional scene to obtain Figure 5 The vegetation design scheme shown is output to the display terminal for visual display.
[0126] Figure 6 FIG. 2 is a schematic diagram showing a structure of an embodiment of a three-dimensional visual vegetation design system 200 provided by the present invention. 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 includes multiple 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 a three-dimensional vegetation combination template; map the target three-dimensional vegetation combination to the three-dimensional scene, obtain a vegetation design plan and output it to a display terminal for visual display.
[0129] In an optional manner, 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 optional manner, the creation module 210 is specifically used for:
[0131] According to the target vegetation design requirements, the corresponding plant attributes and plant names are configured for each plant, the corresponding vegetation type is configured for each plant, and the plants included in each three-dimensional vegetation combination are preset to obtain a three-dimensional vegetation combination template.
[0132] The technical solution of this embodiment improves the accuracy and visualization of vegetation design, avoiding the unintuitive and imprecise problems caused by traditional two-dimensional drawings or simple three-dimensional models. At the same time, 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, thereby enhancing the rationality and ecological benefits of the design.
[0133] The above parameters and steps for each module to implement corresponding functions in the 3D visualization vegetation design system 200 of this embodiment can refer to the parameters and steps in the embodiment of the 3D visualization vegetation design method above, and will not be repeated here.
[0134] like Figure 7 As shown, an electronic device 300 of an embodiment of the present invention includes a processor 320, the processor 320 is coupled to a memory 310, and the memory 310 stores at least one computer program 330, and the at least one computer program 330 is loaded and executed by the processor 320, so that the electronic device 300 implements any of the above-mentioned three-dimensional visualization vegetation design methods, specifically:
[0135] The electronic device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors 320 (Central Processing Units, CPU) and one or more memories 310, wherein the one or more memories 310 store at least one computer program 330, and the at least one computer program 330 is loaded and executed by the one or more processors 320, so that the electronic device 300 implements any of the three-dimensional visualization vegetation design methods provided in the above embodiments. Of course, the electronic device 300 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the electronic device 300 may also include other components for implementing device functions, which will not be described in detail here.
[0136] A computer-readable storage medium according to an embodiment of the present invention stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements any one of the above-mentioned three-dimensional visualization vegetation design methods.
[0137] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0138] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs any of the above-mentioned three-dimensional visualization vegetation design methods.
[0139] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects and represent the definition of a specific order or sequence. The order of use of similar objects can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.
[0140] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code.
[0141] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0142] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A three-dimensional visual vegetation design method, characterized in that: include: Creating a three-dimensional vegetation combination template; wherein the three-dimensional vegetation combination template includes multiple three-dimensional vegetation combinations; 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, a vegetation design scheme is obtained and output to a display terminal for visual display.
2. The three-dimensional visualization vegetation design method according to claim 1, characterized in that: Each three-dimensional vegetation combination includes at least one vegetation type, each of the vegetation types 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 combination template include: According to the target vegetation design requirements, corresponding plant attributes and plant names are configured for each plant, and a corresponding vegetation type is configured for each plant. 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 comprises: Taking the center of the three-dimensional vegetation combination template as the origin, determining the relative position coordinates of the plant point of each plant in the three-dimensional vegetation combination template relative to the origin, and obtaining the vegetation design range of the three-dimensional scene; According to the vegetation design range, 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.
5. The three-dimensional visualization vegetation design method according to claim 2, characterized in that: The step of mapping the target three-dimensional vegetation combination to the three-dimensional scene, obtaining a vegetation design scheme and outputting the scheme to a display terminal for visual display includes: Acquire the projection coordinates of the target three-dimensional vegetation combination mapped to the three-dimensional scene, and calculate the three-dimensional coordinates of the vegetation placement point corresponding to the target three-dimensional vegetation combination according to the projection coordinates; According to 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 a display terminal for visual display.
6. A three-dimensional visual vegetation design system, characterized in that: include: Create modules and design modules; The creation module is used to: create a three-dimensional vegetation combination template; wherein the three-dimensional vegetation combination template contains multiple 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, obtain a vegetation design plan and output it to a display terminal for visual display.
7. A three-dimensional visual vegetation design system according to claim 6, characterized in that: Each three-dimensional vegetation combination includes at least one vegetation type, each of the vegetation types includes at least one plant, and each plant is configured with corresponding plant attributes and plant names.
8. The three-dimensional visual vegetation design system according to claim 6, characterized in that: The creation module is specifically used for: According to the target vegetation design requirements, corresponding plant attributes and plant names are configured for each plant, and a corresponding vegetation type is configured for each plant. The plants included in each three-dimensional vegetation combination are preset to obtain the three-dimensional vegetation combination template.
9. An electronic device, characterized in that: The electronic device includes a processor, the processor is coupled to a memory, at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements the three-dimensional visualization vegetation design method as described in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the computer-readable storage medium implements the three-dimensional visualization vegetation design method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Garden vegetation informatization management method and device based on three-dimensional visualization, terminal and medium
CN114282738A
Method for determining placement surface of object model, electronic equipment and storage medium
CN116433877A
Landscape greening model creation method and electronic equipment
CN117668965A
Three-dimensional planning design method and device for residential area landscape, medium and computing equipment
CN118965535A
Weight lightening method of spatial object data and Computer program for the same
KR102192714B1