Home Wave propagation time optimization for geodesic distances calculation using the Heat Method
Article Open Access

Wave propagation time optimization for geodesic distances calculation using the Heat Method

  • Artur Wróblewski and Jarosław Andrzejczak
Published/Copyright: June 8, 2019

Abstract

Finding the geodesic path defined as the shortest paths between two points on three-dimensional surface P is a well known problem in differential and computational geometry. Surfaces are not differentiable in a discrete way, hence known geometry algorithms can’t be used directly - they have to be discretized first. Classic algorithms for geodesic distance calculation such as Mitchell-Mount-Papadimitriou method (MMP) are precise but slow. Therefore modern solutions are developed for fast calculations. One of them is Heat Method which approximates such paths with some accuracy. In this paper we propose the extension of Heat Method to reduce the approximation error. A new formula for calculating value of the parameter t (wave propagation time step) which outperforms the original one in terms of mean and median error is presented. Also, correlation between mesh properties and best wave propagation time step as well as influence of variable node spacing on heat map based method were thoroughly analysed.

1 Introduction

Finding the shortest paths and distances between two points on the three-dimensional surface P is a well known problem in differential and computational geometry. Such path is called geodesic path. Surfaces are not differentiable in a discrete way, hence the known differential geometry algorithms for calculating geodesic distances can not be used directly - they have to be discretized first. What is more, such surfaces can be considered as three-dimensional graphs and the algorithms from graph theory can be used. Classic algorithms for geodesic distance calculation such as Mitchell-Mount-Papadimitriou (MMP) [10] are precise but slow. Therefore modern solutions are developed for fast calculations. One of them is the Heat Method [4] which approximates such paths with some accuracy. In this paper, authors propose the extension of the Heat Method to reduce the approximation error. Also, the tests confirming the usefulness of the proposed solution are presented.

Geodesic distances play an important role in geometric analysis. There are many applications for them: three-dimensional meshes processing, registration of inhomogeneous solids, surface parameterization, segmentation or editing shape. All of them require distance calculation between any pair of points of the input mesh. Therefore, geodesic paths are used in many fields, including robotics, geographic information systems, digital circuits designing, three-dimensional meshes transformation, radiotherapy, biomedicine, dentistry and computer graphics. A wide range of applications as well as the constant demand for fast calculations of its algorithms makes this area relevant for further research.

The contributions to geodesic distances calculation research presented in this article are:

  1. Reduction of the mean and median approximation error in Heat Method through the use of the author’s method of calculating the wave propagation time step parameter (parameter t) based on mesh properties.

  2. Analysis of correlation between mesh properties and best wave propagation time step as well as influence of variable node spacing on heat map based method.

  3. A new formula for calculating best value of parameter t (wave propagation time step) for minimal mean approximation error.

  4. A new formula for calculating best value of parameter t (wave propagation time step) for minimal median approximation error.

  5. Tests verifying the usefulness of proposed formulas in different scenarios as well as proposition of verification set for future research.

We start with a discussion of related work in the field of geodesic distance calculation methods in the next section. This is followed by a description of the main idea of the Heat Method and parameter t as well as the classic MMP method overview. We then present the evaluation methodology and its stages construction as well as the test sets description (basic set and verification set). Next, test results and their discussion are presented for both mean and median approximation error reduction formulas. Finally, ideas for further development and final conclusions will be given.

2 Geodesic distances

We start the analysis from the classic algorithm proposed by three authors: J. Mitchell, D. Mount and C. Papadimitriou [10] (MMP method). Popular methods based on their solution and compared to it were selected next. This way, a 13 method set was created, analysed and divided into four main categories: methods based on global wave propagation, methods based on PDE (Partial Differential Equations), graph-based methods and iterative methods (Figure 1).

Figure 1 Geodesic distances algorithms classification. They were divided into four main categories based on used technique: methods based on global wave propagation, methods based on PDE (Partial Differential Equations), graph-based methods and iterative methods. Algorithms used in this paper are marked with red frame.
Figure 1

Geodesic distances algorithms classification. They were divided into four main categories based on used technique: methods based on global wave propagation, methods based on PDE (Partial Differential Equations), graph-based methods and iterative methods. Algorithms used in this paper are marked with red frame.

Each algorithm, as well as its family, can calculate the geodesic distance using a different approach. Due to this, solutions differ in speed, accuracy, memory requirement and time complexity. Some of the presented methods return approximate results, so it is not recommended to use them in applications demanding high accuracy. However, due to their speed they are often used in real-time systems, where accuracy is not a main priority.

The classical algorithm from global wave propagation based methods proposed by Mitchell et al. [10] (MMP) can calculate the shortest on-surface path in O(n2logn) time with O(n2) space required. Surazhsky et al. [12] presented a detailed implementation of this method, proved that it can return results in O(nlogn) in practice and extended it with merging operation to obtain a solution in a shorter time (Surazhsky method). Kappor [8] demonstrated a method which used the Dijkstra algorithm and wavefront propagation to find shortest path between pairs of points in O(nlog2n) (Kappor method). Proposed by Chen and Han [2, 3] this method did not require Dijkstra method and can solve this problem in O(n2) time (CH method). Xin and Wang [13] greatly improved this method by filtering useless windows and maintaining priority queue which allowed this method to outperform the original version (ICH method). Recently Xu et al. [15] presented windows organizing method for MMP [10] and CH [2, 3] algorithms and results showed that it can improve speed by a factor of 3-10 (FWP method).

From the Partial Differential Equations (PDE) based methods group it is worth mentioning the Heat Method that was presented by Crane et al. [4] which used an innovative way of geodesic distances calculations using heat maps. This algorithm works on regular grids, point clouds and triangle meshes, making it a breakthrough in practice. Developed by Kimmel and Sethian [9] the Fast Marching Method (FMM) for triangulated domains can also calculate such a path but by solving Eikonal equations in O(nlogn) steps. Solomon et al. [11] also proposed a novel method for computing shortest paths on a surface by using optimal transportation theory (EMD method). Spectral distance to geodesic distance transition was also covered.

Recently, Ying et al. [16] demonstrated a completely new graph based method which solves the geodesic problem from a local perspective by creating an undirected graph on which one can find the shortest path using existing efficient algorithms (SVG method). Aleksandrov et al. [1] proposed constructing a graph by placing m Steiner’s points along each edge of the mesh therefore the shortest path can be found by using existing graph methods in O(mnlog(mn) + nm2). In contrast to well-studied single-source methods Xin et al. [14] presented anefficient algorithm to approximate all-pairs geodesic distances in O(1) time with an additional processing step which takes O(mn2logn) (Xin Ying He method).

Kanai and Suzuki [7] developed an iterative method which is fast, easy to implement and gives high approximation accuracy (Kanai Suzuki method). It was compared to extended CH method and it calculated distance roughly 100 times faster.

3 Heat Method and MMP

Our research was based on two existing methods for calculating distance on three-dimensional meshes:

  1. Heat Method [4], modern fast algorithm for geodesic distance approximation - this method was modified by the authors of this paper.

  2. MMP [10], classic and precise algorithm - used in evaluation as reference data for calculated distances.

Both methods are important for further analysis hence they will be described in this section in more detail.

3.1 Heat Method

The algorithm calculates distance on the surface from the source point to all other possible points. This method is simple to implement and can be used in a wide range of applications. It does not depend on mesh representation and can calculate distances on regular grids, point clouds or triangle meshes. This algorithm can be applied whenever basic derivatives known from vector calculus are available: gradient, divergence and Laplace operator. The method has three main steps:

  1. Integrating the heat flow u ˙ = Δ u for time t.

  2. Evaluating the vector field X = u t | u t | .

  3. Solving the Poisson equation Δ ϕ = X .

Every step is dependent on few differential operators and several input parameters that can be changed by the user. Available options are:

  1. input mesh (.obj format),

  2. text file with source vertices indices (single source points were used in this paper),

  3. output mesh (extra option to visualize isolines),

  4. text file with reference distance values,

  5. boundary condition [0 − 1], where 0 yields pure-Neumann conditions and 1 yields pure-Dirichlet conditions (according to authors on surfaces without boundaries selecting 0 is optimal),

  6. parameter t - time step (always positive)

Equation 1 shows value of t proposed by authors, which was based on mean spacing between vertices (nodes).

(1) t = ( e ¯ ) 2 = ( i = 0 N 1 e i N ) 2 , where

e - edge length

N - number of edges

Impact of the parameter t on the distance calculations accuracy was pointed out as one of the further exploration possibilities. Heat method relies on time step t and such analysis could provide a different value which leads to better approximations. Moreover, because of its short calculation time, Heat Method can be used in a real-time system eg. rendering or pathfinding in computer games as well as modern solution for photorealistic computer graphics such as streamed photon mapping [17] or physically based area lightning [18]. This gives a wide range of applications of this method.

3.2 MMP

MMP method algorithm calculates the shortest path between the source point and the target point on the polygonal surface. The distance is measured using Euclidean metric and the path is on the surface. Time complexity of the algorithm is O(n2logn)while requiring O(n2) space, where n is number of surface edges. After initial mesh processing, the distance from source point to any other point can be calculated using standard techniques in O(nlogn). The actual shortest path can be returned in O(k+logn),where k is the number of polygons passed-through by the path. This method also generalizes the case of many source points in order to build a Voronoi diagram on a three-dimensional surface [10].

The algorithm parameters are:

  1. input mesh,

  2. source vertex index [0 − n), where n is number of mesh vertices,

  3. destination vertex index (when it is not defined, algorithm calculates distances to every possible point)

MMP method was used in our research to calculate exact distances from the source point to all other possible points. Results created in this way became reference data and were used to calculate distance errors values in modified Heat Method.

4 Methodology

The aim of the performed research was to analyse impact of parameter t on the accuracy of calculated distance on surfaces with variable node spacing. Such analysis will allow to propose a new value of t which could lead to less error-prone results.

Two tests were conducted. The goal of each of them was finding the formula for calculating the value of time step t that minimized the geodesic distance approximation error in Heat Method:

  1. the best value of parameter t for mean approximation error

  2. the best value of parameter t for median approximation error

Approximation error was calculated as a difference between precise distance values calculated using MMP method and values calculated using the Heat Method with particular parameter t value. Mean approximation error represents the mean value of approximation error for all the vertices in particular mesh[1]. By analogy, median approximation error for specific mesh is calculated[2].

To achieve the goal we had to develop a process which divided tasks into smaller parts. Consequently each test had two sessions. In the first one we wanted to obtain a new formula for the parameter t (best or maximum one). Second session focused on new formula verification. All steps were as follows:

  1. First session:

  1. Find the lowest error (mean or median) and corresponding value of t for each mesh from basic set.

  2. Create correlation table of t value with mesh properties.

  3. Choose the most significant correlation.

  4. Develop a formula for calculating the parameter t value based on mesh properties values and their correlation with the parameter t values.

  1. Second session:

  1. Verify the newly created formula on basic set and verification set.

  2. Analyse the results.

For each session we prepared a set of three-dimensional meshes: basic set and verification set. Models in both sets will be triangle meshes. Basic set is a special collection with 5 meshes of one 3D model. In order to reduce the number of external factors that might affect results, we focused only on edge length diversity. Verification set is a collection of models with various shapes and mesh topology so it was possible to check the solution in many different cases.

It is worth mentioning that during our research two additional tests were conducted to find a maximum parameter t value for both: mean and median error. This maximum value was defined as the t value that produces triple value of minimum error (mean or median respectively) on at least half of all mesh vertices. It can be taken as the far right value of the search set. By using it we can be 95% sure that best parameter t value is lower than it. At the same time this value is not too big making the created set not too big. In our research it was calculated to verify if the parameter t value calculated using newly created formula is not only close to best possible value but also not bigger than the maximum value. What is more, such maximum t value can be used as a stop condition for iterative methods that are searching for parameter t value that gives minimum approximation error. Those two additional tests are not described in detail in this paper to focus on the new formula for the best parameter t value.

4.1 Basic set

To properly test the impact of edge length diversity on parameter t the basic set was created. The model that was selected is a well known in computer graphics rabbit - Stanford Bunny. It has 14290 vertices, 42864 edges and 28576 faces.

Meshes from this set have various anisotropy level[3]and different edge lengths. Sizes of all tested rabbits were the same - they can be inscribed in sphere with constant diameter. It was assumed that the shape of all meshes should be as close as possible to each other (Figure 2).

Figure 2 All meshes from basic set. Despite very similar shape, each mesh vary in edge length what is visible in anisotropy level and mesh topology. From left: original mesh 1.obj, mesh 2.obj with 3% of removed vertices, mesh 3.obj with 6% of removed vertices, mesh 4.obj with 9% of removed vertices and mesh 5.obj with 12% of removed vertices, g - anisotropy level
Figure 2

All meshes from basic set. Despite very similar shape, each mesh vary in edge length what is visible in anisotropy level and mesh topology. From left: original mesh 1.obj, mesh 2.obj with 3% of removed vertices, mesh 3.obj with 6% of removed vertices, mesh 4.obj with 9% of removed vertices and mesh 5.obj with 12% of removed vertices, g - anisotropy level

Process of creating each mesh was follows:

  1. n * 3% of vertices were deleted from each mesh (where n is mesh number) (Figure 3)

  2. Holes were filled with new polygons.

  3. Every newly created polygon was triangulated to keep shape of model similar to the original one.

Figure 3 Process of removing mesh vertices in basic set. From left: input mesh, randomly selected 3% of vertices, mesh with removed selected vertices
Figure 3

Process of removing mesh vertices in basic set. From left: input mesh, randomly selected 3% of vertices, mesh with removed selected vertices

Sometimes a set of triangles with high anisotropy level were created after triangulation of new polygons. Those cases were properly corrected to not affect shape, shading and attributes of mesh (Figure 4).

Figure 4 A vertex that negatively affects shading is visible on the left. Every vertex like that was corrected to avoid it
Figure 4

A vertex that negatively affects shading is visible on the left. Every vertex like that was corrected to avoid it

The step of size of 3% vertices from original mesh allowed to remove 12% of vertices from the last (fifth) mesh. A bigger step caused a significant deformation of shapes and according to assumptions all meshes should be as similar as they could be. What is more, from this we managed to achieve a linear increase of mesh anisotropy and standard deviation of the edge length (Figure 5).

Figure 5 Linear increase of mesh anisotropy (on left) and standard deviation of the edge length (on right). Trend line is marked as Red dashed line
Figure 5

Linear increase of mesh anisotropy (on left) and standard deviation of the edge length (on right). Trend line is marked as Red dashed line

In order to minimize additional factors that might affect results it was decided that the source point of each mesh from the basic set will be always the most protruding vertex on left side of Y axis (Figure 6).

Figure 6 The most protruding vertex in Y axis was selected as source point for basic set
Figure 6

The most protruding vertex in Y axis was selected as source point for basic set

Despite increasing edge length diversity, the number of mesh triangles was getting smaller. We did not take processing time into account, because it should be compared only with the same amount of input data.

All the data from the basic set can be found in tables Table 1, Table 2, Table 3 and Table 4. We selected those properties to test the problem from original method - impact of edge length diversity on parameter t - in the best possible. Properties considered in this paper were:

Table 1

Basic set meshes properties - vertices, faces and anisotropy. By removing more and more vertices from meshes they have less edges and triangles - due to that the anisotropy level increases. Nv - number of vertices; Ne - number of edges; Nf - number of faces; vs - source vertex index; g - anisotropy level

Model name Nv Ne Nf vs g
1.obj 14290 42864 28576 7649 1.079
2.obj 13848 41538 27692 7396 1.137
3.obj 13398 40188 26792 7135 1.208
4.obj 12863 38582 25720 6816 1.296
5.obj 12478 37428 24952 6560 1.349
Table 2

Basic set meshes properties - edges. Every property value increases but it is not always linear increase - there is a significant difference between 3.obj and 4.obj, especially in variance, standard deviation and median absolute deviation. ē - average edge length; Var(e) - variance of edge length; σe - standard deviation of the edge length; De - median absolute deviation of the edge length

Model name ē Var(e) σe De
1.obj 0.21585 0.00062 0.02505 0.01959
2.obj 0.22093 0.00152 0.03904 0.02434
3.obj 0.22666 0.00265 0.05155 0.03062
4.obj 0.23393 0.00464 0.06813 0.03933
5.obj 0.23892 0.00531 0.07287 0.04502
Table 3

Edges length and angles for basic set meshes. The shortest edge length of each mesh remains the same. 4.obj differs from the other meshes - it has the longest edge and the biggest interior angle of triangle from entire set therefore it does not maintain linearity. mine - the shortest edge length; maxe - the longest edge length; m i n e m a x e - ratio of shortest to longest edge; minα - the smallest interior angle of triangle; maxα - the biggest interior angle of triangle

Model name mine maxe m i n e m a x e minα maxα
1.obj 0.1262 0.3296 0.38306 35.39 102.31
2.obj 0.1262 0.8303 0.15206 1.33 177.27
3.obj 0.1262 0.8848 0.14269 0.99 177.40
4.obj 0.1262 1.2462 0.10131 0.33 178.96
5.obj 0.1262 1.1172 0.11301 0.72 178.47
Table 4

Spread of edge length values for basic set. Q1(e) - first (lower) quartile of edge length; Q2(e) - second quartile (median) of edge length; Q3(e) - third (upper) quartile of edge length; QD e - quartile deviation (semi-interquartile range) of edge length

Model name Q1(e) Q2(e) Q3(e) QDe
1.obj 0.20017 0.21542 0.23136 0.0155
2.obj 0.20098 0.21629 0.23331 0.0161
3.obj 0.20145 0.21709 0.23566 0.0171
4.obj 0.20216 0.21824 0.23863 0.0182
5.obj 0.20289 0.21926 0.24214 0.0196
  1. Nv - number of vertices,

  2. Ne - number of edges,

  3. N f - number of faces,

  4. vs - source vertex index,

  5. g - anisotropy level,

  6. ē - average edge length,

  7. Var(e) - variance of edge length,

  8. σe - standard deviation of the edge length,

  9. De - median absolute deviation of the edge length,

  10. mine - the shortest edge length,

  11. maxe - the longest edge length,

  12. m i n e m a x e - ratio of shortest to longest edge,

  13. minα - the smallest interior angle of triangle,

  14. maxα - the biggest interior angle of triangle,

  15. Q1(e) - first (lower) quartile of edge length,

  16. Q2(e) - second quartile (median) of edge length,

  17. Q3(e) - third (upper) quartile of edge length,

  18. QDe - quartile deviation (semi-interquartile range) of edge length

4.2 Verification set

In order to check the proposed solution in different conditions a verification set consisting 30 models with various shapes were created. Each of the chosen mesh was often used in many papers and analysis of computer graphics algorithms[4].Mostly they were created by scanning real objects with three-dimensional scanners. Next, from point clouds they were converted to triangle meshes. All of them (as those from the basic set) were the same size - they can be inscribed in sphere with constant diameter (Figure 8).

Figure 7 Examples of source points in verification set. The farther from the source, the cooler the color gets
Figure 7

Examples of source points in verification set. The farther from the source, the cooler the color gets

Figure 8 Verification set consisted of 30 models with various shapes and mesh topologies
Figure 8

Verification set consisted of 30 models with various shapes and mesh topologies

The number of faces of each model significantly differed and ranged from 984 to 400000. Due to this each mesh varied by eg. number of vertices, edges, anisotropy level, the smallest and biggest interior angles of triangles. Some properties of those meshes are presented in table Table 5.

Table 5

Selected properties of verification set. g - anisotropy level; ē - average edge length; Var(e) - variance of edge length; σe - standard deviation of the edge length; maxe - the longest edge length

Model name g ē Var(e) σe maxe
(1) armadillo 1.7725 0.503 0.0421 0.205 2.5598
(2) bee 1.5461 0.461 0.0419 0.204 2.6388
(3) bimba 1.6924 0.552 0.0422 0.205 1.4478
(4) buddha 2.5003 0.682 0.1419 0.376 3.6185
(5) camel 1.9755 0.213 0.0221 0.148 1.0632
(6) cane 1.2627 0.125 0.0015 0.039 0.6723
(7) cow 2.5022 0.437 0.1266 0.355 3.1916
(8) david 3.0191 0.340 0.0620 0.249 7.2493
(9) doll 1.5435 0.216 0.0188 0.137 2.4440
(10) duck 1.6267 0.184 0.0048 0.069 1.0212
(11) fandisk 1.3409 0.100 0.0005 0.023 0.2487
(12) fandisk2 1.3834 1.033 0.0796 0.282 2.5778
(13) fertility 1.0704 0.107 0.0003 0.018 0.1622
(14) frog 1.9705 0.298 0.1038 0.322 5.9300
(15) gargoyle 1.3510 0.164 0.0032 0.057 1.0673
(16) genus3 1.6391 0.773 0.0487 0.22 1.6547
(17) homer 1.8007 0.344 0.0475 0.218 2.5818
(18) horse 1.4912 0.096 0.0007 0.028 0.7754
(19) kitten 1.0810 0.218 0.0006 0.025 0.3157
(20) lion 3.3114 0.187 0.0453 0.212 5.4070
(21) lucy 2.1592 0.129 0.0036 0.06 0.8617
(22) max planck 1.7776 0.624 0.0559 0.236 2.9817
(23) monk 3.266 0.153 0.0146 0.121 2.1356
(24) mouse 1.6792 0.230 0.0087 0.093 0.9612
(25) pegasus 1.9811 0.561 0.0696 0.263 2.9984
(26) rockerarm 1.2696 0.123 0.0039 0.062 0.8560
(27) suzanne 1.6780 1.029 0.5095 0.713 4.4345
(28) teapot 2.6823 0.483 0.0809 0.284 0.1318
(29) torso 1.9750 0.204 0.1114 0.105 0.9234
(30) vaselion 1.6263 0.061 0.0034 0.058 5.4038

In the verification set, the first vertex from the mesh vertices array was selected as the source point. Thanks to that we introduced random selection of propagation point (Figure 7).

5 Results and analysis

The results and their analysis will be divided into two parts. The aim of each part was analogical to the aim of the tests described in previous section - which was finding the formula for calculating:

  1. the best value of parameter t for mean approximation error

  2. the best value of parameter t for median approximation error

5.1 Best value of t for mean error

5.1.1 Minimum error

First, the approximation error values for the following parameter t values were calculated. From them, the mean error was provided for each mesh from basic set. The minimum mean error for a given mesh is the global minimum of the function of this dependence (mean error and t value, Figure 9). Parameter t takes only positive values. The graph of such a function is similar to modulus of logarithmic function. Thanks to that we can be sure that the minimum occurs only once and if the value of t will be greater than it, average error will increase.

Figure 9 Parameter t ↦ mean error graph for each mesh from basic set. It is similar to modulus of logarithmic function - there is only one global minimum
Figure 9

Parameter t ↦ mean error graph for each mesh from basic set. It is similar to modulus of logarithmic function - there is only one global minimum

We have noticed that in the basic set, extremum of a function occurs at small values of parameter t. It is worth mentioning that the minimum mean error of each mesh is getting larger, but the value of t does not converge with it (Table 6).

Table 6

Minimum mean errors and corresponding parameter t values for each mesh from basic set. Parameter t does not increase linearly with minimum mean error value. t - time step; m i n η ¯ - minimum mean error; t m i n η ¯ - parameter t giving the minimum mean error

Model name m i n η ¯ [ % ] t m i n η ¯
1.obj 0.53031 0.0254
2.obj 0.60318 0.0361
3.obj 0.7676 0.0486
4.obj 0.85488 0.0749
5.obj 0.92221 0.064

5.1.2 Correlation table - mesh property choosing

As a next step, correlation coefficients between mesh properties and parameter t that is giving the minimum mean error were calculated. For that purpose the Pearson correlation was used. The shortest edge length was not used

in correlation table because it is the only property that remains the same for each mesh. The strongest positive correlation was with standard deviation of the edge length - almost 96%. This property was used as the most significant in the developed formula (Table 7).

Table 7

Pearson correlation coefficients between mesh properties and parameter t that is giving the minimum mean error. ρ ( t m i n η ¯ ) - correlation with parameter t that is giving the minimum mean error; t m i n η ¯ - parameter t that is giving the minimum mean error; σe - standard deviation of the edge length; Var(e) - variance of edge length; maxe - the longest edge length; g - anisotropy level; ē - average edge length; De - median absolute deviation of the edge length; Q2(e) - second quartile (median) of edge length; Q1(e) - first (lower) quartile of edge length; Q3(e) - third (upper) quartile of edge length; QDe - quartile deviation (semi-interquartile range) of edge length; maxα - the biggest interior angle of triangle; minα - the smallest interior angle of triangle; m i n e m a x e - ratio of shortest to longest edge; vs - source vertex index; Nv - number of vertices; Ne - number of edges; Nf - number of faces

Mesh property ρ ( t m i n η ¯ )
t m i n η ¯ 1
σe 0.9593
Var(e) 0.9501
maxe 0.942
g 0.9346
ē 0.9277
De 0.9254
Q2(e) 0.9076
Q1(e) 0.8999
Q3(e) 0.8827
QDe 0.8757
maxσ 0.6933
minσ −0.6956
m i n e m a x e -0.7973
vs −0.9201
Nv −0.9279
Ne −0.928
Nf −0.9281

5.1.3 Developing formula and verification

Next, a formula to calculate the value of t dependent on standard deviation of the edge length was developed (Eq. 2).

(2) t = σ e = i = 0 N 1 ( e i e ¯ ) 2 N , where:

e - edge length

N - number of edges

ē - average edge length

The newly developed formula was tested on the basic and verification sets. Figure 10 shows percentage gain using the proposed value of t based on standard deviation of the edge length. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 2) and the second one obtained using t value from original formula (Eq. 1). We choose a 95% confidence interval. For 21 models we can be 95% certain that we got a lower mean error then the original formula used in [4]. Original value of t provided lower mean error for 10 models. Only for 4 cases we cannot be sure which solution is better.

Figure 10 Percentage gain within the meaning of mean approximation error of using parameter t calculated based on standard deviation of the edge length. For 10 models it allows to obtain lower mean errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 2) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented
Figure 10

Percentage gain within the meaning of mean approximation error of using parameter t calculated based on standard deviation of the edge length. For 10 models it allows to obtain lower mean errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 2) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented

5.1.4 Analysis

Figure 11 shows how best, original and calculated using the new formula parameters t are shaped. For 16 models

Figure 11 Best, original and proposed parameters t for each mesh from basic and verification sets. For many models value of best parameter t is between original and proposed value.
Figure 11

Best, original and proposed parameters t for each mesh from basic and verification sets. For many models value of best parameter t is between original and proposed value.

the value of best parameter t was between the original and proposed one, for 10 models it was smaller than both of them and for 9 it was larger. Extra attempt was made to adapt formula for these cases. We developed a second formula based on the average of standard deviation and average edge length (Eq. 3).

(3) t = ( e ¯ ) 2 + σ e 2 = ( i = 0 N 1 e i N ) 2 + i = 0 N 1 ( e i e ¯ ) 2 N 2 ,

where:

e - edge length

N - number of edges

ē - average edge length

σe - standard deviation of the edge length

By using the improved formula (Eq. 3) we managed to get better results than with the first one (Eq. 2). In fact, we still can be 95% certain that we got lower mean errors for 21 models (in most cases gain value is higher than 20%), but this time original value of t is better in only 4 cases. For 10 models we cannot be sure which solution is better (Figure 12).

Figure 12 Percentage gain within the meaning of mean approximation error of using parameter t calculated based on average of standard deviation and average edge length. Only for 4 models original value of t allows to obtain lower mean errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 3) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented
Figure 12

Percentage gain within the meaning of mean approximation error of using parameter t calculated based on average of standard deviation and average edge length. Only for 4 models original value of t allows to obtain lower mean errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 3) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented

5.2 Best value of t for median error

5.2.1 Minimum error

For each mesh from basic set the minimum median error and corresponding value of t were found. Median errors

are smaller than mean errors but similarly parameters t do not converge with them. It is worth to notice that minimum median error for 4.obj is smaller than for 3.obj (Table 8).

Table 8

Minimum median errors and corresponding parameter t values for each mesh from basic set. minῆ - minimum median error; t m i n η ~ - parameter t giving the minimum median error

Model name min [%] t m i n η ~
1.obj 0.37351 0.0246
2.obj 0.45332 0.0365
3.obj 0.60543 0.0553
4.obj 0.59709 0.0815
5.obj 0.70536 0.0613

5.2.2 Correlation table - mesh property choosing

Eight of the mesh properties strongly correlate with parameter t that is giving the minimum median error (over 80% - positive correlation). It is worth mentioning that the order of properties is almost the same as for mean error - only maxe switched position with Var(e). Standard deviation of the edge length was selected as most significant one - 96% positive correlation (Table 9).

Table 9

Pearson correlation coefficients between mesh properties and parameter t that is giving the minimum median error. ρ ( t m i n η ~ ) - correlation with parameter t that is giving the minimum median error; min - parameter t that is giving the minimum median error; σe - standard deviation of the edge length; maxe - the longest edge length; Var(e) - variance of edge length; g - anisotropy level; ē - average edge length; De - median absolute deviation of the edge length; Q2(e) - second quartile (median) of edge length; Q1(e) - first (lower) quartile of edge length; Q3(e) - third (upper) quartile of edge length; QDe - quartile deviation (semi-interquartile range) of edge length; maxα - the biggest interior angle of triangle; minα - the smallest interior angle of triangle; m i n e m a x e - ratio of shortest to longest edge; vs - source vertex index; Nv - number of vertices; Ne - number of edges; Nf - number of faces

Mesh property ρ ( t m i n η ~ )
t m i n η ~ 1
σe 0.9113
maxe 0.8956
Var(e) 0.8862
g 0.8708
ē 0.86
De 0.8548
Q2(e) 0.832
Q1(e) 0.826
Q3(e) 0.799
QDe 0.7897
maxα 0.7017
minα −0.705
min e m a x e −0.7967
vs −0.8518
Nv −0.8638
Ne −0.8639
Nf −0.8641

5.2.3 Formula developing and verification

With usage of linear regression we developed a formula to calculate the value of t dependent on standard deviation of the edge length (Eq. 4). The proposed equation could be simplified (by omitting the constant) but it stayed unchanged during tests.

(4) t = 1.01204 σ e 0.0001 = 1.01204 i = 0 N 1 ( e i e ¯ ) 2 N 0.0001 , where:

e - edge length

N - number of edges

ē - average edge length

The newly developed formula was tested on the basic and verification sets. Figure 13 shows the percentage gain using proposed value of t based on standard deviation of the edge length. Gain was calculated by dividing two median approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 4) and the second one obtained using t value from original formula (Eq. 1). We choose 95% confidence interval. For 19 models we can be 95% certain that we got lower a median error then the original formula used in [4]. The original value of t provided lower median errors for 11 models. Only for 5 cases we cannot be sure which solution is better.

Figure 13 Percentage gain within the meaning of median approximation error from using parameter t based on standard deviation of the edge length. For 11 models it allows to obtain lower median errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 4) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented
Figure 13

Percentage gain within the meaning of median approximation error from using parameter t based on standard deviation of the edge length. For 11 models it allows to obtain lower median errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 4) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented

5.2.4 Analysis

Graphs of best, original and proposed parameters t were similar for median error (Figure 14) and mean error (Figure 11).We decided to check if the solution applied for finding formula for parameter t that is giving minimum mean error could be used here. For 13 models the value of best parameter t was between the original and proposed one, for 12 models it was smaller than both and for 10 it was larger. Theoretically adjusting the formula should be profitable (Eq. 5).

(5) t = ( e ¯ ) 2 + 1.01204 σ e 0.0001 2 = ( i = 0 N 1 e i N ) 2 + 1.01204 i = 0 N 1 ( e i e ¯ ) 2 N 0.0001 2 ,
Figure 14 Best, original and proposed parameters t for each mesh from basic and verification sets
Figure 14

Best, original and proposed parameters t for each mesh from basic and verification sets

where:

e - edge length

N - number of edges

ē - average edge length

By using the improved version of the formula (Eq. 5) we managed to get better results than with the previous one (Eq. 4). This time we can be 95% certain that we got lower median errors for 18 models (one less than results with usage of Eq. 4, in most cases gain value is higher than 30%). This time the original value of t is better in only 6 cases. For 11 models we cannot be sure which solution is better (Figure 15).

Figure 15 Percentage gain within the meaning of median approximation error of using parameter t based on average of standard deviation and average edge length. Only for 6 models original value of t allows to obtain lower median errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 5) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented.
Figure 15

Percentage gain within the meaning of median approximation error of using parameter t based on average of standard deviation and average edge length. Only for 6 models original value of t allows to obtain lower median errors. Gain was calculated by dividing two mean approximation error values: one obtained using parameter t value calculated with the new formula (Eq. 5) and the second one obtained using t value from original formula (Eq. 1). 95% confidence interval values are also presented.

6 Conclusion

The aim of our research was to analyse and modify a method which used heat maps for calculating distances on three-dimensional surfaces. Heat Method algorithm was modified by using a new formula for calculating the value of parameter t. During this work, over a dozen mesh properties related to variable node spacing were analysed in correlation with parameter t. In result, two new formulas for calculating parameter t based on the average of standard deviation and average edge length for a particular mesh were proposed. Then, tests were conducted to verify the proposed solution with various meshes. Results have shown that both new formulas proposed in this article provide better or similar results for mean and median approximation errors than original one in most cases (gain value usually bigger than 20-30%). Thanks to that, we can use a fast algorithm for calculating geodesic distance with higher accuracy than before. Also, the verification set proposed in this paper can be used for future research in the area of geodesic distance calculation.

References

[1] Aleksandrov L., Lanthier M., Maheshwari A., Sack J-R., An ε-approximation for weighted shortest paths on polyhedral surfaces, Proceedings of the 6th scandinavian workshop on algorithm theory, 199810.1007/BFb0054351Search in Google Scholar

[2] Chen J., Han Y., Shortest paths on a polyhedron, Proceedings of the sixth annual symposium on computational geometry. ACM, 199010.1145/98524.98601Search in Google Scholar

[3] Chen J., Yijie H., Shortest paths on a polyhedron, Part I: Computing shortest paths International Journal of Computational Geometry and Applications, 199610.1142/S0218195996000095Search in Google Scholar

[4] Crane K., Weischedel C., Wardetzky M., Geodesics in heat: A new approach to computing distance based on heat flow, ACM Trans Graph, 201310.1145/2516971.2516977Search in Google Scholar

[5] Dijkstra E., A note on two problems in connexion with graphs, Numerische Mathematik, 195910.1007/BF01386390Search in Google Scholar

[6] Geodesic on meshes, https://houdinigubbins.wordpress.com/2017/05/02/geodesics-on-meshes/Search in Google Scholar

[7] Kanai T., Suzuki H., Approximate shortest path on a polyhedral surface based on selective refinement of the discrete graph and its applications, Geometric modeling and processing, 200010.1109/GMAP.2000.838256Search in Google Scholar

[8] Kapoor S., Efficient computation of geodesic shortest paths, Proceedings of the Thirty-First AnnualACM Symposiumon Theory of Computing, 199910.1145/301250.301449Search in Google Scholar

[9] Kimmel R., Sethian JA., Computing geodesic paths on manifolds, Proc Natl Acad Sci USA, 199810.1073/pnas.95.15.8431Search in Google Scholar PubMed PubMed Central

[10] Mitchell JSB., Mount DM., Papadimitriou CH., The discrete geodesic problem, SIAM J Comput, 198710.1137/0216045Search in Google Scholar

[11] Solomon J., Rustamov R., Guibas L., Butscher A., Earth Mover’s distances on discrete surfaces, ACM Trans Graph 201410.1145/2601097.2601175Search in Google Scholar

[12] Surazhsky V., Surazhsky T., Kirsanov D., Gortler SJ., Hoppe H., Fast exact and approximate geodesics on meshes, ACM Trans Graph, 200510.1145/1186822.1073228Search in Google Scholar

[13] Xin SQ., Wang GJ., Improving Chen and Han’s algorithm on the discrete geodesic problem, ACM Trans Graph, 200910.1145/1559755.1559761Search in Google Scholar

[14] Xin SQ., Ying X., He Y., Constant-time all-pairs geodesic distance query on triangle meshes, Proc. ACM SIGGRAPH Symp. Interactive 3D Graph. Games, 201210.1145/2159616.2159622Search in Google Scholar

[15] Xu C., Wang TY., Liu Y., Liu L., He Y., Fast wavefront propagation (FWP) for computing exact geodesic distances on meshes, IEEE Trans Vis Comput Graphics, 201510.1109/TVCG.2015.2407404Search in Google Scholar PubMed

[16] Ying X., Wang X., He Y., Saddle vertex graph (SVG): A novel solution to the discrete geodesic problem, ACM Trans. Graph., 201310.1145/2508363.2508379Search in Google Scholar

[17] Guzek K., Napieralski P.: Efficient rendering of caustics with streamed photon mapping, Bulletin of the Polish Academy of Sciences, Technical Sciences 65(3): pp. 361-368 · June 2017, ISSN 2300-191710.1515/bpasts-2017-0040Search in Google Scholar

[18] Olejnik M., Szajerman D., Napieralski P.: Physically Based Area Lighting Model for Real-Time Animation Computer Vision and Graphics, International Conference, ICCVG 2016, Warsaw, Poland, September 19-21, 2016. Proceedings: pp. 73-8510.1007/978-3-319-46418-3_7Search in Google Scholar

Received: 2019-01-30
Accepted: 2019-03-04
Published Online: 2019-06-08

© 2019 A. Wróblewski and J. Andrzejczak, published by De Gruyter

This work is licensed under the Creative Commons Attribution 4.0 International License.

Articles in the same Issue

  1. Regular Articles
  2. Non-equilibrium Phase Transitions in 2D Small-World Networks: Competing Dynamics
  3. Harmonic waves solution in dual-phase-lag magneto-thermoelasticity
  4. Multiplicative topological indices of honeycomb derived networks
  5. Zagreb Polynomials and redefined Zagreb indices of nanostar dendrimers
  6. Solar concentrators manufacture and automation
  7. Idea of multi cohesive areas - foundation, current status and perspective
  8. Derivation method of numerous dynamics in the Special Theory of Relativity
  9. An application of Nwogu’s Boussinesq model to analyze the head-on collision process between hydroelastic solitary waves
  10. Competing Risks Model with Partially Step-Stress Accelerate Life Tests in Analyses Lifetime Chen Data under Type-II Censoring Scheme
  11. Group velocity mismatch at ultrashort electromagnetic pulse propagation in nonlinear metamaterials
  12. Investigating the impact of dissolved natural gas on the flow characteristics of multicomponent fluid in pipelines
  13. Analysis of impact load on tubing and shock absorption during perforating
  14. Energy characteristics of a nonlinear layer at resonant frequencies of wave scattering and generation
  15. Ion charge separation with new generation of nuclear emulsion films
  16. On the influence of water on fragmentation of the amino acid L-threonine
  17. Formulation of heat conduction and thermal conductivity of metals
  18. Displacement Reliability Analysis of Submerged Multi-body Structure’s Floating Body for Connection Gaps
  19. Deposits of iron oxides in the human globus pallidus
  20. Integrability, exact solutions and nonlinear dynamics of a nonisospectral integral-differential system
  21. Bounds for partition dimension of M-wheels
  22. Visual Analysis of Cylindrically Polarized Light Beams’ Focal Characteristics by Path Integral
  23. Analysis of repulsive central universal force field on solar and galactic dynamics
  24. Solitary Wave Solution of Nonlinear PDEs Arising in Mathematical Physics
  25. Understanding quantum mechanics: a review and synthesis in precise language
  26. Plane Wave Reflection in a Compressible Half Space with Initial Stress
  27. Evaluation of the realism of a full-color reflection H2 analog hologram recorded on ultra-fine-grain silver-halide material
  28. Graph cutting and its application to biological data
  29. Time fractional modified KdV-type equations: Lie symmetries, exact solutions and conservation laws
  30. Exact solutions of equal-width equation and its conservation laws
  31. MHD and Slip Effect on Two-immiscible Third Grade Fluid on Thin Film Flow over a Vertical Moving Belt
  32. Vibration Analysis of a Three-Layered FGM Cylindrical Shell Including the Effect Of Ring Support
  33. Hybrid censoring samples in assessment the lifetime performance index of Chen distributed products
  34. Study on the law of coal resistivity variation in the process of gas adsorption/desorption
  35. Mapping of Lineament Structures from Aeromagnetic and Landsat Data Over Ankpa Area of Lower Benue Trough, Nigeria
  36. Beta Generalized Exponentiated Frechet Distribution with Applications
  37. INS/gravity gradient aided navigation based on gravitation field particle filter
  38. Electrodynamics in Euclidean Space Time Geometries
  39. Dynamics and Wear Analysis of Hydraulic Turbines in Solid-liquid Two-phase Flow
  40. On Numerical Solution Of The Time Fractional Advection-Diffusion Equation Involving Atangana-Baleanu-Caputo Derivative
  41. New Complex Solutions to the Nonlinear Electrical Transmission Line Model
  42. The effects of quantum spectrum of 4 + n-dimensional water around a DNA on pure water in four dimensional universe
  43. Quantum Phase Estimation Algorithm for Finding Polynomial Roots
  44. Vibration Equation of Fractional Order Describing Viscoelasticity and Viscous Inertia
  45. The Errors Recognition and Compensation for the Numerical Control Machine Tools Based on Laser Testing Technology
  46. Evaluation and Decision Making of Organization Quality Specific Immunity Based on MGDM-IPLAO Method
  47. Key Frame Extraction of Multi-Resolution Remote Sensing Images Under Quality Constraint
  48. Influences of Contact Force towards Dressing Contiguous Sense of Linen Clothing
  49. Modeling and optimization of urban rail transit scheduling with adaptive fruit fly optimization algorithm
  50. The pseudo-limit problem existing in electromagnetic radiation transmission and its mathematical physics principle analysis
  51. Chaos synchronization of fractional–order discrete–time systems with different dimensions using two scaling matrices
  52. Stress Characteristics and Overload Failure Analysis of Cemented Sand and Gravel Dam in Naheng Reservoir
  53. A Big Data Analysis Method Based on Modified Collaborative Filtering Recommendation Algorithms
  54. Semi-supervised Classification Based Mixed Sampling for Imbalanced Data
  55. The Influence of Trading Volume, Market Trend, and Monetary Policy on Characteristics of the Chinese Stock Exchange: An Econophysics Perspective
  56. Estimation of sand water content using GPR combined time-frequency analysis in the Ordos Basin, China
  57. Special Issue Applications of Nonlinear Dynamics
  58. Discrete approximate iterative method for fuzzy investment portfolio based on transaction cost threshold constraint
  59. Multi-objective performance optimization of ORC cycle based on improved ant colony algorithm
  60. Information retrieval algorithm of industrial cluster based on vector space
  61. Parametric model updating with frequency and MAC combined objective function of port crane structure based on operational modal analysis
  62. Evacuation simulation of different flow ratios in low-density state
  63. A pointer location algorithm for computer visionbased automatic reading recognition of pointer gauges
  64. A cloud computing separation model based on information flow
  65. Optimizing model and algorithm for railway freight loading problem
  66. Denoising data acquisition algorithm for array pixelated CdZnTe nuclear detector
  67. Radiation effects of nuclear physics rays on hepatoma cells
  68. Special issue: XXVth Symposium on Electromagnetic Phenomena in Nonlinear Circuits (EPNC2018)
  69. A study on numerical integration methods for rendering atmospheric scattering phenomenon
  70. Wave propagation time optimization for geodesic distances calculation using the Heat Method
  71. Analysis of electricity generation efficiency in photovoltaic building systems made of HIT-IBC cells for multi-family residential buildings
  72. A structural quality evaluation model for three-dimensional simulations
  73. WiFi Electromagnetic Field Modelling for Indoor Localization
  74. Modeling Human Pupil Dilation to Decouple the Pupillary Light Reflex
  75. Principal Component Analysis based on data characteristics for dimensionality reduction of ECG recordings in arrhythmia classification
  76. Blinking Extraction in Eye gaze System for Stereoscopy Movies
  77. Optimization of screen-space directional occlusion algorithms
  78. Heuristic based real-time hybrid rendering with the use of rasterization and ray tracing method
  79. Review of muscle modelling methods from the point of view of motion biomechanics with particular emphasis on the shoulder
  80. The use of segmented-shifted grain-oriented sheets in magnetic circuits of small AC motors
  81. High Temperature Permanent Magnet Synchronous Machine Analysis of Thermal Field
  82. Inverse approach for concentrated winding surface permanent magnet synchronous machines noiseless design
  83. An enameled wire with a semi-conductive layer: A solution for a better distibution of the voltage stresses in motor windings
  84. High temperature machines: topologies and preliminary design
  85. Aging monitoring of electrical machines using winding high frequency equivalent circuits
  86. Design of inorganic coils for high temperature electrical machines
  87. A New Concept for Deeper Integration of Converters and Drives in Electrical Machines: Simulation and Experimental Investigations
  88. Special Issue on Energetic Materials and Processes
  89. Investigations into the mechanisms of electrohydrodynamic instability in free surface electrospinning
  90. Effect of Pressure Distribution on the Energy Dissipation of Lap Joints under Equal Pre-tension Force
  91. Research on microstructure and forming mechanism of TiC/1Cr12Ni3Mo2V composite based on laser solid forming
  92. Crystallization of Nano-TiO2 Films based on Glass Fiber Fabric Substrate and Its Impact on Catalytic Performance
  93. Effect of Adding Rare Earth Elements Er and Gd on the Corrosion Residual Strength of Magnesium Alloy
  94. Closed-die Forging Technology and Numerical Simulation of Aluminum Alloy Connecting Rod
  95. Numerical Simulation and Experimental Research on Material Parameters Solution and Shape Control of Sandwich Panels with Aluminum Honeycomb
  96. Research and Analysis of the Effect of Heat Treatment on Damping Properties of Ductile Iron
  97. Effect of austenitising heat treatment on microstructure and properties of a nitrogen bearing martensitic stainless steel
  98. Special Issue on Fundamental Physics of Thermal Transports and Energy Conversions
  99. Numerical simulation of welding distortions in large structures with a simplified engineering approach
  100. Investigation on the effect of electrode tip on formation of metal droplets and temperature profile in a vibrating electrode electroslag remelting process
  101. Effect of North Wall Materials on the Thermal Environment in Chinese Solar Greenhouse (Part A: Experimental Researches)
  102. Three-dimensional optimal design of a cooled turbine considering the coolant-requirement change
  103. Theoretical analysis of particle size re-distribution due to Ostwald ripening in the fuel cell catalyst layer
  104. Effect of phase change materials on heat dissipation of a multiple heat source system
  105. Wetting properties and performance of modified composite collectors in a membrane-based wet electrostatic precipitator
  106. Implementation of the Semi Empirical Kinetic Soot Model Within Chemistry Tabulation Framework for Efficient Emissions Predictions in Diesel Engines
  107. Comparison and analyses of two thermal performance evaluation models for a public building
  108. A Novel Evaluation Method For Particle Deposition Measurement
  109. Effect of the two-phase hybrid mode of effervescent atomizer on the atomization characteristics
  110. Erratum
  111. Integrability analysis of the partial differential equation describing the classical bond-pricing model of mathematical finance
  112. Erratum to: Energy converting layers for thin-film flexible photovoltaic structures
Downloaded on 16.9.2025 from https://www.degruyterbrill.com/document/doi/10.1515/phys-2019-0027/html
Scroll to top button