Attribute body model three-dimensional expression method, system and readable storage medium

By building attribute model and weighted overlay and color assignment of attribute values, the problem of internal data expression difficulties in three-dimensional visualization is solved, and a more realistic and intuitive three-dimensional visualization effect is achieved, and information analysis and emergency response of nuclear emergency aviation monitoring are improved. efficiency.

CN117876598BActive Publication Date: 2024-12-03AIRBORNE SURVEY & REMOTE SENSING CENTER OF NUCLEAR IND
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410055957.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2024-12-03
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively express internal data in three-dimensional visualization, and the traditional three-dimensional body drawing technology is inefficient in real-time processing and rendering of multi-factor dynamic visualization of large-scale dynamic data sets, and cannot achieve a more realistic and intuitive three-dimensional visualization effect. Especially in nuclear emergency aviation monitoring, the efficiency of comprehensive information analysis and emergency response is affected.

Method used

By building an attribute body model, obtain the XYZ extreme value of the attribute value and build a cuboid enclosing box mesh model, establish a mapping of grid coordinates, attribute values ​​and color values, and use ray principle and interpolation method to obtain the attribute values ​​and color values ​​of any point , perform attribute value weighted overlay and re-produce color, solving the problem of occluding internal display of three-dimensional external graphics.

Benefits of technology

It realizes effective three-dimensional visualization of internal data, improves the integration effect of space, time and business dimensions in nuclear emergency aviation monitoring, improves the efficiency of information analysis and emergency response, and is suitable for business data model visualization in other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117876598B_ABST
    Figure CN117876598B_ABST
Patent Text Reader

Abstract

The present invention relates to a three-dimensional expression method, system and readable storage medium of an attribute body model, the method comprising the steps of: obtaining attribute values ​​on the coordinates of spatial data points; constructing an attribute body model; constructing a grid model based on a bounding box; creating a mapping relationship between grid coordinate points, attribute values ​​and color values; rays penetrate the bounding box, starting from the first intersection point of the ray and the grid model, and cyclically obtaining the attribute value and color value of the intersection point of the ray and the grid data in the grid model along the ray direction according to the step length; superimposing and calculating the color values ​​of all intersection points of the ray and the grid model, and assigning the calculation result to the color value of the first intersection point of the ray and the grid model; rendering the final color of the first intersection point of the ray and the grid model. The present invention can reflect the internal attribute situation through the color of the surface, solves the problem of three-dimensional external graphics blocking the internal display, and enables the internal data to be effectively expressed in the three-dimensional visualization of attribute data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a three-dimensional data expression technology, in particular to a three-dimensional expression method and system of an attribute body model and a readable storage medium. Background Art

[0002] Extracting and deeply integrating attribute data with spatial, temporal, and business characteristics to achieve three-dimensional visualization and dynamic expression of attribute data is of great significance to improving the comprehensive information analysis and judgment capabilities of target data and making corresponding decisions. How to perform three-dimensional visualization of attribute data models based on spatial, temporal, and business characteristics to achieve a more realistic and intuitive three-dimensional visualization real-time display effect is the key technology to achieve three-dimensional visualization of attribute data in the data three-dimensional visualization platform.

[0003] However, current research is mostly focused on expressing visualization effects at the two-dimensional level, and three-dimensional visualization is mostly reflected in single-dimensional three-dimensional expression, but there is often a situation where three-dimensional external graphics block the internal display, making it impossible to effectively and intuitively express the internal data in three dimensions. In addition, traditional three-dimensional volume rendering technology is difficult to be more efficient and more intuitive in the real-time processing and rendering of multi-factor dynamic visualization of large-scale dynamic data sets.

[0004] Specifically in the field of nuclear emergency aviation monitoring, in the process of providing technical support and emergency rescue, it is necessary to extract and deeply integrate attribute data with spatial, temporal and business characteristics based on nuclear emergency aviation monitoring big data, and realize the three-dimensional visualization dynamic expression of attribute data, so as to improve the ability of nuclear emergency aviation monitoring comprehensive information analysis and judgment, monitoring plan formulation and optimization, guidance of actual emergency response actions and technical support for emergency decision-making. Existing research and application of large-scale radionuclide diffusion data visualization methods such as Jia Yaning, research and design of gas diffusion emergency analysis based on three-dimensional GIS by Quan Xirui, and a refined pollution diffusion visualization method with accelerated rendering by Yang Hao. They only display three-dimensional external graphics, and cannot effectively, intuitively and dynamically express internal data in three dimensions. In addition, traditional three-dimensional volume rendering technology is difficult to be more efficient and more intuitive in three dimensions in real-time processing and rendering of multi-factor dynamic visualization of large-scale dynamic data sets. This is still a certain gap from the demand for the integration effect of the three dimensions of space, time and business to be expressed by the three-dimensional visualization of attribute data models in nuclear emergency aviation monitoring, thus affecting the efficiency of nuclear emergency aviation monitoring technical support, accident analysis and judgment, and guidance of emergency response actions. Summary of the invention

[0005] The purpose of the present invention is to provide a three-dimensional expression method, system and readable storage medium for an attribute body model to solve the problem that the internal data cannot be effectively expressed in the existing three-dimensional visualization of attribute data.

[0006] The present invention is implemented as follows: a three-dimensional expression method of an attribute body model includes the following steps.

[0007] a. Obtain the spatial data points of the target and record the coordinates of the spatial data points.

[0008] b. Get the attribute value at the coordinates of the spatial data point.

[0009] c. Construct an attribute volume model containing spatial data point coordinates and attribute values.

[0010] d. Construct a bounding box that can contain all spatial data points with attribute values ​​of the entire attribute volume model, divide the interior of the bounding box into grids to obtain grid data, and thus construct a grid model based on the bounding box.

[0011] e. Create a mapping relationship between grid coordinate points, attribute values ​​and color values.

[0012] f. The ray starting from the viewpoint penetrates the bounding box, and starting from the first intersection point of the ray and the mesh model, it loops along the direction of the ray according to the step size to obtain the attribute value and color value of the intersection point between the ray and the mesh data in the mesh model until it exceeds the bounding box range.

[0013] g. Perform superposition calculation on the color values ​​of all intersection points between the ray and the grid model, and assign the calculation result to the color value of the first intersection point between the ray and the grid model.

[0014] h. Render the final color of the first intersection point between the ray and the mesh model.

[0015] For the three-dimensional expression method of the attribute body model of the invention, in step e, the attribute values ​​of all coordinate points are normalized, and the attribute values ​​are mapped to the range of 0-1. The color table uses the imported texture image, and the texture coordinates are 0-1 to establish the coordinate point, attribute value and texture mapping relationship; the grid model is expressed in color based on pixels, and each pixel is obtained according to the coordinate values ​​of the surrounding coordinate points by using the trilinear interpolation method, and the corresponding attribute value and color value are mapped.

[0016] For the three-dimensional expression method of the attribute body model of the invention, in step d, the extreme values ​​of the attribute body model in the three directions of XYZ in the rectangular coordinate system are obtained, and the grid is divided according to the distribution of the XYZ coordinate points to obtain grid data, which consists of the origin coordinates, the grid size, the grid coordinates of each independent point and the attribute value of each independent point; each grid size is the same and has an attribute value; a rectangular bounding box is constructed according to the extreme values ​​of the grid coordinates of all independent points.

[0017] For the three-dimensional expression method of the attribute body model of the invention, in step d, a one-dimensional array is established, and each grid coordinate in the bounding box-based grid model is mapped to the established one-dimensional array, and the attribute value of the grid is recorded at the corresponding position in the one-dimensional array.

[0018] For the three-dimensional expression method of the attribute volume model of the invention, in step g, the weighted average method according to the attribute value is used for superposition calculation. Assuming that the number of intersection points between a certain ray and the grid model is n, the attribute value V and the corresponding color RGB value of each intersection point are calculated, and the square of the attribute value V of each intersection point is used as the weight to calculate the sum of the weights of each intersection point. The calculation formula is:

[0019]

[0020] Where: S is the total weight, Vi is the attribute value of the intersection i, and n is the number of intersections.

[0021] Assume that the color value of the first point of the ray and mesh model is represented by (R, G, B), and the calculation formula is as follows:

[0022]

[0023] Where: R, G, B are the three components of RGB values ​​R, G, B respectively, S is the sum of weights, Vi is the attribute value of the intersection i, and n is the number of intersections.

[0024] The three-dimensional expression method of the attribute body model of the invention also includes the steps of:

[0025] i. Optimize model edge rendering results.

[0026] The three-dimensional expression method of the attribute body model of the invention performs dynamic expression by performing transitional linear interpolation on the grid model at multiple moments within the bounding box.

[0027] The three-dimensional expression method of the attribute body model of the invention specifically includes the following steps:

[0028] Get the attribute volume model of each time node of the actual data, and create a time period that can include all time nodes, calculate the maximum bounding box based on the spatial position of the points with attribute values ​​at all times, and convert the attribute values ​​into 3D textures;

[0029] According to the position of the current scene time on the time axis, obtain the attribute body model of the two time nodes close to the moment, and according to the corresponding time of the two time nodes, obtain the position ratio of the current moment between the two time nodes;

[0030] Obtain all intersection points of all rays and corresponding mesh models in the attribute volume model at the current moment, obtain the attribute values ​​of the three-dimensional texture of these intersection points at two adjacent time nodes, and interpolate the attribute values ​​at the position ratio between the two adjacent time nodes at the current moment to obtain the attribute values ​​of all intersection points of all rays and corresponding mesh models at the current moment;

[0031] The color values ​​of all intersection points of each ray and the grid model are superimposed and calculated, and the calculation result is assigned to the color value of the first intersection point of the ray and the grid model. The final color of the first intersection point of each ray and the grid model is rendered, so as to visualize the attribute volume in three dimensions at the current moment.

[0032] The present invention also provides a three-dimensional expression system of an attribute body model, comprising:

[0033] The acquisition module is used to acquire the data of the target area and build an attribute body model of the data;

[0034] A processing module is used to generate a grid model, generate a ray starting from the viewpoint, perform superposition calculation on the color values ​​of all intersection points between the ray and the grid model, and assign the calculation result to the color value of the first intersection point between the ray and the grid model;

[0035] The rendering module is used to render the final color of the first intersection point between the ray and the mesh model.

[0036] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the above-mentioned three-dimensional expression method of the attribute body model is implemented.

[0037] The present invention constructs an attribute body model, obtains the XYZ extreme values ​​of the attribute value and constructs a rectangular bounding box grid model, and establishes a mapping of grid coordinates, attribute values ​​and color values. The ray principle and interpolation method are used to obtain the attribute value, color value and coordinates of any point, and the color value of any point on the surface of the attribute body model is weightedly superimposed and re-colored. Therefore, the internal attribute situation can be reflected by the color of the surface, which solves the problem that the three-dimensional external graphics block the internal display, and the internal data can be effectively expressed in the three-dimensional visualization of the attribute data. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a flow chart of the three-dimensional expression method of the attribute body model of the present invention.

[0039] Figure 2 It is a schematic diagram of the ray penetrating the bounding box in the present invention.

[0040] Figure 3The color value of the present invention is superimposed and calculated according to the attribute value weight and the result is assigned to the effect diagram of the first intersection point of the ray and the grid model.

[0041] Figure 4 This is the final effect diagram obtained by using the three-dimensional expression method of the attribute body model of the present invention.

[0042] Figure 5 It is a structural diagram of the three-dimensional expression system of the attribute body model of the present invention. DETAILED DESCRIPTION

[0043] Example 1

[0044] like Figure 1 As shown, the present invention provides a three-dimensional expression method of an attribute body model, comprising the following steps.

[0045] a. Obtain the spatial data points of the target and record the coordinates of the spatial data points.

[0046] The coordinates of spatial data points are expressed as (X, Y, Z).

[0047] b. Get the attribute value at the spatial data point coordinates (X, Y, Z).

[0048] Attribute values ​​include time and historical, real-time, and forecasted business data, and the data content is recorded as: XYZ+attribute value.

[0049] c. Construct an attribute volume model containing spatial data point coordinates and attribute values.

[0050] The data format of the attribute body model is "XYZ+attribute value".

[0051] d. Construct a bounding box that can contain all spatial data points with attribute values ​​of the entire attribute volume model, divide the interior of the bounding box into grids to obtain grid data, and thus construct a grid model based on the bounding box.

[0052] Get the extreme values ​​of the attribute volume model in the three directions of XYZ in the rectangular coordinate system, divide the grid according to the distribution of XYZ coordinate points, and obtain grid data. The grid data consists of the origin coordinates, grid size, grid coordinates of each independent point (expressed by IJK) and the attribute value of each independent point; each grid size is the same and has attribute values; construct a rectangular bounding box according to the extreme values ​​of the grid coordinates IJK of all independent points.

[0053] A one-dimensional array is created, and the coordinates of each grid in the grid model based on the rectangular bounding box are mapped to the created one-dimensional array, and the attribute value of the grid is recorded at the corresponding position in the one-dimensional array.

[0054] Specifically, let the grid coordinates be represented by (I, J, K), and construct a large three-dimensional array from the minimum to the maximum value of I, J, K. Each position stores the corresponding attribute value, and no data is represented by 0. Then expand the three-dimensional array to a one-dimensional array.

[0055] For example: suppose there are originally 4 grid data points (1, 1, 0), (2, 2, 3), (1, 2, 3), (4, 5, 1). It is known that the minimum value of I is 1 and the maximum value is 4, the minimum value of J is 1 and the maximum value is 5, and the minimum value of K is 0 and the maximum value is 3. Then create a matrix of size (4-1+1)×(5-1+1)×(3-0+1) that can store 80 values, of which only four positions have values.

[0056] 0, 0, 0, 0, 0, 1, 0 ... 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]

[0057] The point (1, 1, 0) is calculated as 0 by the above formula, and its subscript in the one-dimensional array is 0. If a point is (4, 5, 3), its subscript is 79.

[0058] e. Create a mapping relationship between grid coordinate points, attribute values ​​and color values.

[0059] In step e, the attribute values ​​of all coordinate points are normalized, and the attribute values ​​are mapped to the range of 0-1. The color table uses the imported texture image, and the texture coordinates are 0-1. The coordinate point, attribute value and texture mapping relationship is established.

[0060] Any point (fragment shader) on the six rectangular faces of the constructed cuboid bounding box can obtain the interpolated IJK, and the attribute value is obtained through the mapping relationship between IJK and texture.

[0061] The grid model is expressed in color with pixels as the basic unit. Each pixel is obtained according to the coordinate values ​​IJK of the surrounding coordinate points using the trilinear interpolation method, and the corresponding attribute value and color value RGB are mapped.

[0062] f. Penetrate the ray starting from the viewpoint with any point on the bounding box plane (IJK automatically interpolated by the fragment shader). Starting from the first intersection point between the ray and the mesh model, loop along the ray direction according to the step length to obtain the attribute value and color value of the intersection point between the ray and the mesh data in the mesh model until it exceeds the bounding box range.

[0063] Set the step length of the intersection point between the ray and the grid model: that is, the distance the ray moves forward each time it is sampled, in IJK units, which can be understood as how many grids it moves forward each time, such as 0.5 grids. When the ray moves forward one step and exceeds the model range, the loop will be jumped out.

[0064] Combine the following Figure 2 To explain, assuming that the current viewpoint is viewing the mesh model at point A, the fragment shader will color each face of the hexahedron.

[0065] When ray AD intersects the model at point D, since point D is the intersection point of three surfaces, no matter which surface the ray is extended on, it will directly exceed the model range and jump out of the loop.

[0066] When ray AC intersects the model at points B and C, the ray moves out of range for the face where point C is located after one step, and this face has backface culling, so the loop is exited. For point B where the ray intersects the model, trilinear interpolation is used to obtain the IJK value of the point, and the IJK values ​​of the subsequent intersection points are calculated according to the ray normal vector and the set step size, and the attribute values ​​and colors of each intersection point are obtained by mapping the IJK values ​​of each intersection point.

[0067] g. Perform superposition calculation on the color values ​​of all intersection points between the ray and the grid model, and assign the calculation result to the color value of the first intersection point between the ray and the grid model. The effect diagram is as follows: Figure 3 shown.

[0068] The weighted average method based on attribute values ​​is used for superposition calculation. Assume that the number of intersection points between a ray and the grid model is n. The attribute value V and the corresponding color RGB value of each intersection point are calculated. The square of the attribute value V of each intersection point is used as the weight, and the sum of the weights of each intersection point is calculated. The calculation formula is:

[0069]

[0070] Where: S is the total weight, Vi is the attribute value of the intersection i, and n is the number of intersections.

[0071] Assume that the color value of the first point of the ray and mesh model is represented by (R, G, B), and the calculation formula is as follows:

[0072]

[0073] Where: R, G, B are the three components of RGB values ​​R, G, B respectively, S is the sum of weights, Vi is the attribute value of the intersection i, and n is the number of intersections.

[0074] h. Render the final color of the first intersection point between the ray and the mesh model.

[0075] To ensure the quality of mesh model data rendering, you can also add step i. Optimize the model edge rendering result. The sum of the unnormalized weights is filtered through a threshold (such as <0.001) to optimize the edge of the rendering result.

[0076] Example 2

[0077] Embodiment 1 is a three-dimensional expression method for a target attribute body at a fixed time. In practical applications, it is generally necessary to express the target attribute body dynamically.

[0078] The three-dimensional dynamic expression of the target attribute volume model requires transitional linear interpolation of the grid models at multiple moments within the bounding box, which specifically includes the following steps.

[0079] Get the attribute body model of each time node of the actual data, and create a time period that can include all time nodes. Calculate the maximum bounding box based on the spatial positions of points with attribute values ​​at all times, and convert the attribute values ​​into 3D textures.

[0080] According to the position of the current scene time on the timeline, obtain the attribute body models of the two time nodes close to the moment, and according to the corresponding time of the two time nodes, obtain the position ratio of the current moment between the two time nodes.

[0081] In the attribute body model at the current moment, all the intersection points of all rays with the corresponding mesh model are obtained, the attribute values ​​of the three-dimensional texture of these intersection points at two adjacent time nodes are obtained, and the attribute values ​​are interpolated at the position ratio between the two adjacent time nodes at the current moment to obtain the attribute values ​​of all the intersection points of all rays with the corresponding mesh model at the current moment.

[0082] The color values ​​of all intersection points of each ray and the grid model are superimposed and calculated, and the calculation result is assigned to the color value of the first intersection point of the ray and the grid model. The final color of the first intersection point of each ray and the grid model is rendered, so as to visualize the attribute volume in three dimensions at the current moment.

[0083] The mesh data results constructed in the unified bounding box are rendered using the Cesium front-end to achieve a three-dimensional dynamic change effect, such as Figure 4 shown.

[0084] Among them, the attribute body model of each moment is generated according to the moment of the actual basic data, which is used as the basic model data for dynamic display. The moment with the actual data attribute body model is called a time node. According to the actual data situation, the time nodes can be unevenly distributed over a period of time. The time axis is a continuous line segment connected by multiple time nodes, with infinite time scales in the middle. The spatial range of dynamic visualization is the bounding box range of the attribute body model of all time nodes on the time axis. Subsequent dynamic visualization is simulated by the change of attribute values, and the spatial position does not change. The key to dynamic display is to obtain the time of the current scene and calculate the attribute value based on the current time.

[0085] For example: According to the actual data, there are three time nodes, namely 10:00, 10:10, and 10:20. 10:00 is the starting point of the time axis, and 10:20 is the end point of the time axis.

[0086] The current timeline plays to 10:05, and the two time nodes close to this moment are 10:00 and 10:10. According to the ratio, the ratio of 10:05 between the two time nodes is 0.5.

[0087] Under the unified coordinate reference, the sampling points of all rays of the entire bounding box at 10:05 are obtained according to the set step size to obtain the ijk value of the sampling point.

[0088] According to the obtained ijk values ​​of all sampling points, the attribute values ​​corresponding to the points at the two time nodes 10:00 and 10:10 are obtained, and linear interpolation calculation is performed according to the ratio of 0.5 to obtain the attribute values ​​of each sampling point at 10:05.

[0089] According to the above method, the sampling points of each ray are color-superimposed to obtain the color value of the first intersection point of each ray with the grid model, and the attribute body is rendered and visualized based on this.

[0090] Example 3

[0091] like Figure 5 As shown, the present invention discloses a three-dimensional expression system of an attribute body model, including the following parts.

[0092] The acquisition module is used to acquire the data of the target area and build an attribute body model of the data;

[0093] A processing module is used to generate a grid model, generate a ray starting from the viewpoint, perform superposition calculation on the color values ​​of all intersection points between the ray and the grid model, and assign the calculation result to the color value of the first intersection point between the ray and the grid model;

[0094] The rendering module is used to render the final color of the first intersection point between the ray and the mesh model.

[0095] When used for dynamic expression, the processing module is also used to perform transition linear interpolation on the mesh model at multiple moments within the bounding box.

[0096] Example 4

[0097] A computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the above-mentioned three-dimensional expression method of attribute body model is implemented.

[0098] The present invention can be specifically applied to the process of providing technical support and emergency rescue for nuclear emergency aviation monitoring. By extracting data with spatial, temporal and business characteristics from nuclear emergency big data, an attribute model is constructed. The attribute value includes time and historical, real-time, predicted and other business data. After the method of the present invention is used to perform three-dimensional expression on the nuclear emergency-related attribute values ​​(business data such as historical, real-time or predicted radioactive material concentration), a three-dimensional visualization (dynamic) expression of the attribute data is realized, which meets the requirements of the integration effect of the three dimensions of space, time and business in nuclear emergency aviation monitoring. It is of great significance to enhance the ability of nuclear emergency aviation monitoring to analyze and judge the comprehensive information, formulate and optimize monitoring plans, guide actual emergency response actions and provide technical support for emergency decision-making, and can improve the efficiency of nuclear emergency aviation monitoring technical support, accident analysis and judgment, and guidance of emergency response actions.

[0099] This method is also applicable to visualization of multiple fields based on traditional 3D volume rendering technology, such as business data model visualization in medical CT, geological exploration, meteorological observation and other fields, and can provide more comprehensive, richer and more intuitive 3D dynamic expression.

[0100] The present invention constructs an attribute body model, obtains the XYZ extreme values ​​of the attribute value and constructs a rectangular bounding box grid model, and establishes a mapping of grid coordinates, attribute values ​​and color values. The ray principle and interpolation method are used to obtain the attribute value, color value and coordinates of any point, and the color value of any point on the surface of the attribute body model is weightedly superimposed and re-colored. Therefore, the internal attribute situation can be reflected by the color of the surface, which solves the problem that the three-dimensional external graphics block the internal display, and the internal data can be effectively expressed in the three-dimensional visualization of the attribute data.

Claims

1. A three-dimensional expression method of an attribute body model, characterized in that: The following steps are involved: a. Obtain the spatial data points of the target and record the coordinates of the spatial data points; b. Get the attribute value of the spatial data point coordinates; c. Construct an attribute volume model containing spatial data point coordinates and attribute values; d. Construct a bounding box that can contain all spatial data points with attribute values ​​of the entire attribute volume model, divide the interior of the bounding box into grids to obtain grid data, and thus construct a grid model based on the bounding box; e. Create a mapping relationship between grid coordinate points, attribute values ​​and color values; f. The ray starting from the viewpoint penetrates the bounding box, starting from the first intersection point between the ray and the mesh model, and looping along the ray direction to obtain the attribute value and color value of the intersection point between the ray and the mesh data in the mesh model according to the step length until it exceeds the bounding box range; g. Superimpose the color values ​​of all intersection points between the ray and the grid model, and assign the calculation result to the color value of the first intersection point between the ray and the grid model; The superposition calculation method for the color values ​​of all intersection points of the ray and the grid model is: the superposition calculation is performed by weighted average method according to the attribute value. Assume that the number of intersection points between a ray and the grid model is n, calculate the attribute value V and the corresponding color RGB value of each intersection point, and let the square of the attribute value V of each intersection point as the weight, and calculate the sum of the weights of each intersection point. The calculation formula is: Where: S is the total weight, Vi is the attribute value of the intersection i, and n is the number of intersections; Assume that the color value of the first point of the ray and mesh model is represented by (R, G, B), and the calculation formula is as follows: Where: R, G, B are the three components of RGB values ​​R, G, B respectively, S is the sum of weights, Vi is the attribute value of the intersection i, and n is the number of intersections; h. Render the final color of the first intersection point between the ray and the mesh model.

2. The three-dimensional expression method of attribute body model according to claim 1, characterized in that: In step e, the attribute values ​​of all coordinate points are normalized and mapped to the range of 0-1. The color table uses the imported texture image with texture coordinates of 0-1 to establish the coordinate point, attribute value and texture mapping relationship. The grid model is expressed in color based on pixels. The coordinate value of each pixel is obtained by trilinear interpolation method according to the coordinate values ​​of the surrounding coordinate points, and the corresponding attribute value and color value are mapped.

3. The three-dimensional expression method of attribute body model according to claim 1, characterized in that: In step d, the extreme values ​​of the attribute body model in the three directions of XYZ in the rectangular coordinate system are obtained, and the grid is divided according to the distribution of the XYZ coordinate points to obtain grid data. The grid data consists of the origin coordinates, the grid size, the grid coordinates of each independent point, and the attribute value of each independent point; each grid size is the same and has an attribute value; a rectangular bounding box is constructed according to the extreme values ​​of the grid coordinates of all independent points.

4. The three-dimensional expression method of attribute body model according to claim 1, characterized in that: In step d, a one-dimensional array is created, and the coordinates of each grid in the grid model based on the bounding box are mapped to the created one-dimensional array, and the attribute value of the grid is recorded at the corresponding position in the one-dimensional array.

5. The three-dimensional expression method of attribute body model according to claim 1, characterized in that: Also includes the steps: i. Optimize model edge rendering results.

6. The three-dimensional expression method of attribute body model according to claim 1, characterized in that: Dynamic expression is performed by performing transition linear interpolation on the mesh model at multiple moments within the bounding box.

7. The three-dimensional expression method of attribute body model according to claim 6, characterized in that: The specific steps include: Get the attribute volume model of each time node of the actual data, and create a time period that can include all time nodes, calculate the maximum bounding box based on the spatial position of the points with attribute values ​​at all times, and convert the attribute values ​​into 3D textures; According to the position of the current scene time on the time axis, obtain the attribute body model of the two time nodes close to the moment, and according to the corresponding time of the two time nodes, obtain the position ratio of the current moment between the two time nodes; Obtain all intersection points of all rays and corresponding mesh models in the attribute volume model at the current moment, obtain the attribute values ​​of the three-dimensional texture of these intersection points at two adjacent time nodes, and interpolate the attribute values ​​at the position ratio between the two adjacent time nodes at the current moment to obtain the attribute values ​​of all intersection points of all rays and corresponding mesh models at the current moment; The color values ​​of all intersection points of each ray and the grid model are superimposed and calculated, and the calculation result is assigned to the color value of the first intersection point of the ray and the grid model. The final color of the first intersection point of each ray and the grid model is rendered, so as to visualize the attribute volume in three dimensions at the current moment.

8. A three-dimensional expression system of an attribute body model, characterized in that: include The acquisition module is used to acquire the data of the target area and build an attribute body model of the data; Processing module for Generate a grid model, construct a bounding box that can contain all spatial data points with attribute values ​​of the entire attribute volume model, divide the bounding box into grids to obtain grid data, and thus construct a grid model based on the bounding box; Create a mapping relationship between grid coordinate points, attribute values ​​and color values; Generate a ray starting from the viewpoint, the ray starting from the viewpoint penetrates the bounding box, starting from the first intersection point of the ray and the mesh model, and looping along the ray direction according to the step length to obtain the attribute value and color value of the intersection point between the ray and the mesh data in the mesh model until it exceeds the bounding box range; The color values ​​of all intersection points between the ray and the grid model are superimposed and calculated, and the calculation result is assigned to the color value of the first intersection point between the ray and the grid model; the superimposed calculation method for the color values ​​of all intersection points between the ray and the grid model is: the superimposed calculation is performed by weighted average method according to attribute value, assuming that the number of intersection points between a certain ray and the grid model is n, the attribute value V and the corresponding color RGB value of each intersection are calculated, and the square of the attribute value V of each intersection is used as the weight to calculate the sum of the weights of each intersection. The calculation formula is: Where: S is the total weight, Vi is the attribute value of the intersection i, and n is the number of intersections; Assume that the color value of the first point of the ray and mesh model is represented by (R, G, B), and the calculation formula is as follows: Where: R, G, B are the three components of RGB values ​​R, G, B respectively, S is the sum of weights, Vi is the attribute value of the intersection i, and n is the number of intersections; The rendering module is used to render the final color of the first intersection point between the ray and the mesh model.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Multi-earthquake-attribution-fused texture mapping body drawing method based on nontransparency weighing

    CN102903141A

  • 3-D geological reserve estimation method of ore deposit

    CN109255834A