Digital twinborn space vision field auditing and analyzing method
By combining triangular grid processing and ray tracing technology for buildings and digital twin technology, the problems of insufficient data acquisition and modeling, grid-based granularity optimization, complex vision occlusion and interaction, and insufficient digital twin integration in existing vision analysis technologies are solved, and accurate vision coverage calculation and intuitive three-dimensional visual rendering of complex buildings and areas are realized.
Patent Information
- Application Number
- CN202510187805.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-20
- Publication Date
- 2025-03-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing field of vision analysis technology faces problems such as insufficient data acquisition and modeling, grid-based granularity optimization, complex field of vision occlusion and interaction, and insufficient digital twin integration, resulting in low analysis accuracy, high calculation cost and high user understanding.
By obtaining the three-dimensional outline model of the building, performing triangular grid processing, an optimized triangular grid model is generated, and the field of vision analysis is performed through ray tracing technology, combining digital twin technology to achieve dynamic interaction and real-time updates.
It realizes accurate visual coverage calculation of complex buildings and areas, improves analysis accuracy and efficiency, provides intuitive three-dimensional visual rendering, simplifies user understanding and application, and is suitable for multiple scenario needs such as architectural design optimization, urban planning and public safety management.
Smart Images

Figure CN119672257A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of digital twin space analysis, and specifically relates to a digital twin space field of view audit analysis method. Background Art
[0002] With the development of digital twin technology, the deep integration of virtual space and real space is changing the way of architectural design, urban planning and public safety management. In this context, viewshed analysis, as an important part of spatial research, is widely used to evaluate the occlusion effect of buildings, optimize space utilization and improve regional safety. However, existing viewshed analysis technology still faces the following major challenges: (1) Insufficient data acquisition and modeling.
[0003] Traditional viewshed analysis usually relies on floor plans or simplified 3D models, which cannot fully reflect the complex external structure of buildings, especially when it comes to curved surfaces and irregular geometric shapes. As a result, the accuracy of the analysis results is low and it is difficult to meet actual needs.
[0004] (2) The problem of grid granularity optimization.
[0005] In viewshed analysis, meshing the building surface is a key step. However, too large a granularity may lead to insufficient analysis accuracy, while too small a granularity will significantly increase the computational cost and time overhead. Existing technologies lack efficient adaptive meshing methods, making it difficult to find a balance between accuracy and efficiency.
[0006] (3) Visual field occlusion and complex interactions: When dealing with view occlusion, current technologies usually only perform simple ray tracing calculations, which cannot achieve accurate view coverage assessment for complex building complexes. At the same time, the analysis results are mostly static reports, lacking intuitive 3D visualization feedback, making it difficult for users to understand and apply.
[0007] (4) Insufficient integration of digital twins: Digital twin technology has made certain progress in building management, but in actual applications, the integration between the viewshed analysis system and the digital twin platform is poor, making it difficult to achieve real-time updates and dynamic interaction, which reduces the actual value of the technology. Summary of the invention
[0008] In response to the above-mentioned deficiencies in the prior art, the digital twin spatial view audit and analysis method provided by the present invention solves the problems of insufficient data acquisition and modeling, difficult grid granularity optimization, complex view occlusion and interaction, and insufficient digital twin integration in the existing view analysis technology.
[0009] In order to achieve the above-mentioned purpose of the invention, the technical solution adopted by the present invention is: a digital twin space view audit analysis method, comprising the following steps: S1. Obtain the outline of the building to be reviewed, mesh the surface of the building outline, and construct an optimized triangular mesh model; S2. Obtain the center point of the mesh split to the best granularity from the optimized triangular mesh model, record the coordinates of the point, and generate point cloud data; S3. Define the digital twin area for visual inspection and analysis, and obtain the boundary information of the target area; S4, sending rays to the target area according to the point cloud data, and rendering the target area of the rays with special colors; S5. Perform calculation and analysis on the target area of the ray, check the personnel data in the area and the visual conditions of each building, and output an audit report.
[0010] Further: S1 comprises the following sub-steps: S11, obtaining a three-dimensional contour model of the building to be reviewed, the three-dimensional contour model including the wall and roof surfaces of the building, and cleaning and optimizing the three-dimensional contour model; S12, dividing the building surface in the three-dimensional contour model into a plurality of small triangular areas by a triangular meshing algorithm, and generating triangular mesh units; S13. Controlling the mesh side length of the triangular mesh unit by setting the mesh granularity, and establishing an optimized triangular mesh model, which includes the coordinates of the triangle vertices and the spatial position of the center point of each mesh.
[0011] Further: In S12, the mesh side length of the triangular mesh unit is g The specific expression is:
[0012] In the formula, S is the total surface area, N is the total number of target grids.
[0013] The beneficial effect of the above further scheme is: the building surface is divided into several small triangular areas through the triangular meshing algorithm, the mesh granularity is set according to the analysis requirements, and the appropriate mesh side length is selected to balance the calculation accuracy and efficiency.
[0014] Further: S2 comprises the following sub-steps: S21, calculating the center point coordinates of each triangular mesh unit in the optimized triangular mesh model; S22. Record the center point coordinates of all triangular mesh units as point cloud data.
[0015] Further: In S21, the coordinates of the center point of the triangular mesh unit are calculated P The specific expression is:
[0016] In the formula, V 1 is the spatial coordinate of the first triangle vertex of the triangular mesh unit, V 2 is the spatial coordinate of the second triangle vertex of the triangular mesh unit, V 3 is the spatial coordinate of the third triangle vertex of the triangular mesh unit.
[0017] Further: S3 includes the following sub-steps: S31. Define the area scope for visual analysis according to audit requirements or user needs; S32: setting the region boundary, visualizing the target region range, and storing the target region boundary information in a standard format.
[0018] The beneficial effect of the above further solution is: by visually rendering the border, coloring or semi-transparent display of the area, the target area is highlighted to facilitate user confirmation.
[0019] Further: In said S32, the target area range R The specific expression is:
[0020] In the formula, x is the horizontal axis coordinate value of the point in space, y is the vertical coordinate value of the point in space, z is the vertical axis coordinate value of the point in space, x min is the minimum value of the horizontal axis coordinate, x max is the maximum value of the horizontal axis coordinate value, y min is the minimum value of the vertical axis coordinate, y max is the maximum value of the vertical axis coordinate, z min is the minimum value of the vertical axis coordinate, z max is the maximum value of the vertical axis coordinate.
[0021] Further: S4 includes the following sub-steps: S41, generating a ray according to the coordinates of the center point in the point cloud data, with the direction of the ray pointing from the center point to the boundary of the target area; S42, using the geometric relationship between the ray and the boundary of the target area, determining the intersection point where the ray hits the boundary of the target area, and recording the spatial position of the intersection point and its corresponding grid; S43, for all recorded spatial positions of grids and intersections, calculating the target area of the ray; S44, performing special rendering on the area corresponding to the target area to obtain a rendering analysis result.
[0022] Further: In S41, the path equation of each ray is The expression is:
[0023] In the formula, P are the coordinates of the center point of the triangular mesh unit, is the direction vector of the ray, is a parameter in the ray equation, indicating the direction of the ray in the vector The extension multiple of ; In S43, the total area of the target region of the ray A t The specific expression is:
[0024] In the formula, A j For the j The target area of the ray.
[0025] Further: S5 comprises the following sub-steps: S51. Calculate the visual coverage rate of each building in the target area. The specific expression is:
[0026] In the formula, For buildings k The hit area, is the total area of the target region; S52, counting the number of people in the grid hit by the ray, and obtaining the total number of people and the distribution of people; S53. Generate an audit report, including the total area of the target area, the visual coverage of each building, and statistical charts and visual renderings of the distribution of people in the area.
[0027] The beneficial effects of the present invention are: (1) The present invention provides a digital twin spatial view audit analysis method, which realizes the accurate view coverage calculation of complex buildings and areas through fine grid splitting of building surfaces, center point coordinate extraction and ray tracing technology. Combined with the dynamic definition of the target area and three-dimensional visual rendering, users can intuitively understand the impact of buildings on the view of the target area, and quickly generate an audit report containing view coverage, target area and personnel distribution. It solves the problems of insufficient data acquisition and modeling, grid granularity optimization, view occlusion and interaction complexity, and insufficient digital twin integration in existing view analysis technologies. It is suitable for multiple scenarios such as architectural design optimization, urban planning and public safety management, and significantly improves the analysis efficiency and application value of the results.
[0028] (2) The present invention not only improves the accuracy and efficiency of viewshed analysis through fine grid processing, accurate ray tracing calculation and efficient regional coverage analysis, but also realizes three-dimensional rendering and data visualization, which is convenient for users to understand and apply, and is suitable for multi-scenario requirements of complex buildings and regions. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a flow chart of the digital twin space visual field audit and analysis method of the present invention. DETAILED DESCRIPTION
[0030] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0031] like Figure 1 As shown, in one embodiment of the present invention, the digital twin space view audit analysis method includes the following steps: S1. Obtain the outline of the building to be reviewed, mesh the surface of the building outline, and construct an optimized triangular mesh model; S2. Obtain the center point of the mesh split to the best granularity from the optimized triangular mesh model, record the coordinates of the point, and generate point cloud data; S3. Define the digital twin area for visual inspection and analysis, and obtain the boundary information of the target area; S4, sending rays to the target area according to the point cloud data, and rendering the target area of the rays with special colors; S5. Perform calculation and analysis on the target area of the ray, check the personnel data in the area and the visual conditions of each building, and output an audit report.
[0032] The S1 comprises the following sub-steps: S11. Obtain a 3D contour model of the building to be reviewed, which includes the wall and roof surfaces of the building, and clean and optimize the 3D contour model to remove redundant data, such as overlapping surfaces and noise points, to ensure the topological integrity of the model and avoid the subsequent meshing affected by data missing or errors; S12, dividing the building surface in the three-dimensional contour model into a plurality of small triangular areas by a triangular meshing algorithm, and generating triangular mesh units; S13. Controlling the mesh side length of the triangular mesh unit by setting the mesh granularity, and establishing an optimized triangular mesh model, which includes the coordinates of the triangle vertices and the spatial position of the center point of each mesh.
[0033] In this embodiment, the three-dimensional contour model is obtained by laser scanning, drone oblique photogrammetry or BIM (Building Information Modeling) technology, and output as a standard three-dimensional format file (such as STL, OBJ or FBX), which records the geometric shape of the building surface, including vertex and facet information.
[0034] In S12, the mesh side length of the triangular mesh unit g The specific expression is:
[0035] In the formula, S is the total surface area, N is the total number of target grids.
[0036] In this embodiment, the building surface is divided into several small triangular areas through a triangular meshing algorithm. The mesh granularity is set according to the analysis requirements, and the appropriate mesh edge length is selected to balance the calculation accuracy and efficiency. The output result is a triangular mesh model composed of vertices and facets. The triangular mesh units of the triangular mesh model are checked to ensure the quality of the mesh segmentation, including no erroneous faces and non-manifold edges.
[0037] The S2 comprises the following sub-steps: S21, calculating the center point coordinates of each triangular mesh unit in the optimized triangular mesh model; S22. Record the center point coordinates of all triangular mesh units as point cloud data.
[0038] In S21, the coordinates of the center point of the triangular mesh unit are calculated. P The specific expression is:
[0039] In the formula, V1 is the spatial coordinate of the first triangle vertex of the triangular mesh unit, V 2 is the spatial coordinate of the second triangle vertex of the triangular mesh unit, V 3 is the spatial coordinate of the third triangle vertex of the triangular mesh unit.
[0040] In this embodiment, if the initial gridding does not meet the accuracy requirements, the grid can be re-divided by adjusting the granularity to make the grid center points denser or sparser to balance the computational efficiency and analysis accuracy.
[0041] In S2, all center point coordinates are recorded as point cloud data and stored as a structured file such as .JSON or .csv format to ensure that the data is compatible with the target area definition and ray analysis module.
[0042] The S3 comprises the following sub-steps: S31. Define the area scope for visual analysis according to audit requirements or user needs; S32: setting the region boundary, visualizing the target region range, and storing the target region boundary information in a standard format.
[0043] In S31, the audit requirements are determined, and the scope of the target area is clarified according to user needs or application scenarios, such as the building complex, square or public area that needs to be analyzed. The audit scope can be a simple geometric shape, such as a cube or a sphere, or a complex polygonal area to define the target area of ray analysis.
[0044] In S32, the method of visualizing the area is specifically: displaying the target area in the digital twin platform to ensure that the user can intuitively view the audit scope. The target area can be highlighted by rendering a border, coloring or semi-transparent display to facilitate user confirmation.
[0045] Target area range R The specific expression is:
[0046] In the formula, x is the horizontal axis coordinate value of the point in space, y is the vertical coordinate value of the point in space, z is the vertical axis coordinate value of the point in space, x min is the minimum value of the horizontal axis coordinate, x max is the maximum value of the horizontal axis coordinate value, y min is the minimum value of the vertical axis coordinate, y max is the maximum value of the vertical axis coordinate value, zmin is the minimum value of the vertical axis coordinate, z max is the maximum value of the vertical axis coordinate.
[0047] The S4 comprises the following sub-steps: S41, generating a ray according to the coordinates of the center point in the point cloud data, with the direction of the ray pointing from the center point to the boundary of the target area; S42, using the geometric relationship between the ray and the boundary of the target area, determining the intersection point where the ray hits the boundary of the target area, and recording the spatial position of the intersection point and its corresponding grid; S43, for all recorded spatial positions of grids and intersections, calculating the target area of the ray; S44, performing special rendering on the area corresponding to the target area to obtain a rendering analysis result.
[0048] In S41, the path equation of each ray is The expression is:
[0049] In the formula, P are the coordinates of the center point of the triangular mesh unit, is the direction vector of the ray, is a parameter in the ray equation, indicating the direction of the ray in the vector The extension multiple of ; In this embodiment, the generated rays are used to determine whether the building surface can directly "see" a specific portion of the target area.
[0050] In S43, the total area of the target region of the ray A t The specific expression is:
[0051] In the formula, A j For the j The target area of the ray.
[0052] In this embodiment, the hit area is rendered in a special color in the digital twin platform, for example, the hit part is marked in red, and the missed part remains gray or transparent. In this way, the user can intuitively understand the visual impact of the building surface on the target area.
[0053] The S5 comprises the following sub-steps: S51. Calculate the visual coverage rate of each building in the target area. The specific expression is:
[0054] In the formula, For buildings k The hit area, is the total area of the target region; S52, counting the number of people in the grid hit by the ray, and obtaining the total number of people and the distribution of people; S53. Generate an audit report, including the total area of the target area, the visual coverage of each building, and statistical charts and visual renderings of the distribution of people in the area.
[0055] In this embodiment, the final report is output in the form of PDF or interactive pages to support further viewing and sharing.
[0056] The beneficial effects of the present invention are as follows: the present invention provides a digital twin spatial view audit analysis method, which realizes the accurate view coverage calculation of complex buildings and areas through fine grid splitting of the building surface, center point coordinate extraction and ray tracing technology. Combined with the dynamic definition of the target area and three-dimensional visual rendering, the user can intuitively understand the impact of the building on the view of the target area, and quickly generate an audit report containing view coverage, target area and personnel distribution, solving the problems of insufficient data acquisition and modeling, grid granularity optimization problems, view occlusion and interaction complexity and insufficient digital twin integration in existing view analysis technologies. It is suitable for multiple scenarios such as architectural design optimization, urban planning and public safety management, and significantly improves the analysis efficiency and application value of the results.
[0057] The present invention not only improves the accuracy and efficiency of viewshed analysis through fine grid processing, accurate ray tracing calculations and efficient regional coverage analysis, but also realizes three-dimensional rendering and data visualization, which is easy for users to understand and apply, and is suitable for multi-scenario requirements of complex buildings and areas.
[0058] In the description of the present invention, it should be understood that the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features. Therefore, a feature defined by "first", "second", and "third" may explicitly or implicitly include one or more of the features.
Claims
1. A digital twin spatial view audit analysis method, characterized in that: The following steps are involved: S1. Obtain the outline of the building to be reviewed, mesh the surface of the building outline, and construct an optimized triangular mesh model; S2. Obtain the center point of the mesh split to the best granularity from the optimized triangular mesh model, record the coordinates of the point, and generate point cloud data; S3. Define the digital twin area for visual inspection and analysis, and obtain the boundary information of the target area; S4, sending rays to the target area according to the point cloud data, and rendering the target area of the rays with special colors; S5. Perform calculation and analysis on the target area of the ray, check the personnel data in the area and the visual conditions of each building, and output an audit report.
2. The digital twin space visual field audit analysis method according to claim 1 is characterized in that: The S1 comprises the following sub-steps: S11, obtaining a three-dimensional contour model of the building to be reviewed, the three-dimensional contour model including the wall and roof surfaces of the building, and cleaning and optimizing the three-dimensional contour model; S12, dividing the building surface in the three-dimensional contour model into a plurality of small triangular areas by a triangular meshing algorithm, and generating triangular mesh units; S13. Controlling the mesh side length of the triangular mesh unit by setting the mesh granularity, and establishing an optimized triangular mesh model, which includes the coordinates of the triangle vertices and the spatial position of the center point of each mesh.
3. The digital twin space visual field audit analysis method according to claim 2 is characterized in that: In S12, the mesh side length of the triangular mesh unit g The specific expression is: In the formula, S is the total surface area, N is the total number of target grids.
4. The digital twin space visual field audit analysis method according to claim 1 is characterized in that: The S2 comprises the following sub-steps: S21, calculating the center point coordinates of each triangular mesh unit in the optimized triangular mesh model; S22. Record the center point coordinates of all triangular mesh units as point cloud data.
5. The digital twin space visual field audit analysis method according to claim 4 is characterized in that: In S21, the coordinates of the center point of the triangular mesh unit are calculated. P The specific expression is: In the formula, V 1 is the spatial coordinate of the first triangle vertex of the triangular mesh unit, V 2 is the spatial coordinate of the second triangle vertex of the triangular mesh unit, V 3 is the spatial coordinate of the third triangle vertex of the triangular mesh unit.
6. The digital twin space visual field audit analysis method according to claim 1 is characterized in that: The S3 comprises the following sub-steps: S31. Define the area scope for visual analysis according to audit requirements or user needs; S32: setting the region boundary, visualizing the target region range, and storing the target region boundary information in a standard format.
7. The digital twin space visual field audit analysis method according to claim 6 is characterized in that: In S32, the target area range R The specific expression is: In the formula, x is the horizontal axis coordinate value of the point in space, y is the vertical coordinate value of the point in space, z is the vertical axis coordinate value of the point in space, x min is the minimum value of the horizontal axis coordinate, x max is the maximum value of the horizontal axis coordinate value, y min is the minimum value of the vertical axis coordinate, y max is the maximum value of the vertical axis coordinate, z min is the minimum value of the vertical axis coordinate, z max is the maximum value of the vertical axis coordinate.
8. The digital twin space view audit analysis method according to claim 1 is characterized in that: The S4 comprises the following sub-steps: S41, generating a ray according to the coordinates of the center point in the point cloud data, with the direction of the ray pointing from the center point to the boundary of the target area; S42, using the geometric relationship between the ray and the boundary of the target area, determining the intersection point where the ray hits the boundary of the target area, and recording the spatial position of the intersection point and its corresponding grid; S43, for all recorded spatial positions of grids and intersections, calculating the target area of the ray; S44, performing special rendering on the area corresponding to the target area to obtain a rendering analysis result.
9. The digital twin space view audit analysis method according to claim 8 is characterized in that: In S41, the path equation of each ray is The expression is: In the formula, P are the coordinates of the center point of the triangular mesh unit, is the direction vector of the ray, is a parameter in the ray equation, indicating the direction of the ray in the vector The extension multiple of ; In S43, the total area of the target region of the ray A t The specific expression is: In the formula, A j For the j The target area of the ray.
10. The digital twin space visual field audit analysis method according to claim 1 is characterized in that: The S5 comprises the following sub-steps: S51. Calculate the visual coverage rate of each building in the target area. The specific expression is: In the formula, For buildings k The hit area, is the total area of the target region; S52, counting the number of people in the grid hit by the ray, and obtaining the total number of people and the distribution of people; S53. Generate an audit report, including the total area of the target area, the visual coverage of each building, and statistical charts and visual renderings of the distribution of people in the area.
Citation Information
Patent Citations
Visibility analysis method for urban area
CN112002012A
Vehicle tracking method for urban road digital twinborn scene
CN115376055A
Attribute evaluation method and device for digital twin space
CN118229899A
Live-action three-dimensional model construction method, system and equipment based on digital city
CN119251404A
Method and home gateway for detecting machines infected by domain generating algorithms
WO2023161217A1