CN110349267B - Method and device for constructing three-dimensional heat model - Google Patents

Method and device for constructing three-dimensional heat model Download PDF

Info

Publication number
CN110349267B
CN110349267B CN201910492809.3A CN201910492809A CN110349267B CN 110349267 B CN110349267 B CN 110349267B CN 201910492809 A CN201910492809 A CN 201910492809A CN 110349267 B CN110349267 B CN 110349267B
Authority
CN
China
Prior art keywords
dimensional
data
dimensional coordinate
rendering
planar
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910492809.3A
Other languages
Chinese (zh)
Other versions
CN110349267A (en
Inventor
倪朝浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201910492809.3A priority Critical patent/CN110349267B/en
Publication of CN110349267A publication Critical patent/CN110349267A/en
Application granted granted Critical
Publication of CN110349267B publication Critical patent/CN110349267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a method and a device for constructing a three-dimensional heat model, wherein the method for constructing the three-dimensional heat model comprises the following steps: acquiring two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data; performing gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data; determining height data corresponding to each plane grid unit in the plane grid in a three-dimensional coordinate space according to the heat data; and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension. By the method for constructing the three-dimensional heat model, the corresponding three-dimensional heat model can be constructed for the non-uniform data in the three-dimensional coordinate space, so that the constructed three-dimensional heat model corresponding to the non-uniform data can reflect the heat condition of the service dimension through the longitudinal dimension.

Description

Method and device for constructing three-dimensional heat model
Technical Field
The application relates to the technical field of computers, in particular to a method for constructing a three-dimensional heat model. The application also relates to a device for constructing the three-dimensional heat model, a computing device and a computer readable storage medium.
Background
With the development of internet technology, the application of statistics, whether live or working, can be applied frequently; in the process of performing statistical work, in order to observe the statistical information more intuitively, different statistical graphs are usually selected according to the type of the statistical work to display the statistical information.
In the prior art, frequently applied statistical charts comprise a three-dimensional column chart, a three-dimensional scatter diagram and a plane thermodynamic diagram; the application scenes of the three-dimensional bar graph are limited, and the three-dimensional bar graph can only be applied to scenes with uniform data statistics, although the three-dimensional scatter graph can be applied to scenes with non-uniform data statistics, the drawn three-dimensional scatter graph lacks depth perception, independent data are difficult to distinguish if the data are distributed densely, and the data volume of the data cannot be visually expressed in the longitudinal dimension in the process of data statistics of the planar thermodynamic diagram. The statistical chart in the prior art can only count uniform data, even if the non-uniform data is counted, the displayed statistical chart effect is not good, the statistical chart of the non-uniform data is displayed in a three-dimensional space, and the displayed statistical chart effect is not visual enough, so that an effective solution is not provided at present.
Disclosure of Invention
In view of this, the embodiment of the present application provides a method for constructing a three-dimensional heat model. The application also relates to a device for constructing the three-dimensional heat model, a computing device and a computer readable storage medium, which are used for solving the technical defects in the prior art.
According to a first aspect of the embodiments of the present application, there is provided a method for constructing a three-dimensional heat model, including:
acquiring two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data;
performing gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
determining height data corresponding to each plane grid unit in the plane grid in a three-dimensional coordinate space according to the heat data;
and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension.
Optionally, the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid units corresponding to the two-dimensional coordinate data includes:
performing meshing processing on the two-dimensional data through a triangulation algorithm to obtain a plane triangular mesh unit corresponding to the two-dimensional coordinate data;
and generating the plane mesh according to the plane triangular mesh unit.
Optionally, the determining, according to the heat data, height data corresponding to each planar grid unit in the planar grid in a three-dimensional coordinate space includes:
converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to planar grid units contained in the planar grid to obtain three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid unit;
determining the height data corresponding to each planar grid cell in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space.
Optionally, the substep of determining the corresponding height data of each planar grid cell in the three-dimensional coordinate space based on the three-dimensional coordinate data of each planar grid cell mapped in the three-dimensional coordinate space includes:
determining a three-dimensional grid unit of each planar grid unit in the three-dimensional coordinate space according to three-dimensional coordinate data mapped by each planar grid unit in the three-dimensional coordinate space;
determining the height data for each planar grid cell in the three-dimensional coordinate space based on the three-dimensional grid cell of each planar grid cell in the three-dimensional coordinate space.
Optionally, before the step of selecting the planar grid and constructing the three-dimensional heat model of the service dimension by calling a blueprint processing interface is executed, the method further includes:
determining index data of each planar grid cell in the planar grid;
correspondingly, the step of selecting the planar grid and the height data by calling a blueprint processing interface to construct the three-dimensional heat model of the service dimension comprises the following steps:
and selecting index data of each plane grid unit and the corresponding height data of each plane grid in the three-dimensional coordinate space by calling a blueprint function contained in the blueprint processing interface to construct the three-dimensional heat model.
Optionally, the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid units corresponding to the two-dimensional coordinate data includes:
determining a two-dimensional coordinate point corresponding to the two-dimensional coordinate data in a two-dimensional coordinate space;
determining a polygon to which a planar mesh unit forming the planar mesh belongs according to a gridding rule;
connecting adjacent two-dimensional coordinate points end to end according to the polygon of the planar grid unit, and determining the planar grid unit in the two-dimensional coordinate space;
and generating the plane grid in the two-dimensional coordinate space according to the plane grid unit.
Optionally, after the step of selecting the planar grid and constructing the three-dimensional heat model of the service dimension by calling a blueprint processing interface is executed, the method further includes:
determining coordinate height data of a node of each planar grid unit in the three-dimensional coordinate space according to corresponding height data of each planar grid unit in the planar grid in the three-dimensional coordinate space;
setting corresponding rendering colors for the coordinate height data, and generating a texture map based on the coordinate height data of the set rendering colors and the two-dimensional coordinate data corresponding to the nodes of each planar grid unit;
and adding rendering colors to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model added with the rendering colors to obtain a three-dimensional heat map of the service dimension.
Optionally, the adding a rendering color to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
sorting the texture map and the three-dimensional heat model according to the two-dimensional coordinate data;
adding rendering colors to the three-dimensional heat model according to the arrangement sequence of the texture map and the three-dimensional heat model through an orthogonal camera;
rendering the three-dimensional heat model added with the rendering color to obtain the three-dimensional heat map.
Optionally, after the step of selecting the planar grid and constructing the three-dimensional heat model of the business dimension by calling a blueprint processing interface is executed, the method further includes:
determining a plurality of division areas corresponding to the height data by dividing the height data;
setting rendering colors among a plurality of division areas corresponding to the height data, and respectively determining the rendering colors corresponding to each division area;
and adding rendering dyeing to the three-dimensional heat model based on the rendering color corresponding to each division region, and rendering the three-dimensional heat model added with the rendering color to obtain a three-dimensional heat map of the service dimension.
Optionally, after the step of selecting the planar grid and constructing the three-dimensional heat model of the service dimension by calling a blueprint processing interface is executed, the method further includes:
creating a height data set according to corresponding height data of each plane grid unit in the plane grid in a three-dimensional coordinate space;
removing the height data set to obtain an optimal height data set;
determining a rendering color corresponding to each height data in the optimal height data set;
and adding rendering colors corresponding to each height data to the three-dimensional heat model, and rendering the three-dimensional heat model based on the rendering colors added to obtain a three-dimensional heat map of the service dimension.
Optionally, before the step of adding a rendering color to the three-dimensional heat model through the texture map and rendering the three-dimensional heat model with the rendering color added to obtain the three-dimensional heat map of the service dimension is executed, the method further includes:
determining height data of each grid node according to heat data corresponding to two-dimensional coordinate data of each grid node contained in the planar grid;
determining three-dimensional coordinate data of each grid node in the three-dimensional coordinate space based on the two-dimensional coordinate data of each grid node and the height data of each grid node;
determining a modified geometric body with the same number as the grid nodes contained in the plane grid according to the three-dimensional coordinate data;
correspondingly, the adding a rendering color to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
adding rendering colors to the three-dimensional heat model through the texture map, and adding the modified geometric body into the three-dimensional heat model according to the three-dimensional coordinate data;
rendering the three-dimensional heat model added with the modified geometry and the rendering color to obtain the three-dimensional heat map.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for constructing a three-dimensional heat model, including:
the data acquisition module is configured to acquire two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data;
the gridding processing module is configured to perform gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
a determining data module configured to determine height data corresponding to each planar grid cell in the planar grid in a three-dimensional coordinate space according to the heat data;
a build model module configured to build a three-dimensional heat model of the business dimension by selecting the planar mesh and the height data by calling a blueprint processing interface.
Optionally, the apparatus further comprises:
a coordinate height data determining module configured to determine coordinate height data of a node of each planar grid cell in the three-dimensional coordinate space according to corresponding height data of each planar grid cell in the planar grid in the three-dimensional coordinate space;
a texture map generation module configured to set a corresponding rendering color for the coordinate height data, and generate a texture map based on the coordinate height data with the rendering color set and two-dimensional coordinate data corresponding to the node of each planar grid cell;
and the rendering module is configured to add rendering colors to the three-dimensional heat model through the texture map, render the three-dimensional heat model with the added rendering colors and obtain a three-dimensional heat map of the service dimension.
According to a third aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory to store computer-executable instructions, the processor to execute the computer-executable instructions:
acquiring two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data;
performing gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
determining height data corresponding to each plane grid unit in the plane grid in a three-dimensional coordinate space according to the heat data;
and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement any one of the steps of the method for constructing a three-dimensional heat model.
According to the construction method of the three-dimensional heat model, the plane grid composed of the plane grid units is constructed by acquiring the two-dimensional coordinate data of the service dimension, the heat data corresponding to the two-dimensional coordinate data of the service dimension is acquired, the height data of the plane grid units in the three-dimensional coordinate space is determined, the three-dimensional heat model of the service dimension is constructed according to the height data and the plane grid, and the three-dimensional heat model of the service dimension is constructed in the three-dimensional coordinate space.
Drawings
FIG. 1 is a flow chart of a method for constructing a three-dimensional heat model according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a three-dimensional heat model according to an embodiment of the present application;
FIG. 3 is a process flow diagram of a process for constructing a three-dimensional heat model according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a three-dimensional heat map provided by an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for constructing a three-dimensional heat model according to an embodiment of the present application;
fig. 6 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
The illusion engine: (Unreal Engine) an open-source game Engine, the illusion Engine has the characteristics of supporting all current pixel-based illumination and rendering technologies, having a strong material system, enabling an art designer to establish any complex real-time Shader (coloring program) in a real-time graphical interface, and enabling the art designer to establish a terrain through a basic height map capable of dynamic deformation; the non-uniform data are subjected to three-dimensional visualization through the illusion engine, and the data are converted into a three-dimensional heat map.
Three-dimensional visualization: and rendering the data into a three-dimensional scene in real time after the data are transformed into the graphic attributes.
The present application provides a method for constructing a three-dimensional heat model, and relates to an apparatus for constructing a three-dimensional heat model, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
The construction method of the three-dimensional heat model provided by the application is described with reference to fig. 1 and 2.
Referring to fig. 1 and 2, fig. 1 is a flow chart illustrating a method for constructing a three-dimensional heat model according to an embodiment of the present application, and fig. 2 is a schematic structural diagram illustrating a three-dimensional heat model according to an embodiment of the present application; where fig. 2 includes fig. 2 (a) and 2 (b), fig. 1 includes steps 102 through 108.
Step 102: and acquiring two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data.
In an implementation of the present application, the service dimension refers to that in the method for constructing the three-dimensional heat model, a process of constructing the three-dimensional heat model is performed in the same service dimension, and the constructed three-dimensional heat model is used for reflecting a distribution situation of heat data in the same service dimension; the business dimension can be used for counting the population distribution in a certain city, can be used for counting the age distribution of the browser in a certain website, and can be used for counting the income distribution of each department in a certain enterprise.
The method for constructing the three-dimensional heat model is described by taking the service dimension as the statistic of population distribution in a certain city, wherein the two-dimensional coordinate data of the service dimension can be the longitude and the latitude of the city, and the heat data corresponding to the two-dimensional coordinate data is the population number at each longitude and latitude.
Based on this, under the condition of counting the population distribution in the service dimension, a statistical graph for counting the population distribution in the service dimension can be determined according to the attribute information of the service dimension, and the statistical graph can be drawn according to the determined statistical graph and the population distribution corresponding to the service dimension, so that the specific distribution condition of the population in the service dimension can be specifically known according to the drawn statistical graph.
In the construction method of the three-dimensional heat model, in order to more intuitively embody the distribution condition of the distributed uniform data in the three-dimensional coordinate space, the planar grid consisting of the planar grid units corresponding to the two-dimensional coordinate data can be obtained by acquiring the two-dimensional coordinate data of the business dimension and the heat data and performing gridding processing on the two-dimensional coordinate data, the coordinate distribution condition of the business dimension in the two-dimensional coordinate space can be determined according to the two-dimensional coordinate data corresponding to the business dimension, the height data of the planar grid units in the three-dimensional coordinate space can be determined according to the height data, the three-dimensional heat model is constructed through a blueprint processing interface based on the height data and the planar grid, the specific distribution condition of the heat data of the business dimension is constructed in the three-dimensional coordinate space through a phantom engine, and the heat condition of each type of data of the business can be embodied according to the longitudinal height of the constructed three-dimensional heat model, so that a user who views the business can visually understand the change condition and the change trend of the business data among the longitudinal height of the three-dimensional heat model.
Specifically, under the condition that a three-dimensional heat statistical graph needs to be drawn on the data of the service dimensions, two-dimensional coordinate data needed for drawing the three-dimensional heat statistical graph and heat data of each two-dimensional coordinate data in the service dimensions are obtained.
For example, the service dimension is the population distribution situation of each area in the statistical first city, a corresponding three-dimensional heat map is drawn, each area in the first city is determined as an area, each area is divided into a plurality of small areas according to a set dividing mode, the center of the first city is used as the origin of a two-dimensional coordinate, the coordinate point of each small area in the two-dimensional coordinate is determined, the coordinate point of each small area is the two-dimensional coordinate data of the statistical population distribution situation, otherwise, the two-dimensional coordinate data is represented as the coordinate point of each area in the map, and the population number contained in each small area is the heat data in the statistical population distribution situation.
Step 104: and carrying out gridding processing on the two-dimensional coordinate data to obtain a plane grid consisting of plane grid units corresponding to the two-dimensional coordinate data.
Specifically, on the basis of obtaining the two-dimensional coordinate data of the service dimension and the two-dimensional coordinate data, the two-dimensional coordinate data is further subjected to gridding processing to obtain a planar grid unit formed by the two-dimensional coordinate data, and then the planar grid is formed by all the planar grid units.
In specific implementation, the gridding process is to determine two-dimensional coordinate points corresponding to each two-dimensional coordinate data according to the two-dimensional coordinate data, connect each two-dimensional coordinate point according to the polygon of the planar grid unit, so as to obtain a plurality of planar grid units formed by the two-dimensional coordinate points, and the planar grid units share one edge and the same point, so as to form a planar grid, wherein the planar grid units can be polygons such as a triangle, a quadrangle, or a pentagon, the formed screen slow grid is formed by polygons such as a triangle, a quadrangle, or a pentagon, and only one polygon is formed in one planar grid.
On the basis of obtaining the planar mesh, further, in one or more embodiments of this embodiment, the planar mesh may be composed of one type of polygon, and the specific implementation manner is as follows:
determining a two-dimensional coordinate point corresponding to the two-dimensional coordinate data in a two-dimensional coordinate space;
determining a polygon to which a planar mesh unit forming the planar mesh belongs according to a gridding rule;
connecting adjacent two-dimensional coordinate points end to end according to the polygon of the planar grid unit, and determining the planar grid unit in the two-dimensional coordinate space;
and generating the plane grid in the two-dimensional coordinate space according to the plane grid unit.
Specifically, first, two-dimensional coordinate points corresponding to the acquired two-dimensional coordinate data are determined in a two-dimensional coordinate space, and polygons to which planar grid cells constituting the planar grid belong are determined according to the meshing rule, where the meshing rule specifies a polygon to which planar grid cells constituting the planar grid belong; and determining the polygons which form the planar grid units, connecting adjacent two-dimensional coordinate points to form a plurality of polygons which are the same as the polygons which form the planar grid units, and forming the planar grid by using the plurality of polygons.
For example, the two-dimensional coordinate data corresponds to 4 two-dimensional coordinate points, the gridding rule is a triangle to which the planar grid unit belongs, 4 triangles with 4 coordinate points as vertexes can be obtained by connecting the 4 coordinate points, the 4 triangles share two sides, two triangles sharing the same side are selected as the planar grid unit, and a quadrangle formed by the two triangles is the planar grid formed by the planar grid units corresponding to the two-dimensional coordinate data.
In addition, when the gridding rule is a quadrangle to which the planar grid unit belongs, four adjacent two-dimensional coordinate points are connected to form a quadrangle, and when the next quadrangle is connected, one side of the obtained quadrangle is required to be used as the side of the next quadrangle, so that the planar grid formed by the planar grid unit is ensured to be formed by a plurality of quadrangles; in the case that the gridding rule is a pentagon to which the planar grid unit belongs, the process is similar to the process of forming the planar grid by using the quadrilateral planar grid unit, and the description is omitted here.
On the basis of obtaining the planar mesh, further, in one or more embodiments of this embodiment, planar mesh units may be obtained through a triangulation algorithm, and then the planar mesh is composed of the obtained planar mesh units, which is specifically implemented as follows:
performing meshing processing on the two-dimensional data through a triangulation algorithm to obtain a plane triangular mesh unit corresponding to the two-dimensional coordinate data;
and generating the plane mesh according to the plane triangular mesh unit.
Specifically, the two-dimensional coordinate data of the service dimension is subjected to meshing processing through the triangulation algorithm, the obtained planar mesh unit is a triangle, namely the planar triangular mesh unit, and the planar mesh is generated according to the obtained planar triangular mesh unit.
Performing gridding processing on the two-dimensional coordinate data through the triangulation algorithm (also called Delaunay triangulation), wherein two important criteria need to be met; first, the empty circle characteristic: in the two-dimensional coordinate points corresponding to the two-dimensional coordinate data, the formed Delaunay triangulation network is unique (namely any four points cannot be in a common circle), and no other points exist in the range of the circumscribed circle of any triangle in the Delaunay triangulation network; secondly, the minimum angle characteristic is maximized, in the triangulation formed by the Delaunay triangulation in the two-dimensional coordinate points corresponding to the two-dimensional coordinate data, the minimum angle of the triangle formed by the Delaunay triangulation is the largest, namely the triangle is the planar grid which is closest to regularization in the Delaunay triangulation, specifically the diagonal of the convex quadrangle formed by two adjacent triangles, and after mutual exchange, the minimum angles of the six interior angles are not increased.
The triangulation algorithm is adopted to conduct gridding processing on the two-dimensional coordinate data, the formed plane mesh is formed by plane triangular mesh units and generated to be a progressive mesh, a three-dimensional heat model constructed subsequently can have regularity and uniqueness according to the characteristics of the triangulation algorithm, and a three-dimensional heat map generated through an illusion engine is good in display effect.
Step 106: and determining corresponding height data of each plane grid unit in the plane grid in a three-dimensional coordinate space according to the heat data.
Specifically, on the basis of obtaining the planar grid formed by the planar grid units corresponding to the two-dimensional coordinate data, further, the planar grid is formed by the planar grid corresponding to the two-dimensional coordinate data, each two-dimensional coordinate data corresponds to heat data, and then height data of each planar grid unit in the planar grid in a three-dimensional coordinate space is determined according to the heat data of each two-dimensional coordinate.
The height data is a longitudinal height value of the heat data in a three-dimensional coordinate, for example, when the heat data is the number of people in each location, 50 people exist at the location a, the two-dimensional coordinate data of the location a corresponds to a coordinate point (3,3), each unit in the three-dimensional coordinate space represents 10 people, then the height data of the location a in the three-dimensional coordinate space is 5, and the corresponding three-dimensional coordinate point is (3,3,5).
On the basis of determining the height data of each planar grid cell, further, in one or more implementations of this embodiment, a specific determination process of the height data is as follows:
converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to planar grid units contained in the planar grid to obtain three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid unit;
determining the height data corresponding to each planar grid cell in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space.
Specifically, three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid cell is obtained by converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to the planar grid cells included in the planar grid, for example, if a coordinate point corresponding to the two-dimensional coordinate data is (1,1), the coordinate point is converted into three-dimensional coordinate data in the three-dimensional coordinate space as (1,1,0), where x-axis and y-axis coordinates are kept unchanged, when the coordinate point is converted into the three-dimensional coordinate space, a z-axis coordinate is added, the z-axis coordinate is determined as a default value of 0, and if the heat data corresponding to the (1,1) coordinate point is converted into coordinate data, where the heat data of the point is 1, the z-axis value in the three-dimensional coordinate space is converted into 1, the coordinate point in the three-dimensional coordinate space is (1,1,1), where the coordinate point is three-dimensional coordinate data, and the z-axis value is the three-dimensional coordinate data in the coordinate space.
In addition, on the basis of determining the height data corresponding to each planar grid cell in the three-dimensional coordinate space according to the three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space, further, in one or more embodiments of this embodiment, it is necessary to determine the three-dimensional grid cell in the three-dimensional coordinate space first, and then determine the height data of each planar grid cell, and a specific implementation manner is as follows:
determining a three-dimensional grid unit of each planar grid unit in the three-dimensional coordinate space according to three-dimensional coordinate data mapped by each planar grid unit in the three-dimensional coordinate space;
determining the height data for each planar grid cell in the three-dimensional coordinate space based on the three-dimensional grid cell of each planar grid cell in the three-dimensional coordinate space.
Specifically, three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid unit is determined, a three-dimensional grid unit in the three-dimensional coordinate space by each planar grid unit is determined, and the corresponding height data of each planar grid unit in the three-dimensional coordinate space is determined according to the three-dimensional grid unit in the three-dimensional coordinate space by each planar grid unit.
In practical applications, taking planar grid cells as triangles, and the coordinate points corresponding to the two-dimensional coordinate data of each vertex of the triangle are a (0,1), B (0,0) and C (1,0), and the thermal data corresponding to each two-dimensional coordinate data is a 10, B20 and C30, for example, the height data of each planar grid cell is determined in a three-dimensional coordinate space, where in the three-dimensional coordinate space, the coordinate points corresponding to the two-dimensional coordinate data a, B and C in the three-dimensional coordinate space are A1 (0,1,1), B1 (0,0,2) and C1 (1,0,3), respectively, and according to the three-dimensional coordinates of A1, B1 and C1 in the three-dimensional coordinate space, a slope A1B1C1 is determined to be formed in the three-dimensional coordinate space, and the slope A1B1C1 has a relationship with the planar coordinate data in the two-dimensional coordinate space, namely, ABC 1 in the three-dimensional coordinate space, ABC 1 and ABC 1 in the three-dimensional coordinate space, and the height data of the slope A1 and C1 in the three-dimensional coordinate space.
In specific implementation, under the condition that the inclined plane corresponding to each plane grid unit is determined in the three-dimensional coordinate space, because the plane grid units share the same edge, the inclined planes determined by each plane grid unit in the three-dimensional coordinate space are mutually connected, and because the height data are inconsistent, a three-dimensional grid frame with wave vision is spliced.
According to the heat data of each planar grid unit and the vertex two-dimensional coordinate data of each grid unit, the three-dimensional coordinate data of each vertex of each grid unit in the three-dimensional coordinate space can be determined in the three-dimensional coordinate space, so that the inclined plane having a mapping relation with each planar grid unit can be determined in the three-dimensional coordinate space, a basic frame can be provided for subsequently constructing the three-dimensional heat model, and the construction efficiency of constructing the three-dimensional heat model is improved to a great extent.
Step 108: and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension.
Specifically, on the basis of determining the height data of each planar grid cell in the planar grid according to the heat data, further, according to the obtained height data of each planar grid cell in the planar grid and the planar grid, a three-dimensional heat model of the service dimension is constructed through a blueprint processing interface in an illusion engine; wherein the three-dimensional heat model is a frame of a three-dimensional heat map to be rendered, having exhibited the outline of the business dimension in a three-dimensional coordinate space.
The blueprint processing interface is a blueprint visualization system in an illusion engine and is a finished game script system, height data corresponding to each two-dimensional coordinate data and a plane grid formed by the two-dimensional coordinate data are connected together through the blueprint processing interface, a three-dimensional heat model of the service dimension can be created, and the principle of the method is that a function for constructing the three-dimensional heat model, variables generated in the construction process and events for constructing the three-dimensional heat model are linked, so that the three-dimensional heat model is constructed.
Based on this, the blueprint processing interface comprises a blueprint function library, and in the process of selecting the planar grid and the height data to construct the three-dimensional heat model, functions in the blueprint function library can be called to be directly multiplexed, so that the three-dimensional heat model can be constructed.
Before the three-dimensional heat model is constructed, in one or more embodiments of this embodiment, in order to make the efficiency of constructing the three-dimensional heat model by the blueprint processing interface faster, the index data of each planar grid unit may be determined, so as to reduce the transmission of data volume and speed up the efficiency of constructing the three-dimensional heat model, and a specific implementation manner is as follows:
determining index data of each planar grid cell in the planar grid;
in the case of determining the index data, executing step 108 to select the planar grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension; correspondingly, the blueprint processing interface determines the planar grid units through the index data, and the three-dimensional heat model is constructed in step 108, specifically, the index data of each planar grid unit and the corresponding height data of each planar grid in the three-dimensional coordinate space are selected through calling a blueprint function contained in the blueprint processing interface to construct the three-dimensional heat model.
Specifically, the index data of each planar grid unit in the planar grid is determined, the blueprint processing interface determines the planar grid unit of each index data through the index data, and when the three-dimensional heat model is constructed, the planar grid unit corresponding to the index data is obtained through the index data, and the three-dimensional heat model is constructed through the height data corresponding to each planar grid unit.
In the process of constructing the three-dimensional heat model, in order to improve the working efficiency of the blueprint processing interface by selecting the plane grids and the height data, corresponding index data is respectively determined for each plane grid in the plane grids, and each index data is unique, so that the data corresponding to each plane grid unit is determined only through the index data, the data quantity selected by the blueprint processing interface is reduced, when the three-dimensional heat model is constructed, the plane grids composed of each plane grid unit can be obtained through the index data, then the three-dimensional heat model is constructed based on the height data, and the construction efficiency of the three-dimensional heat model is improved to a great extent through determining the index data of each plane grid unit.
On the basis of the above construction of the three-dimensional heat model, further, in one or more embodiments of this embodiment, a three-dimensional heat map that can be displayed is obtained by rendering the three-dimensional heat model, and a specific implementation manner is as follows:
determining coordinate height data of a node of each planar grid unit in the three-dimensional coordinate space according to corresponding height data of each planar grid unit in the planar grid in the three-dimensional coordinate space;
setting corresponding rendering colors for the coordinate height data, and generating a texture map based on the coordinate height data of the set rendering colors and the two-dimensional coordinate data corresponding to the nodes of each planar grid unit;
and adding rendering colors to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model added with the rendering colors to obtain a three-dimensional heat map of the service dimension.
Specifically, coordinate height data of a node of each planar grid unit in the three-dimensional coordinate space is determined according to height data of the planar grid unit in the three-dimensional coordinate space; for example, the height data of the planar grid unit is an inclined plane constructed by three-dimensional coordinate points A2, B2, and C2, the value of the z-axis corresponding to the three-dimensional coordinate points A2, B2, and C2 is coordinate height data of the planar grid unit, and a corresponding rendering color is set for the coordinate height data, specifically, a corresponding rendering color is set for the coordinate height data of the node of each planar grid unit, or a corresponding rendering color is set for a plane constructed by a plurality of three-dimensional coordinate points corresponding to a plurality of coordinate height data;
based on this, different rendering colors are set for different coordinate height data, for example, the height data corresponding to the slopes formed by three points A2, B2 and C2 are different from the height data corresponding to the slopes formed by three points A3, B3 and C3, and then the coordinate height data are also different, in the process of setting colors according to the coordinate height data, different colors can be set for the two planes, and a texture map is generated according to the set rendering color coordinate height data and the two-dimensional coordinate data corresponding to the node of each plane grid unit; the texture map is specifically a grid map which is the same as the planar grid, and the rendering color which should be set by each planar grid unit in the texture map is determined based on the height data of each planar grid unit, namely the coordinate height data of the node of each planar grid unit, and the texture map which is obtained at this time can be a texture map which is composed of cubes with rendering colors and has the same area as the planar grid, or can be a texture map which is composed of planar grid units with rendering colors and has the same area as the planar grid;
and adding rendering colors to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model added with the rendering colors to obtain the three-dimensional heat map of the service dimension.
On the basis of adding a rendering color to the three-dimensional heat model through the texture map, further, in one or more embodiments of this embodiment, in the process of adding the rendering color, in order to ensure that the added rendering color is correctly added to the three-dimensional heat model, the addition may be performed according to a corresponding relationship of two-dimensional coordinate data, and a specific implementation manner is as follows:
sorting the texture map and the three-dimensional heat model according to the two-dimensional coordinate data;
adding rendering colors to the three-dimensional heat model according to the arrangement sequence of the texture map and the three-dimensional heat model through an orthogonal camera;
rendering the three-dimensional heat model added with the rendering color to obtain the three-dimensional heat map.
Specifically, since the texture map is generated based on the two-dimensional coordinates of the planar grid cells, the texture map corresponds to the coordinates of the three-dimensional heat model one-to-one, for example, if a three-dimensional coordinate point in the three-dimensional heat model is (1,1,1), the coordinate point corresponding to the three-dimensional heat model in the texture map is (1, z), where z is the distance from the texture map to the lowest position of the three-dimensional heat model, the texture map is placed directly above the three-dimensional heat model, the coordinates are in one-to-one correspondence, a rendering color is added to the three-dimensional heat model through an orthogonal camera, it is determined that each three-dimensional grid cell of the three-dimensional heat model has a color, and the three-dimensional heat model with the rendering color added is rendered to obtain the three-dimensional heat map.
For example, as shown in fig. 2, fig. 2 (a) shows a three-dimensional heat model of a service dimension in a three-dimensional coordinate space, a texture map is generated through height data corresponding to the three-dimensional heat model and a planar grid unit for constructing the three-dimensional heat model, the texture map and the three-dimensional heat model are placed in the manner shown in fig. 2 (a), the color of each grid in the texture map is set according to the height data, then a rendering color is added to the three-dimensional heat model from top to bottom through an orthogonal camera, the three-dimensional heat model with the rendering color added is rendered, a three-dimensional heat map is generated, and the generated three-dimensional heat map is shown in fig. 2 (b), wherein the color corresponding to the texture map at the highest position of a peak of the three-dimensional heat map is red, the color corresponding to the texture map at the highest position of only a position lower than the peak of the three-dimensional heat map is orange, and the color corresponding to the texture map at the lowest position of a trough of the valley of the three-dimensional heat map is blue.
In addition, in the embodiment, the rendering color is added to the wire frame of the three-dimensional heat model, the generated three-dimensional heat map also represents the data change of the service dimension on the line, and the rendering color can be added to the area enclosed by the wire frame of the three-dimensional heat model, so that the displayed data display effect of the three-dimensional heat map on the service dimension is more visual.
The data of the business dimension is converted into the three-dimensional heat map in the three-dimensional space, so that the change condition and the change trend of the data of the business dimension can be embodied through the three-dimensional heat map, the generated heat map is a three-dimensional visual heat map, and the difference between the data peak and the trough of the business dimension can be known through the depth of the three-dimensional heat map, so that the visual perception is better.
On the basis of the texture map generation, in one or more embodiments of this embodiment, in order to improve the display effect of the displayed three-dimensional heat map, a modifier may be added to the three-dimensional heat map, and specific implementation manners are as follows:
determining height data of each grid node according to heat data corresponding to two-dimensional coordinate data of each grid node contained in the planar grid;
determining three-dimensional coordinate data of each grid node in the three-dimensional coordinate space based on the two-dimensional coordinate data of each grid node and the height data of each grid node;
determining a modified geometric body with the same number as the grid nodes contained in the plane grid according to the three-dimensional coordinate data;
correspondingly, according to the determined modified geometric body, executing the step of adding rendering colors to the three-dimensional heat model through the texture map, rendering the three-dimensional heat model with the added rendering colors, and obtaining the three-dimensional heat map of the service dimension, wherein the step specifically refers to the step of adding rendering colors to the three-dimensional heat model through the texture map, and adding the modified geometric body into the three-dimensional heat model according to the three-dimensional coordinate data;
rendering the three-dimensional heat model added with the modified geometry and the rendering color to obtain the three-dimensional heat map.
Specifically, two-dimensional coordinate data of each planar grid unit node is determined through the node of each planar grid unit in the planar grid, heat data of each grid node is determined according to the two-dimensional coordinate data, three-dimensional coordinate data of each grid node in the three-dimensional coordinate space is determined based on the heat data and the two-dimensional coordinate data of each grid node, three-dimensional coordinate points of each grid node are determined based on the three-dimensional coordinate data, and a modified geometric body is generated at each three-dimensional coordinate point, wherein the modified geometric body can be in a spherical shape, a cubic shape, a triangular cone shape and other spatial geometric shapes; and rendering the three-dimensional heat model added with the modified geometry and rendering colors to generate a three-dimensional heat map with the modified geometry and colors by adding the modified geometry generated by each grid node in the three-dimensional coordinate space to the three-dimensional heat model so that each node in the three-dimensional heat model has the modified geometry.
Based on this, the process of adding the modified geometry can generate Mesh geometry (modified geometry) through a Hierarchical instance Static Mesh Component in the illusion engine, and then place each Mesh geometry in the three-dimensional heat model through an adding instance Component in the illusion engine; the method comprises the steps of inputting coordinate data of each Mesh geometry into the Hierarchical instruction Static Mesh Component, and realizing the placement of each Mesh geometry on the three-dimensional heat model through function lifting of Addinlance, wherein the Hierarchical instruction Static Mesh Component specifically creates corresponding three-dimensional coordinate data (Xi, yi, zi) according to the two-dimensional coordinate data (Xi, yi) and the heat data Zi corresponding to the two-dimensional coordinate data, and then generates the Mesh geometry according to the three-dimensional coordinate data (Xi, yi, zi).
By adding the modified geometry (mesh geometry) to the three-dimensional heat model, the rendered three-dimensional heat map is better in display effect, and the concrete condition of the service dimension data in the three-dimensional coordinate space can be more obviously embodied.
On the basis of the above construction of the three-dimensional heat model, further, in one or more embodiments of this embodiment, the height data may be partitioned into partitions, a rendering color is set for each partitioned partition and added to the three-dimensional heat model, and then the three-dimensional heat model is rendered to generate the three-dimensional heat map, where a specific implementation manner is as follows:
determining a plurality of division areas corresponding to the height data by dividing the height data;
setting rendering colors for a plurality of divided areas corresponding to the height data, and respectively determining the rendering colors corresponding to each divided area;
and adding rendering dyeing to the three-dimensional heat model based on the rendering color corresponding to each division region, and rendering the three-dimensional heat model added with the rendering color to obtain a three-dimensional heat map of the service dimension.
Specifically, the height data is divided, each interval range is determined according to the maximum value and the minimum value corresponding to the height data, the interval range is divided into at least two intervals (when a rendering color is set, data change of service dimensionality can be distinguished), the rendering color is set for each divided interval, the set rendering color can be a progressive color set from the maximum value to the minimum value of the height data, the maximum value corresponds to a deep color, the minimum value corresponds to a light color, the color gradually becomes lighter as the numerical value corresponding to the intermediate data becomes smaller, and the rendering colors corresponding to different height data are different; and adding rendering dyeing to the three-dimensional heat model based on the rendering color corresponding to each division region, and rendering the three-dimensional heat model added with the rendering color to obtain a three-dimensional heat map of the service dimension.
In addition, according to the actual situation, only one color is set for the maximum value corresponding to the height data, and one color is set for the minimum value corresponding to the height data, the two colors are different, the three-dimensional heat model is added with rendering colors and rendered, the wave crest and the wave trough corresponding to the rendered three-dimensional heat map have colors, and other areas do not have rendering colors.
By dividing the height data and setting rendering colors in each division region, progressive color change can be reflected when colors are added to the three-dimensional heat model, then the three-dimensional heat model added with the rendering colors is rendered to obtain a three-dimensional heat map, and when the three-dimensional heat map is displayed, the data change condition of the service dimension can be known through the change of the colors and the change of the height, so that the displayed three-dimensional heat map has better display effect.
On the basis of the above construction of the three-dimensional heat model, further, in one or more embodiments of this embodiment, a rendering color may be set for each height data, the rendering color set by the height data is added to the three-dimensional heat model, and then the three-dimensional heat model is rendered to generate the three-dimensional heat map, where a specific implementation manner is as follows:
creating a height data set according to corresponding height data of each plane grid unit in the plane grid in a three-dimensional coordinate space;
removing the height data set to obtain an optimal height data set;
determining a rendering color corresponding to each height data in the optimal height data set;
and adding rendering colors corresponding to each height data to the three-dimensional heat model, and rendering the three-dimensional heat model based on the rendering colors added to obtain a three-dimensional heat map of the service dimension.
Specifically, the method includes integrating all height data to obtain a height data set, removing the height data set to enable the height data in the height data set to be free of repeated height data, obtaining an optimal height data set, setting rendering colors for the height data in the optimal height data set, adding rendering primary colors to a plane grid unit in the three-dimensional coordinate space according to the rendering colors set by each height data to enable the constructed three-dimensional thermal model to have the rendering colors, and rendering the three-dimensional thermal model with the rendering colors added to obtain the three-dimensional thermal map.
The three-dimensional heat map is obtained by setting rendering colors for the height data corresponding to each planar grid unit, adding the rendering colors to the three-dimensional heat model and rendering the three-dimensional heat model with the added rendering colors, and when the three-dimensional heat map is displayed, the data change condition of the service dimension can be known through the change of the colors and the change of the heights, so that the displayed three-dimensional heat map has a better display effect.
According to the construction method of the three-dimensional heat model, the two-dimensional coordinate data of the business dimension is obtained, the planar grid composed of the planar grid units is constructed, the heat data corresponding to the two-dimensional coordinate data of the business dimension is obtained, the height data of the planar grid units in the three-dimensional coordinate space is determined, the three-dimensional heat model of the business dimension is constructed according to the height data and the planar grid, the three-dimensional heat model of the business dimension is constructed in the three-dimensional coordinate space, the heat condition of the business dimension can be embodied through the longitudinal depth of the three-dimensional heat model in the three-dimensional coordinate space, the three-dimensional heat map is generated by adding rendering colors to the three-dimensional heat model through the texture map, the data change condition and the change trend of the business dimension can be embodied through the three-dimensional heat map, the difference between the data peaks and troughs of the business dimension can be known through the depth of the three-dimensional heat map, and the visual perception is better.
The following will further explain the construction method of the three-dimensional heat model by taking the application of the construction method of the three-dimensional heat model provided by the present application to the demographic data as an example with reference to fig. 3 and 4. Fig. 3 shows a processing flow chart of a building process of a three-dimensional heat model according to an embodiment of the present application, fig. 4 shows a structural diagram of a three-dimensional heat map according to an embodiment of the present application, and the specific steps in fig. 3 include steps 302 to 316.
Step 302: and acquiring the area coordinates of the population distribution city A and the population number corresponding to each area coordinate.
Specifically, referring to fig. 4, the area coordinate in city a is any point on the XOY plane, for example, the coordinate (a, e, 0) may represent an area coordinate in city a, where the Z axis represents 1000 persons per unit.
Based on this, in city a, the area coordinates corresponding to the position where the population number is the most dense are (c, g, 0), and the corresponding population number is 2000.
Step 304: and carrying out meshing processing on the area coordinates of the city A through a triangulation algorithm to obtain a planar triangular mesh consisting of the area coordinates.
Specifically, according to all area coordinates in the city A, carrying out triangulation processing on all area coordinates through a triangulation algorithm to obtain a progressive planar triangular mesh.
Step 306: and determining the height value of the planar triangular grid in the three-dimensional coordinate space according to the population number corresponding to each area coordinate in the city A.
Specifically, according to the population number corresponding to each coordinate area in the city a, the height value of each area coordinate in the three-dimensional coordinate space for constructing the planar triangular mesh is determined.
Based on this, if the population number corresponding to the area coordinate (c, g, 0) is 2000 persons, the height value of the area coordinate (c, g, 0) in the three-dimensional coordinate space is 2, the corresponding three-dimensional coordinate is (c, g, n), the population number corresponding to the area coordinate (b, e, 0) is 0, the height value of the area coordinate (b, e, 0) in the three-dimensional coordinate space is 0, the corresponding three-dimensional coordinate is (b, e, O), and so on, the height value of each area coordinate in the three-dimensional coordinate space and the corresponding three-dimensional coordinate are determined respectively.
Step 308: and calling a blueprint processing interface to select the plane triangular mesh and the height value to construct a population distribution three-dimensional heat model of the city A.
Step 310: and generating a texture map according to the region coordinates.
Specifically, a texture map is generated based on the area coordinates of the city a, and the texture map may be a planar texture map formed of polygons or a spatial texture map formed of solid geometry.
Step 312: and setting rendering colors for the texture map according to the population number corresponding to each area coordinate.
Specifically, the polygon or solid geometry in the texture map corresponding to the area coordinate with the largest population is set to be red, the polygon or solid geometry in the texture map corresponding to the area coordinate with the largest population is set to be yellow, and by analogy, different colors are respectively set for the polygon or solid geometry in the texture map corresponding to the area coordinates with different population.
Step 314: and adding rendering colors to the population distribution three-dimensional heat model of the city A through the texture map.
Specifically, the constructed texture map is the same as the XOY plane in fig. 4, the texture map is placed on the XOY plane in a parallel state, the coordinate points correspond to one another, rendering colors are added to the population distribution three-dimensional heat model of the city a from top to bottom through the orthogonal camera, and the rendering colors in the texture map are added to the population distribution three-dimensional heat model according to the area coordinates.
Step 316: rendering the three-dimensional heat model of the population distribution with the added rendering colors to obtain a three-dimensional heat map of the population distribution of the city A.
Specifically, referring to fig. 4, a three-dimensional heat map of the population distribution of the city a obtained by rendering the three-dimensional heat model of the population distribution to which the rendering color is added is shown in fig. 4.
According to the method for constructing the three-dimensional heat model, the area coordinates of the city A are obtained, the progressive plane triangular mesh is constructed through the triangulation algorithm, the population distribution three-dimensional heat model is constructed through the plane triangular mesh and the population number corresponding to the area coordinates of the city A, the texture map is constructed at the same time, the rendering color is added to the population distribution three-dimensional heat model through the texture map, the population distribution situation of each area of the city A can be specifically known through the rendered population distribution three-dimensional heat map according to the color and the depth, the population distribution proportion difference of the city A can be known through the peaks and the troughs of the population distribution three-dimensional heat map, and the city A can be effectively planned according to the display content of the population distribution three-dimensional heat map.
Corresponding to the above method embodiment, the present application further provides an embodiment of a device for constructing a three-dimensional heat model, and fig. 5 shows a schematic structural diagram of the device for constructing a three-dimensional heat model provided in an embodiment of the present application. As shown in fig. 5, the apparatus includes:
an obtaining data module 502 configured to obtain two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data;
a gridding processing module 504 configured to perform gridding processing on the two-dimensional coordinate data to obtain a planar grid composed of planar grid units corresponding to the two-dimensional coordinate data;
a determining data module 506 configured to determine corresponding height data of each planar grid cell in the planar grid in a three-dimensional coordinate space according to the heat data;
a build model module 508 configured to build a three-dimensional heat model of the business dimension by selecting the planar mesh and the height data by calling a blueprint processing interface.
In an optional embodiment, the gridding processing module 504 includes:
the gridding processing unit is configured to perform gridding processing on the two-dimensional data through a triangulation algorithm to obtain a plane triangular grid unit corresponding to the two-dimensional coordinate data;
generating a planar mesh unit configured to generate the planar mesh from the planar triangular mesh unit.
In an alternative embodiment, the data determining module 506 includes:
determining a three-dimensional coordinate data unit configured to obtain three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid unit by converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to planar grid units included in the planar grid;
a height data determination unit configured to determine the height data corresponding to each planar mesh unit in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar mesh unit in the three-dimensional coordinate space.
In an optional embodiment, the determining the height data unit includes:
a determine three-dimensional grid cell submodule configured to determine a three-dimensional grid cell of each planar grid cell in the three-dimensional coordinate space from three-dimensional coordinate data to which each planar grid cell is mapped in the three-dimensional coordinate space;
a determine height data submodule configured to determine the height data for each planar mesh cell in the three-dimensional coordinate space based on the three-dimensional mesh cell of each planar mesh cell in the three-dimensional coordinate space.
In an alternative embodiment, the apparatus for constructing the three-dimensional heat model includes:
a determine index data module configured to determine index data for each planar grid cell in the planar grid;
accordingly, the build model module 508 is further configured to:
and selecting index data of each plane grid unit and the corresponding height data of each plane grid in the three-dimensional coordinate space by calling a blueprint function contained in the blueprint processing interface to construct the three-dimensional heat model.
In an optional embodiment, the gridding processing module 504 includes:
a two-dimensional coordinate point determining unit configured to determine a two-dimensional coordinate point corresponding to the two-dimensional coordinate data in a two-dimensional coordinate space;
a determination polygon unit configured to determine a polygon to which a planar mesh unit constituting the planar mesh belongs according to a gridding rule;
the determining unit is configured to carry out end-to-end connection on adjacent two-dimensional coordinate points according to the polygon to which the planar grid unit belongs, and determine the planar grid unit in the two-dimensional coordinate space;
generating a planar grid cell configured to generate the planar grid in the two-dimensional coordinate space according to the planar grid cell.
In an optional embodiment, the apparatus for constructing a three-dimensional heat model further includes:
a coordinate height data determining module configured to determine coordinate height data of a node of each planar grid cell in the three-dimensional coordinate space according to corresponding height data of each planar grid cell in the planar grid in the three-dimensional coordinate space;
a texture map generation module configured to set a corresponding rendering color for the coordinate height data, and generate a texture map based on the coordinate height data with the rendering color set and two-dimensional coordinate data corresponding to the node of each planar grid cell;
and the rendering module is configured to add rendering colors to the three-dimensional heat model through the texture map, render the three-dimensional heat model with the added rendering colors and obtain the three-dimensional heat map of the service dimension.
In an optional embodiment, the rendering module includes:
the ordering unit is configured to order the texture map and the three-dimensional heat model according to the two-dimensional coordinate data;
an adding rendering color unit configured to add rendering colors to the three-dimensional heat model through an orthogonal camera according to the arrangement order of the texture map and the three-dimensional heat model;
and the rendering unit is configured to render the three-dimensional heat model added with the rendering color to obtain the three-dimensional heat map.
In an optional embodiment, the apparatus for constructing a three-dimensional heat model further includes:
the dividing module is configured to divide the height data to determine a plurality of divided areas corresponding to the height data;
a rendering color setting module configured to set rendering colors for a plurality of divided regions corresponding to the height data, and respectively determine the rendering color corresponding to each divided region;
the first rendering module is configured to add rendering dyeing to the three-dimensional heat model based on rendering colors corresponding to each division region, and obtain a three-dimensional heat map of the service dimension by rendering the three-dimensional heat model with the rendering colors added.
In an optional embodiment, the apparatus for constructing a three-dimensional heat model further includes:
a height data set creating module configured to create a height data set from corresponding height data of each planar grid cell in the planar grid in a three-dimensional coordinate space;
the elimination module is configured to eliminate the height data set to obtain an optimal height data set;
a render color determination module configured to determine a render color corresponding to each height data in the optimal height data set;
and the second rendering module is configured to add a rendering color corresponding to each height data to the three-dimensional heat model, render the three-dimensional heat model based on the rendering color added, and obtain a three-dimensional heat map of the service dimension.
In an optional embodiment, the apparatus for constructing a three-dimensional heat model further includes:
the node height determining data module is configured to determine height data of each grid node according to heat data corresponding to two-dimensional coordinate data of each grid node contained in the planar grid;
a determine node three-dimensional coordinate data module configured to determine three-dimensional coordinate data of each grid node in the three-dimensional coordinate space based on the two-dimensional coordinate data of each grid node and the height data of each grid node;
a modified geometry determining module configured to determine, from the three-dimensional coordinate data, a modified geometry that is the same as the number of mesh nodes included in the planar mesh;
correspondingly, the rendering module is further configured to add rendering colors to the three-dimensional heat model through the texture map, and add the modified geometry to the three-dimensional heat model according to the three-dimensional coordinate data; rendering the three-dimensional heat model added with the modified geometry and the rendering color to obtain the three-dimensional heat map.
In the device for constructing the three-dimensional heat model, the two-dimensional coordinate data of the service dimension is acquired, the planar grid composed of planar grid units is constructed, the heat data corresponding to the two-dimensional coordinate data of the service dimension is acquired, the height data of the planar grid units in the three-dimensional coordinate space is determined, the three-dimensional heat model of the service dimension is constructed according to the height data and the planar grid, the three-dimensional heat model of the service dimension is constructed in the three-dimensional coordinate space, the fact that the heat condition of the service dimension can be reflected through the longitudinal depth of the three-dimensional heat model in the three-dimensional coordinate space is achieved, the three-dimensional heat map is generated by adding rendering colors to the three-dimensional heat model through the texture map, the data change condition and the change trend of the service dimension can be reflected through the three-dimensional heat map, and the difference between the data peaks and troughs of the service dimension can be known through the depth of the three-dimensional heat map, so that the visual perception is better.
The above is a schematic scheme of the three-dimensional heat model building apparatus according to this embodiment. It should be noted that the technical solution of the apparatus for constructing a three-dimensional heat model and the technical solution of the method for constructing a three-dimensional heat model belong to the same concept, and details of the technical solution of the apparatus for constructing a three-dimensional heat model, which are not described in detail, can be referred to the description of the technical solution of the method for constructing a three-dimensional heat model.
Fig. 6 illustrates a block diagram of a computing device 600 provided according to an embodiment of the present application. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to store data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 640 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the other components of the computing device 600 described above and not shown in fig. 6 may also be connected to each other, for example by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 6 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 600 may also be a mobile or stationary server.
Wherein processor 620 is configured to execute the following computer-executable instructions:
acquiring two-dimensional coordinate data of service dimensions and heat data corresponding to the two-dimensional coordinate data;
performing gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
determining height data corresponding to each plane grid unit in the plane grid in a three-dimensional coordinate space according to the heat data;
and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension.
Optionally, the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid units corresponding to the two-dimensional coordinate data includes:
performing meshing processing on the two-dimensional data through a triangulation algorithm to obtain a plane triangular mesh unit corresponding to the two-dimensional coordinate data;
and generating the plane mesh according to the plane triangular mesh unit.
Optionally, the determining, according to the heat data, height data corresponding to each planar grid unit in the planar grid in a three-dimensional coordinate space includes:
converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to planar grid units contained in the planar grid to obtain three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid unit;
determining the height data corresponding to each planar grid cell in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space.
Optionally, the determining the height data sub-instruction corresponding to each planar grid cell in the three-dimensional coordinate space based on the three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space includes:
determining a three-dimensional grid unit of each planar grid unit in the three-dimensional coordinate space according to three-dimensional coordinate data mapped by each planar grid unit in the three-dimensional coordinate space;
determining the height data for each planar grid cell in the three-dimensional coordinate space based on the three-dimensional grid cell of each planar grid cell in the three-dimensional coordinate space.
Optionally, before the instruction for selecting the planar grid and constructing the three-dimensional heat model of the business dimension by invoking the blueprint processing interface is executed, the processor 620 is further configured to execute the following computer-executable instructions:
determining index data of each planar grid cell in the planar grid;
correspondingly, the step of selecting the planar grid and the height data by calling a blueprint processing interface to construct the three-dimensional heat model of the service dimension comprises the following steps:
and selecting index data of each plane grid unit and the corresponding height data of each plane grid in the three-dimensional coordinate space by calling a blueprint function contained in the blueprint processing interface to construct the three-dimensional heat model.
Optionally, the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid units corresponding to the two-dimensional coordinate data includes:
determining a two-dimensional coordinate point corresponding to the two-dimensional coordinate data in a two-dimensional coordinate space;
determining a polygon to which a planar mesh unit forming the planar mesh belongs according to a gridding rule;
connecting adjacent two-dimensional coordinate points end to end according to the polygon of the planar grid unit, and determining the planar grid unit in the two-dimensional coordinate space;
and generating the plane grid in the two-dimensional coordinate space according to the plane grid unit.
Optionally, after the instruction for selecting the planar grid and constructing the three-dimensional heat model of the business dimension by invoking the blueprint processing interface is executed, the processor 620 is further configured to execute the following computer-executable instructions:
determining coordinate height data of a node of each planar grid unit in the three-dimensional coordinate space according to corresponding height data of each planar grid unit in the planar grid in the three-dimensional coordinate space;
setting corresponding rendering colors for the coordinate height data, and generating a texture map based on the coordinate height data of the set rendering colors and the two-dimensional coordinate data corresponding to the nodes of each planar grid unit;
and adding rendering colors to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model added with the rendering colors to obtain a three-dimensional heat map of the service dimension.
Optionally, the adding a rendering color to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
sorting the texture map and the three-dimensional heat model according to the two-dimensional coordinate data;
adding rendering colors to the three-dimensional heat model according to the arrangement sequence of the texture map and the three-dimensional heat model through an orthogonal camera;
rendering the three-dimensional heat model added with the rendering color to obtain the three-dimensional heat map.
Optionally, after the instruction for selecting the planar grid and constructing the three-dimensional heat model of the business dimension by invoking the blueprint processing interface is executed, the processor 620 is further configured to execute the following computer-executable instructions:
determining a plurality of division areas corresponding to the height data by dividing the height data;
setting rendering colors for a plurality of divided areas corresponding to the height data, and respectively determining the rendering colors corresponding to each divided area;
and adding rendering dyeing to the three-dimensional heat model based on the rendering color corresponding to each division region, and rendering the three-dimensional heat model added with the rendering color to obtain a three-dimensional heat map of the service dimension.
Optionally, after the instruction for selecting the planar grid and constructing the three-dimensional heat model of the business dimension by invoking the blueprint processing interface is executed, the processor 620 is further configured to execute the following computer-executable instructions:
creating a height data set according to corresponding height data of each plane grid unit in the plane grid in a three-dimensional coordinate space;
removing the height data set to obtain an optimal height data set;
determining a rendering color corresponding to each height data in the optimal height data set;
and adding rendering colors corresponding to each height data to the three-dimensional heat model, and rendering the three-dimensional heat model based on the rendering colors added to obtain a three-dimensional heat map of the service dimension.
Optionally, before the step of adding a rendering color to the three-dimensional heat model through the texture map and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map instruction of the service dimension, the processor 620 is further configured to execute the following computer-executable instructions:
determining height data of each grid node according to heat data corresponding to two-dimensional coordinate data of each grid node contained in the planar grid;
determining three-dimensional coordinate data of each grid node in the three-dimensional coordinate space based on the two-dimensional coordinate data of each grid node and the height data of each grid node;
determining a modified geometric body with the same number as the grid nodes contained in the plane grid according to the three-dimensional coordinate data;
correspondingly, the adding a rendering color to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
adding rendering colors to the three-dimensional heat model through the texture map, and adding the modified geometric body into the three-dimensional heat model according to the three-dimensional coordinate data;
rendering the three-dimensional heat model added with the modified geometry and the rendering color to obtain the three-dimensional heat map.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned method for constructing a three-dimensional heat model belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the above-mentioned method for constructing a three-dimensional heat model.
An embodiment of the present application further provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
acquiring two-dimensional coordinate data of service dimensions and heat data corresponding to the two-dimensional coordinate data;
performing gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
determining height data corresponding to each plane grid unit in the plane grid in a three-dimensional coordinate space according to the heat data;
and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension.
Optionally, the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid units corresponding to the two-dimensional coordinate data includes:
performing meshing processing on the two-dimensional data through a triangulation algorithm to obtain a plane triangular mesh unit corresponding to the two-dimensional coordinate data;
and generating the plane mesh according to the plane triangular mesh unit.
Optionally, the determining, according to the heat data, height data corresponding to each planar grid unit in the planar grid in a three-dimensional coordinate space includes:
converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to planar grid units contained in the planar grid to obtain three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid unit;
determining the height data corresponding to each planar grid cell in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space.
Optionally, the substep of determining the corresponding height data of each planar grid cell in the three-dimensional coordinate space based on the three-dimensional coordinate data of each planar grid cell mapped in the three-dimensional coordinate space includes:
determining a three-dimensional grid unit of each planar grid unit in the three-dimensional coordinate space according to three-dimensional coordinate data mapped by each planar grid unit in the three-dimensional coordinate space;
determining the height data for each planar grid cell in the three-dimensional coordinate space based on the three-dimensional grid cell of each planar grid cell in the three-dimensional coordinate space.
Optionally, before the step of selecting the planar grid and constructing the three-dimensional heat model of the service dimension by calling a blueprint processing interface is executed, the method further includes:
determining index data of each planar grid cell in the planar grid;
correspondingly, the step of selecting the planar grid and the height data by calling a blueprint processing interface to construct the three-dimensional heat model of the service dimension comprises the following steps:
and selecting index data of each plane grid unit and the corresponding height data of each plane grid in the three-dimensional coordinate space by calling a blueprint function contained in the blueprint processing interface to construct the three-dimensional heat model.
Optionally, the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid units corresponding to the two-dimensional coordinate data includes:
determining a two-dimensional coordinate point corresponding to the two-dimensional coordinate data in a two-dimensional coordinate space;
determining a polygon to which a planar mesh unit forming the planar mesh belongs according to a gridding rule;
connecting adjacent two-dimensional coordinate points end to end according to the polygon of the planar grid unit, and determining the planar grid unit in the two-dimensional coordinate space;
and generating the plane grid in the two-dimensional coordinate space according to the plane grid unit.
Optionally, after the step of selecting the planar grid and constructing the three-dimensional heat model of the service dimension by calling a blueprint processing interface is executed, the method further includes:
determining coordinate height data of a node of each planar grid unit in the three-dimensional coordinate space according to corresponding height data of each planar grid unit in the planar grid in the three-dimensional coordinate space;
setting corresponding rendering colors for the coordinate height data, and generating a texture map based on the coordinate height data of the set rendering colors and the two-dimensional coordinate data corresponding to the nodes of each planar grid unit;
and adding rendering colors to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model added with the rendering colors to obtain a three-dimensional heat map of the service dimension.
Optionally, the adding a rendering color to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
sorting the texture map and the three-dimensional heat model according to the two-dimensional coordinate data;
adding rendering colors to the three-dimensional heat model according to the arrangement sequence of the texture map and the three-dimensional heat model through an orthogonal camera;
rendering the three-dimensional heat model added with the rendering color to obtain the three-dimensional heat map.
Optionally, after the step of selecting the planar grid and constructing the three-dimensional heat model of the service dimension by calling a blueprint processing interface is executed, the method further includes:
determining a plurality of division areas corresponding to the height data by dividing the height data;
setting rendering colors for a plurality of divided areas corresponding to the height data, and respectively determining the rendering colors corresponding to each divided area;
and adding rendering dyeing to the three-dimensional heat model based on the rendering color corresponding to each division region, and rendering the three-dimensional heat model added with the rendering color to obtain a three-dimensional heat map of the service dimension.
Optionally, after the step of selecting the planar grid and constructing the three-dimensional heat model of the service dimension by calling a blueprint processing interface is executed, the method further includes:
creating a height data set according to corresponding height data of each plane grid unit in the plane grid in a three-dimensional coordinate space;
removing the height data set to obtain an optimal height data set;
determining a rendering color corresponding to each height data in the optimal height data set;
and adding rendering colors corresponding to each height data to the three-dimensional heat model, and rendering the three-dimensional heat model based on the rendering colors added to obtain a three-dimensional heat map of the service dimension.
Optionally, before the step of adding a rendering color to the three-dimensional heat model through the texture map and rendering the three-dimensional heat model with the rendering color added to obtain the three-dimensional heat map of the service dimension is executed, the method further includes:
determining height data of each grid node according to heat data corresponding to two-dimensional coordinate data of each grid node contained in the planar grid;
determining three-dimensional coordinate data of each grid node in the three-dimensional coordinate space based on the two-dimensional coordinate data of each grid node and the height data of each grid node;
determining a modified geometric body with the same number as the grid nodes contained in the plane grid according to the three-dimensional coordinate data;
correspondingly, the adding a rendering color to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
adding rendering colors to the three-dimensional heat model through the texture map, and adding the modified geometric body into the three-dimensional heat model according to the three-dimensional coordinate data;
rendering the three-dimensional heat model added with the modified geometry and the rendering color to obtain the three-dimensional heat map.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium is the same concept as the technical solution of the method for constructing the three-dimensional heat model, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the method for constructing the three-dimensional heat model.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in source code form, object code form, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently considered to be preferred embodiments and that acts and modules are not required in the present application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (14)

1. A method for constructing a three-dimensional heat model is characterized by comprising the following steps:
acquiring two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data;
performing gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
converting the heat data corresponding to the two-dimensional coordinate data and the two-dimensional coordinate data corresponding to the planar grid units contained in the planar grid to obtain three-dimensional coordinate data mapped in a three-dimensional coordinate space by each planar grid unit;
determining corresponding height data of each planar grid cell in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space;
and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension.
2. The method for constructing a three-dimensional heat model according to claim 1, wherein the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid cells corresponding to the two-dimensional coordinate data includes:
performing meshing processing on the two-dimensional coordinate data through a triangulation algorithm to obtain a planar triangular mesh unit corresponding to the two-dimensional coordinate data;
and generating the plane mesh according to the plane triangular mesh unit.
3. The method of constructing a three-dimensional heat model according to claim 1, wherein the substep of determining the height data corresponding to each planar grid cell in the three-dimensional coordinate space based on the three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space comprises:
determining a three-dimensional grid unit of each planar grid unit in the three-dimensional coordinate space according to three-dimensional coordinate data mapped by each planar grid unit in the three-dimensional coordinate space;
determining the height data for each planar grid cell in the three-dimensional coordinate space based on the three-dimensional grid cell of each planar grid cell in the three-dimensional coordinate space.
4. The method for constructing a three-dimensional heat model according to claim 1, wherein before the step of selecting the planar mesh and the height data by calling a blueprint processing interface to construct the three-dimensional heat model of the business dimension is executed, the method further comprises:
determining index data of each planar grid cell in the planar grid;
correspondingly, the step of selecting the planar grid and the height data by calling a blueprint processing interface to construct the three-dimensional heat model of the service dimension comprises the following steps:
and selecting index data of each plane grid unit and the corresponding height data of each plane grid in the three-dimensional coordinate space by calling a blueprint function contained in the blueprint processing interface to construct the three-dimensional heat model.
5. The method for constructing a three-dimensional heat model according to claim 1, wherein the gridding the two-dimensional coordinate data to obtain a planar grid composed of planar grid cells corresponding to the two-dimensional coordinate data includes:
determining a two-dimensional coordinate point corresponding to the two-dimensional coordinate data in a two-dimensional coordinate space;
determining a polygon to which a planar mesh unit forming the planar mesh belongs according to a gridding rule;
connecting adjacent two-dimensional coordinate points end to end according to the polygon of the planar grid unit, and determining the planar grid unit in the two-dimensional coordinate space;
and generating the plane grid in the two-dimensional coordinate space according to the plane grid unit.
6. The method for constructing a three-dimensional heat model according to claim 1, wherein the step of constructing the three-dimensional heat model of the business dimension by selecting the planar mesh and the height data by calling a blueprint processing interface is further performed, and the method further comprises:
determining coordinate height data of nodes of each planar grid unit in the three-dimensional coordinate space according to corresponding height data of each planar grid unit in the planar grid in the three-dimensional coordinate space;
setting corresponding rendering colors for the coordinate height data, and generating a texture map based on the coordinate height data of the set rendering colors and the two-dimensional coordinate data corresponding to the nodes of each planar grid unit;
and adding rendering colors to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model added with the rendering colors to obtain a three-dimensional heat map of the service dimension.
7. The method for constructing a three-dimensional heat model according to claim 6, wherein the adding a rendering color to the three-dimensional heat model through the texture map and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
sorting the texture map and the three-dimensional heat model according to the two-dimensional coordinate data;
adding rendering colors to the three-dimensional heat model according to the arrangement sequence of the texture map and the three-dimensional heat model through an orthogonal camera;
rendering the three-dimensional heat model added with the rendering color to obtain the three-dimensional heat map.
8. The method for constructing a three-dimensional heat model according to claim 1, wherein the step of constructing the three-dimensional heat model of the business dimension by selecting the planar mesh and the height data by calling a blueprint processing interface is further performed, and the method further comprises:
determining a plurality of division areas corresponding to the height data by dividing the height data;
setting rendering colors for a plurality of divided areas corresponding to the height data, and respectively determining the rendering colors corresponding to each divided area;
and adding rendering dyeing to the three-dimensional heat model based on the rendering color corresponding to each division region, and rendering the three-dimensional heat model added with the rendering color to obtain a three-dimensional heat map of the service dimension.
9. The method for constructing the three-dimensional heat model according to claim 1, wherein the step of constructing the three-dimensional heat model of the business dimension by selecting the planar mesh and the height data by calling a blueprint processing interface is further performed, and the method further comprises:
creating a height data set according to corresponding height data of each plane grid unit in the plane grid in a three-dimensional coordinate space;
removing the height data set to obtain an optimal height data set;
determining a rendering color corresponding to each height data in the optimal height data set;
and adding rendering colors corresponding to each height data to the three-dimensional heat model, and rendering the three-dimensional heat model based on the rendering colors added to obtain a three-dimensional heat map of the service dimension.
10. The method for constructing a three-dimensional heat model according to claim 6, wherein before the steps of adding a rendering color to the three-dimensional heat model through the texture map and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension are executed, the method further comprises:
determining height data of each grid node according to heat data corresponding to two-dimensional coordinate data of each grid node contained in the planar grid;
determining three-dimensional coordinate data of each grid node in the three-dimensional coordinate space based on the two-dimensional coordinate data of each grid node and the height data of each grid node;
determining a modified geometric body with the same number as the grid nodes contained in the plane grid according to the three-dimensional coordinate data;
correspondingly, the adding a rendering color to the three-dimensional heat model through the texture map, and rendering the three-dimensional heat model with the added rendering color to obtain the three-dimensional heat map of the service dimension includes:
adding rendering colors to the three-dimensional heat model through the texture map, and adding the modified geometric body into the three-dimensional heat model according to the three-dimensional coordinate data;
rendering the three-dimensional heat model added with the modified geometry and the rendering color to obtain the three-dimensional heat map.
11. An apparatus for constructing a three-dimensional heat model, comprising:
the data acquisition module is configured to acquire two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data;
the gridding processing module is configured to perform gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
a determining data module configured to determine height data corresponding to each planar grid cell in the planar grid in a three-dimensional coordinate space according to the heat data;
a construction model module configured to select the planar grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the business dimension;
the data determining module comprises:
determining a three-dimensional coordinate data unit configured to obtain three-dimensional coordinate data mapped in the three-dimensional coordinate space by each planar grid unit by converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to planar grid units included in the planar grid;
a height data determination unit configured to determine the height data corresponding to each planar mesh unit in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar mesh unit in the three-dimensional coordinate space.
12. The apparatus for constructing a three-dimensional heat model according to claim 11, further comprising:
a coordinate height data determining module configured to determine coordinate height data of a node of each planar grid cell in the three-dimensional coordinate space according to corresponding height data of each planar grid cell in the planar grid in the three-dimensional coordinate space;
a texture map generation module configured to set a corresponding rendering color for the coordinate height data, and generate a texture map based on the coordinate height data with the rendering color set and two-dimensional coordinate data corresponding to the node of each planar grid cell;
and the rendering module is configured to add rendering colors to the three-dimensional heat model through the texture map, render the three-dimensional heat model with the added rendering colors and obtain the three-dimensional heat map of the service dimension.
13. A computing device, comprising:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
acquiring two-dimensional coordinate data of a service dimension and heat data corresponding to the two-dimensional coordinate data;
performing gridding processing on the two-dimensional coordinate data to obtain a planar grid consisting of planar grid units corresponding to the two-dimensional coordinate data;
converting heat data corresponding to the two-dimensional coordinate data and two-dimensional coordinate data corresponding to planar grid units contained in the planar grid to obtain three-dimensional coordinate data mapped in a three-dimensional coordinate space by each planar grid unit;
determining corresponding height data of each planar grid cell in the three-dimensional coordinate space based on three-dimensional coordinate data mapped by each planar grid cell in the three-dimensional coordinate space;
and selecting the plane grid and the height data by calling a blueprint processing interface to construct a three-dimensional heat model of the service dimension.
14. A computer-readable storage medium storing computer instructions which, when executed by a processor, carry out the steps of the method of constructing a three-dimensional heat model according to any one of claims 1 to 10.
CN201910492809.3A 2019-06-06 2019-06-06 Method and device for constructing three-dimensional heat model Active CN110349267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910492809.3A CN110349267B (en) 2019-06-06 2019-06-06 Method and device for constructing three-dimensional heat model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910492809.3A CN110349267B (en) 2019-06-06 2019-06-06 Method and device for constructing three-dimensional heat model

Publications (2)

Publication Number Publication Date
CN110349267A CN110349267A (en) 2019-10-18
CN110349267B true CN110349267B (en) 2023-03-14

Family

ID=68181622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910492809.3A Active CN110349267B (en) 2019-06-06 2019-06-06 Method and device for constructing three-dimensional heat model

Country Status (1)

Country Link
CN (1) CN110349267B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110942513B (en) * 2019-10-30 2023-04-25 广州海格星航信息科技有限公司 Space filling method and device for three-dimensional grid model
CN111369657B (en) * 2020-03-09 2022-07-29 腾讯科技(深圳)有限公司 Three-dimensional thermodynamic diagram generation method and device, computer equipment and storage medium
CN115984506A (en) * 2021-10-15 2023-04-18 华为技术有限公司 Method and related device for establishing model

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240146A (en) * 2016-03-24 2017-10-10 华为技术有限公司 The method and apparatus that operational indicator is shown

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8676937B2 (en) * 2011-05-12 2014-03-18 Jeffrey Alan Rapaport Social-topical adaptive networking (STAN) system allowing for group based contextual transaction offers and acceptances and hot topic watchdogging

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240146A (en) * 2016-03-24 2017-10-10 华为技术有限公司 The method and apparatus that operational indicator is shown

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于三角网格模型的纹理映射研究;万燕等;《计算机应用与软件》;20160415(第04期);全文 *

Also Published As

Publication number Publication date
CN110349267A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110349267B (en) Method and device for constructing three-dimensional heat model
CN105678683B (en) A kind of two-dimensional storage method of threedimensional model
CN111369657B (en) Three-dimensional thermodynamic diagram generation method and device, computer equipment and storage medium
JPH03127188A (en) Method and apparatus for generating image
Boubekeur et al. A flexible kernel for adaptive mesh refinement on GPU
CN113628331B (en) Data organization and scheduling method for photogrammetry model in illusion engine
CN112569602B (en) Method and device for constructing terrain in virtual scene
CN113688545B (en) Visualization method and system for finite element post-processing result and data processing terminal
US20190272347A1 (en) Scalable and precise fitting of nurbs surfaces to large-size mesh representations
CN110070616A (en) Memory, statistical data rendering method, device and equipment based on GIS platform
US20230033319A1 (en) Method, apparatus and device for processing shadow texture, computer-readable storage medium, and program product
CN114693856B (en) Object generation method and device, computer equipment and storage medium
CN114255315A (en) Rendering method, device and equipment
CN116452735A (en) Octree-based data processing method, octree-based data processing device and computer-readable storage medium
Krämer et al. Scalable processing of massive geodata in the cloud: generating a level-of-detail structure optimized for web visualization
CN112687004A (en) Indoor ceiling method and system based on AR and artificial intelligence
JP2010092507A (en) Image processing method and apparatus
CN111862331A (en) CPU operation-based model voxelization efficiency optimization method and system
EP1602075A2 (en) Visual simulation of dynamic moving bodies
US11488347B2 (en) Method for instant rendering of voxels
US20240212282A1 (en) Image rendering method and apparatus, device, and medium
US20240193864A1 (en) Method for 3d visualization of sensor data
US11830140B2 (en) Methods and systems for 3D modeling of an object by merging voxelized representations of the object
CN111506680B (en) Terrain data generation and rendering method and device, medium, server and terminal
CN117611728A (en) Image display method and device, computing device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201009

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20201009

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant