Next Article in Journal
An EEG Feature Extraction Method Based on Sparse Dictionary Self-Organizing Map for Event-Related Potential Recognition
Next Article in Special Issue
Using Zigzag Persistent Homology to Detect Hopf Bifurcations in Dynamical Systems
Previous Article in Journal
Blind Quality Evaluation for Screen Content Images Based on Regionalized Structural Features
Previous Article in Special Issue
Detecting Traffic Incidents Using Persistence Diagrams
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Efficient Data Retrieval Parallel Reeb Graph Algorithm

1
Department of Mathematics and Computer Science, Santa Clara University, Santa Clara, CA 95053, USA
2
Department of Computer Science and Engineering, University of South Florida, Tampa, FL 33620, USA
*
Author to whom correspondence should be addressed.
Submission received: 15 August 2020 / Revised: 22 September 2020 / Accepted: 22 September 2020 / Published: 12 October 2020
(This article belongs to the Special Issue Topological Data Analysis)

Abstract

:
The Reeb graph of a scalar function that is defined on a domain gives a topologically meaningful summary of that domain. Reeb graphs have been shown in the past decade to be of great importance in geometric processing, image processing, computer graphics, and computational topology. The demand for analyzing large data sets has increased in the last decade. Hence, the parallelization of topological computations needs to be more fully considered. We propose a parallel augmented Reeb graph algorithm on triangulated meshes with and without a boundary. That is, in addition to our parallel algorithm for computing a Reeb graph, we describe a method for extracting the original manifold data from the Reeb graph structure. We demonstrate the running time of our algorithm on standard datasets. As an application, we show how our algorithm can be utilized in mesh segmentation algorithms.

1. Introduction

Recent years have witnessed extensive research in topology-based methods to analyze and study data [1,2]. The popularity of topology-based techniques comes from the generality and the robustness of the techniques and their applicability to a wide range of areas. The Reeb graph [3] has been one of the most successful topological tools in data analysis and data understanding. The Reeb graph is a data structure that is associated with a scalar function defined on a manifold. It gives an efficient topological summary for the manifold by encoding the evolution of the connectivity of its level sets. Reeb graphs, and their loop-less version, contour trees [4], are of fundamental importance in computational topology, geometric processing, image processing, computer graphics, and, more recently, data analysis and visualization. Examples of Reeb graph applications include quadrangulation [5], shape understanding [6], surface understanding and data simplification [7], parametrization [8,9], segmentation [10], animation [11], feature detection [12], data reduction and simplification [13,14], image processing [15], visualization of isosurfaces [16], and many others.
The past decade has witnessed an increase of large geometric data on which a scalar field is defined. This has yielded several challenges for the time efficiency of computing topological structures on such data. The parallelization of the utilized algorithms is a natural direction one should take in order to improve the computational-time efficiency. In this article, we introduce an efficient shared memory parallel algorithm in order to compute the Reeb graph from a scalar function defined on a triangulated surface with or without a boundary. In addition, our algorithm provides a fast method for retrieving the surface data from the constructed Reeb graph. The data consists of the Reeb graph as well as the map that goes from the Reeb graph back to the manifold, called the augmented Reeb graph [17]. For this purpose, we define an explicit map that associates the Reeb graph data to its corresponding data on the manifold. As an application, we show how the Reeb graph can be used to identify and calculate curves with certain homological properties on a surface. Finally, we show how the data retrieval aspect of our algorithm, along with the curves that are extracted from the Reeb graph structure, can be used for mesh segmentation and mesh parameterization.

Prior Work and Contribution

Reeb graph literature is vast and it ranges from the computational accuracy of the graph to its applications in data analysis and visualization. We provide an overview here.
Reeb Graph Algorithms.
The first provably correct algorithm to compute a Reeb graph on a triangulated surface was presented by Shinagawa and Kunii in [18]. They computed the Reeb graph in O ( n 2 ) time, where n in the number of triangles in the mesh. This time was later improved to O ( n log ( n ) ) by Cole-McLaughlin et al. [19].
Reeb graphs have also been studied for higher-dimensional manifolds and simplicial complexes. An algorithm for computing Reeb graph for a 3-manifold embedded in R 3 is proposed in [20]. The first Reeb graph algorithm on an arbitrary simplicial complex is given in [21]. This algorithm can handle a non-manifold input, but its worse case time complexity is quadratic. Reeb graph for a varying scalar function is studied in [22]. Other Reeb graphs algorithms can be found in [17,23,24,25,26]. Approximate Reeb graphs algorithms can be found in [7,27]. However, such algorithms may lead to inaccurate results. Data retrieval from the Reeb graphs, also referred to as augmented Reeb graphs, has also been studied, and some algorithms have been presented, for instance [28,29,30].
A loop-free Reeb graph, which is also called a contour tree, has been used extensively in data analysis and data visualization. Algorithms for computing such graphs can be found in [21,24,31,32,33]. Contour tree have been used for scientific visualization [34], volume rendering [35], and terrain applications [36,37]. Contour tree data retrieval is studied in [38]. For a thorough introduction to the contour tree and its applications, the reader is referred to [31,39] and the references within.
Reeb Graph Generalizations.
Reeb graphs have also been used to study and analyze point cloud data. The applications are numerous, including data skeletonization [28], retrieving topological information from point data such as homology group computation [40,41], locus cut [42], data abstraction [43], and recovering structural information of a scalar function on a point data [44]. In the context of point clouds, a relatively recent construction, named Mapper [45], has received a lot of attention, as it generalizes both the Reeb graph and contour tree. Mapper has found numerous applications [46,47,48,49] and it has been studied from multiple perspectives [50,51,52,53].
Applications of the Reeb Graph.
There is a rich literature in computer graphics regarding the use of the Reeb graphs. Reeb graphs have been used in mesh segmentation [54], shape similarity [55], shape matching [56], feature-extraction [16], surface reconstruction [57], extracting tunnel and handle loops of a surface [58], removing tiny handle in an isosurface [59], and shape matching [27]. Also see [30] for further applications of Reeb graph in computer graphics.
Parallelization of Topological Structures.
The demand to compute large data sets has increased in the last decade and, hence, the consideration of topological computations parallelization. Multiple attempts have been made in this direction, including multicore homology computation [60], spectral sequence parallelization [61], distributed contour tree [38,62], distributed merge tree [63], alpha complexes [64], and distributed Mapper [65].
Contributions. 
In this paper, we give a parallel Reeb graph algorithm on arbitrary triangulated mesh with and without a boundary. We prove the correctness of our method while using fundamental theorems in Morse Theory. Moreover, we discuss the performance results that compare our approach to a reference sequential Reeb graph algorithm [26]. We then show how we can use the Reeb graph to retrieve certain curves on the manifold. Finally, we utilize the data retrieval aspect of our algorithm and give an application to surface segmentation. Specifically, this article has the following contributions:
  • We give an efficient parallel algorithm that computes the Reeb graph of a piece-wise linear function defined on a triangulated 2-manifold with and without a boundary.
  • Our method can be used to retrieve the manifold data from the Reeb graph. In other words, given a point in the Reeb graph, we give an efficient method for retrieving the manifold data that correspond to that point. This feature, as well as feature (1), makes our algorithm an augmented Reeb graph algorithm.
  • We show how the homological properties of a Reeb graph can be used to extract certain curves on a surface, and we utilize our algorithms to give a mesh segmentation algorithm.
  • The algorithms that are presented here are easy to implement and require minimal memory storage.

2. Morse Theory and Reeb Graphs

In this section, we review the basic background needed in this paper. We start by reviewing the basics of Morse theory and Reeb graphs on smooth manifolds. Susequently, we discuss the corresponding piece-wise linear version. For more details on Morse theory, the reader is referred to [66,67].

2.1. Morse Theory

Morse Theory is a tool from differential topology that is concerned with the relations between the geometric and topological aspects of manifolds and the real-valued functions that are defined on them. One of the primary interests in this theory is the relationship between the topology of a smooth manifold M and the critical points of a real-valued smooth function f defined on M. Intuitively, Morse theory studies the topological changes of the level sets of a real-valued smooth function as the height of f varies. Morse [68] first introduced Morse theory for infinite dimensional spaces. A comprehensive introduction to Morse theory on finite-dimensional manifolds is given in [69]. Additionally, see [66,67]. Morse theory has been proven to be a very useful tool in computer graphics and geometric data processing and understanding. The theory was extended to triangulated 2-manifolds by [70]. Recently, Morse theory has found applications in global surface parameterization [71], finding a fundamental domain of a surface [72], surface quadrangulation [73], topological matching [27], implicit surfaces [74], surface segmentation [75], spline construction [76], and many other applications.
Let M be a compact and smooth n-manifold and let I = [ a , b ] R , where a < b , be a closed interval. Let f : M I be a smooth function that is defined on M. A point x M is called a critical point of f if the differential d f x is zero. A value c in R is called a critical value of f if f 1 ( c ) contains a critical point of f. A point in M is called a regular point if it is not a critical point. Similarly, if a value c R is not a critical value, then we call it a regular value. The inverse function theorem implies that for every regular value c in I, the level set f 1 ( c ) is a disjoint union of n 1 manifolds. In particular, when n = 2 , then f 1 ( c ) is a disjoint union of simple closed curves. A critical point is called non-degenerate if the matrix of the second partial derivatives of f, called the Hessian matrix, is non-singular. A differentiable function f : M I is called Morse if all of its critical points are non-degenerate, and all critical values are distinct. If the manifold M has a boundary, i.e., M , then we will also require two other conditions: (1) f 1 ( I ) = M and (2) there are no critical points on M . In other words, the boundary points in the interval I, the values in I , are regular values for the function f. The index of a critical point x of f, as denoted by i n d e x f ( x ) , is defined to be the number of negative eigenvalues of its Hessian matrix. For instance, the Hessian of a scalar function on a smooth surface is a 2 × 2 symmetric matrix. Hence, the index of f on a critical point takes the values 0, 1, or 2. In this case, an index 0, 1, or 2 of a critical point of a function f is nothing more than a local minimum, a saddle, or a local maximum for f, respectively.
If f is a Morse function on a surface, then, up to a change of coordinates, the surface around a critical point f has one of the simple forms as appear in Figure 1. More formally, we have the following important Lemma:
Lemma 1.
(Morse Lemma) Let M be a smooth surface, f : M R be a smooth function, and p be a non-degenerate critical point of f. We can choose a chart ( ϕ , U ) around p, such that f ϕ 1 takes exactly one of the following three forms:
1. 
Local minimum— f ϕ 1 ( X , Y ) = X 2 + Y 2 + c
2. 
Saddle— f ϕ 1 ( X , Y ) = X 2 Y 2 + c
3. 
Local maximum— f ϕ 1 ( X , Y ) = X 2 Y 2 + c
An analogous lemma holds for Morse functions on higher dimensional smooth manifolds. See [66] for more details. Morse Lemma implies that a Morse function around a critical point looks simple, and it is exactly one of the forms given in the Lemma above, up to a change of coordinates. Notice that the number of minus signs in the standard form of the function f around p is equal to the index of the critical point p.

2.2. Reeb Graphs

Let M be a topological space and let f : M R be a scalar function defined on M. The Reeb graph of the pair f and M gives a summary of the topological information encoded in by tracking changes occurring to the connected components of the level sets of f. More precisely, the Reeb graph of M and f is the quotient space R ( M , f ) of M defined, as follows. We say that the x and y are equivalent in M, and write x y , if and only if they belong to the same connected component of f 1 ( r ) for some r R . The quotient space M / = R ( M , f ) with the quotient space topology induced by the quotient map π : M R ( M , f ) is called the Reeb graph of M and f. Here, recall that the map π takes a point x in M to its equivalence class [ x ] in R ( M , f ) . Given a point p in R ( M , f ) , it is often important in practice to retrieve the set of points in M that map to p via π . In this article, we provide an efficient method to retrieve the data in M that are associated with a point on a Reeb graph.
The map π induces a continuous function f ¯ : R ( M , f ) R , where f ¯ ( p ) = f ( x ) if p = π ( x ) . This map is well defined, since f ( x ) = f ( y ) , whenever π ( x ) = π ( y ) .
When M is a manifold and f is Morse, then R ( M , f ) exhibits certain additional properties. For instance, in this case, every vertex of R ( X , f ) arises from a critical point of f or a boundary component. Furthermore, every maximum or minimum of f gives rise to a degree 1-node of R ( M , f ) . Saddle points for a Morse function f defined on a 2-manifold have degree 3-node. This is not guaranteed if the scalar function is not Morse. See Figure 2 for an example of a Reeb graph.

3. Reeb Graphs on Triangulated Surfaces

3.1. Morse Functions in the Piece-Wise Linear Setting

In this paper, we will be working with triangulated surfaces. We will denote the set of vertices, edges, and faces of a triangulated mesh M by V ( M ) , E ( M ) , and F ( M ) , respectively. Banchoff provided the extension of Morse theory to triangulated manifolds [70]. Let M be a triangulated 2-manifold and let f : M [ a , b ] R be a piece-wise linear function on M. We will use the abbreviation PL for “piece-wise linear”. The star of v, denoted by s t a r ( v ) , is the set of simplices that intersect with the vertex v. The closure s t a r ( v ) ¯ of s t a r ( v ) is the smallest simplicial subcomplex of M that contains s t a r ( v ) . The link L k ( v ) consists of the subcomplex of M of simplices belonging to s t a r ( v ) ¯ , but not to s t a r ( v ) . The upper link of v is defined to be the set:
L k + ( v ) = { u L k ( v ) : f ( u ) > f ( v ) } { [ u , v ] s t a r ( v ) ¯ : f ( u ) > f ( v ) } ,
the lower link is defined similarly by:
L k ( v ) = { u L k ( v ) : f ( u ) < f ( v ) } { [ u , v ] s t a r ( v ) ¯ : f ( u ) < f ( v ) } ,
and mixed link
L k ± ( v ) = { [ u 1 , u 2 ] L k ( v ) : f ( u 1 ) < f ( v ) < f ( u 2 ) } .
Using the link definitions, we classify vertices of M, as follows. A vertex v in M is PL regular if the cardinality | L k ± ( v ) | of L k ± ( v ) is equal to 2. If | L k + ( v ) | = 0 , then v is a PL maximum vertex with index 1, and if | L k ( v ) | = 0 , then v is a PL minimum with index 0. If | L k ± ( v ) | = 2 + 2 m , then v is a PL saddle with index 1 and multiplicity m 1 . See Figure 3. A PL function f : V [ a , b ] R is a PL Morse function if each vertex is either PL regular or PL simple, and the function values of the vertices are distinct. Similar to the smooth case, when M , we further assume that f satisfies: (1) f 1 ( [ a , b ] ) = M and (2) there are no critical points on M .

3.2. Reeb Graphs of General Simplicial Complexes

Reeb graph can be defined naturally on arbitrary simplicial complexes. Let K be a simplicial complex and f : V ( K ) R be a map defined on the vertices of K. The map f can be linearly extended to all simplices of K to PL function, which we will also denote denote by f. Using this function, the Reeb graph of ( K , f ) can be defined as before.

4. Reeb Graph Sequential Algorithm on Triangulated Surfaces

In this section, we assume that we are given a PL function f : M R defined on a triangulated surface M possibly with a non-empty boundary M . This includes the case when f is a Morse function. Subsequently, we discuss the degenerate case when f has non-simple saddles.
The algorithm above relies on Morse theory to find a finite set of paths traced concurrently inside parts of the manifold where the topology of the manifold with respect to a given scalar function does not change. The sequential algorithm that we present here is similar to the Reeb graph algorithm that is given in [26], where tracing paths inside cylinders were used to construct the Reeb graph. We provide the sequential version of the algorithm because it has some key differences from the algorithm given [26] that will be utilized later in our parallel algorithm.
The main idea of the algorithm is the construction of a sub-simplicial complex X of M, such that the Reeb graph R ( X , f | X ) of X with respect to f | X , the restriction of f on X, is identical to the Reeb graph R ( M , f ) . The constructed simplicial complex X does not only provide us with a Reeb graph of ( M , f ) , but also immediately implies an algorithm to compute the map F : R ( M , f ) M that allows for us to extract the manifold data given the corresponding Reeb graph points. The main two ingredients of the algorithm are the critical sets and the ascending paths. We introduce these two concepts next.

4.1. Critical Sets and Ascending Paths

We start by giving the definition of critical sets. Subsequently, we provide the definition of ascending paths.
Critical Sets.
Let p be a saddle point of f, and let t p be its corresponding critical value. Consider the connected components of the set f 1 ( t p ) . The connected components of f 1 ( t p ) consist of a collection of simple closed curves embedded in M, as well as a single component, which contains a singularity. This singular set consists of multiple circles that intersect at the critical point p. We will denote this singular set by C p . See Figure 4 for an example. Note that, for critical value t f 1 ( t p ) might merely consist of the critical set C p (with no other simple closed curves).
Choose ϵ > 0 small enough, such that the interval [ t p ϵ , t p + ϵ ] has only the critical value t p . As we move from t p to t p ϵ , the singular set C p becomes a non-singular one consisting of a disjoint union of simple closed curves A 1 , A n , for n 1 . By convention, we will consider the sets A 1 , , A n to be the connected components of the singular set C p , and we will refer to them as such for the rest of the paper. We talk more about the components of a critical set and show exactly how to determine them in the piece-wise linear setting in Section 4.2.1. The following Lemma asserts that the number of connected components of C p of for a simple saddle point of a Morse function defined on the surface is either 1 or 2.
Lemma 2.
Let M be a compact connected orientable surface with more than one boundary component. Let M [ a , b ] be a Morse function on M such that f 1 ( ( [ a , b ] ) ) = M . If f has a unique saddle point, then M is homeomorphic to a pair of pants. See Figure 5.
For a regular value t, we will denote the number of simple closed curves of f 1 ( t ) by | f 1 ( t ) | . Lemma 2 implies that, for a sufficiently small enough ϵ and for any saddle point p on a Morse function f, one has | f 1 ( t p + ϵ ) | | f 1 ( t p ϵ ) | = ± 1 . In other words, as we are passing through a saddle point p, two circles merge or split. Figure 5 shows two types of saddles: a split saddle and a merge saddle. A saddle point p is a split saddle if | f 1 ( t p + ϵ ) | | f 1 ( t p ϵ ) | = 1 , and it is a merge saddle if | f 1 ( t p + ϵ ) | | f 1 ( t p ϵ ) | = 1 .
The sequential version of the algorithm relies on Lemma 2 to handle the case when the function f is Morse and it only has simple saddle points. The case when f has saddle points with higher multiplicities will be handled in Section 4.5.
Remark 1.
If p is a maximum or minimum point, then by definition, C p will be the set that consists of the point p itself.
Ascending Paths.
The second main ingredient of the sequential Reeb graph algorithm is a collection of curves that we trace inside the manifold M using the function values. More precisely, an ascending path from a non-maximum vertex v 0 , denoted by a p a t h ( v 0 ) , is defined to be a finite sequence of consecutive edges { [ v 0 , v 1 ] , , [ v k 1 , v k ] } on M, such that [ v i , v i + 1 ] is an edge on M for 0 i k 1 , f ( v i + 1 ) > f ( v i ) , and v k is a maximum, a boundary or a saddle vertex.

4.2. Outline of the Sequential Algorithm

Now, we present the outline of the sequential Reeb graph algorithm. We assume that we are given a triangulated PL Morse function f : M [ a , b ] R defined on triangulated mesh M without boundary. The case when the function f is not Morse, or when the M has a boundary, will be discussed in later sections.
The sequential Reeb graph algorithm is given in the following steps:
  • We start by sorting the critical points of f by their critical values. Let C P be the set of the sorted critical points of f in an ascending order.
  • For each critical point of the function f, we define a node in the Reeb graph R ( M , f ) . In other words, the node set of the graph R ( M , f ) precisely corresponds to the set of critical points of the function f defined on M.
  • For each critical point v in C P , we compute the critical set C v .
  • For each saddle or a minimum vertex v in C P , we associate one or two ascending paths on the mesh: one ascending path if v is a minimum or a merge saddle, and two paths if v is a split saddle. For each ascending path, we march with until this path intersects with the first critical C w set with a higher critical value than of t v . At this point, we insert an edge for the Reeb graph R ( M , f ) between the vertex v and vertex w.
Figure 6 illustrates the steps of the algorithm. It remains to describe two aspects of the previous algorithm: the construction of the critical sets mentioned in step (3) and the construction of the ascending paths that are mentioned in step (4).

4.2.1. Construction of the Critical Sets

We now describe how to compute the critical set of a critical point in the piece-wise setting. As before, we assume that f : M [ a , b ] R a piece-wise linear function is defined on a triangulated surface M, and it takes distinct values on the vertices of M. This assumption will guarantee that, for a given value t, the level curve f 1 ( t ) intersects with, at most, one vertex of M.
Now, let t R . The cross simplices C R f ( t ) of the value t is the union of all simplices of M, which intersect with the level curve f 1 ( t ) . This is the set of vertices, edges, and faces in M, which intersect with the level curve f 1 ( t ) . We define C R f ( t ) ¯ to be the closure of the smallest subcomplex of M, which contains C R f ( t ) . If f 1 ( t ) = v for a vertex v in V ( M ) , then we define the subcomplex C R f ( t ) ¯ as above, but we also add to it the simplices of s t a r ( v ) ¯ .
When t is the maximal or the minimal value, then C R f ( t ) consists of a single vertex v t . In this case, C R f ( t ) ¯ is simply s t a r ( v t ) ¯ . When t is a regular value, then C R f ( t ) ¯ is a disjoint union of topological cylinders, that is, C R f ( t ) ¯ appears as a “thickened” band around the curve f 1 ( t ) . Note that, when the value t that corresponds to a vertex v in V ( M ) with f ( v ) = t for some v in M, then the set of simplices in the intersection C R f ( t ) f 1 ( t ) is simply the vertex { v } . When t is the critical value of a saddle point, then the curve f 1 ( t ) consists of a finite collection of simple close curves that meet at the saddle point, and the set C R f ( t ) ¯ can be seen as the thickened band of these curves. See Figure 7.
The ower level of the cross subsimplex of a value t, denoted by L ( C R f ( t ) ¯ ) , is the set of vertices and edges in C R f ( t ) ¯ , which have values less than or equal to t. Similarly, the higher level of the cross subsimplex of a value t, denoted by H ( C R f ( t ) ¯ ) , is the set of vertices and edges in C R f ( t ) ¯ , which have values higher than or equal to t. See Figure 7.
Recall the notion of the connected component of a critical set from Section 4.1. Specifically, for a critical vertex v with a critical value t v , we talked about the connected components of the critical set C v . Using the definitions that are introduced in this section, we can compute the connected components of the critical set C v in the piece-wise linear setting by considering the connected components of L ( C R f ( t v ) ¯ ) .

4.2.2. Construction of the Ascending Paths

The ascending paths from a critical point v 0 are specified, as follows:
  • If v 0 is a merge saddle or a minimum, then we initiate a single ascending path a p a t h ( v 0 ) specified, as follows. Let v 1 be a vertex in L k + ( v 0 ) such that f ( v 1 ) > f ( v 0 ) . At the kth iteration, a p a t h ( v 0 ) consists of { [ v 0 , v 1 ] , , [ v k 1 , v k ] } with f ( v i + 1 ) > f ( v i ) for 0 i k 1 .
  • If v 0 is a split saddle, then we start two ascending paths P 1 and P 2 originating from the point p specified as follows. Divide the set L k + ( p ) into two disconnected components A and B. Choose the vertex v A in A, such that f ( v A ) > f ( v ) for all v A , and choose the vertex v B in a similar manner. At the kth iteration, P 1 consists of { [ v 0 , v A ] , , [ v k 1 , v k ] } with f ( v i ) > f ( v i 1 ) for 0 i k 1 (here we assume v 1 = v A ). The path P 2 is similarly constructed.

4.2.3. Termination of an Ascending Path

The condition at which we terminate the ascending paths we initiated in step ( 4 ) is specified as follows. Assume that we initiated an ascending path from a critical vertex v. Let w be the critical vertex with the critical value t w right after the critical value t v of v. Assume that, at the kth iteration, an ascending path starting from the vertex v is { [ v , v 1 ] , , [ v k 1 , v k ] } . We continue this iteration until we arrive at an edge E n = [ v n 1 , v n ] with f ( v n ) t w and f ( v n 1 ) < t w . At this point, we check the condition C w E n . If this condition is satisfied, then we insert an edge for the Reeb graph R ( M , f ) between the vertex v and the vertex w. If C w E n = , then we keep marching until an edge in the ascending path meets a critical point w that satisfy these two conditions. Note that w can be either a saddle or maximum vertex.
The check of intersection between the edge E n in an ascending path and a critical set C w , as mentioned in step (4), can be done by checking if E n belongs with C R f ( w ) .
Remark 2.
It is important to notice how an ascending path corresponds to an edge in the Reeb graph. The ascending path starts at a critical point p with a critical value t p and terminates at a critical set that corresponds to a critical point q with a critical value t q with t q > t p . More precisely, an ascending path starts at one of the connected components of the upper link of a critical point p and ends at one of the connected components of the critical sets C q . If two ascending paths start at two different connected components of the upper link of p, but still end up in the same connected component of C q , then these two paths correspond to the exact same edge in the Reeb graph. Therefore, only one of these ascending paths corresponds to an edge in the final Reeb graph. For this reason, we say that each ascending path starting from a connected component of the upper star of a vertex gives rise to a potential edge in the Reeb graph. We provide more details on this point in Section 4.5.

4.3. Surfaces with Boundaries

In the case when the surface M has a boundary, we modify the previous algorithm, as follows. In this case, f 1 ( I ) = f 1 ( a ) f 1 ( b ) is not empty and consists of a finite collection of simply closed curves. We treat each connected component of f 1 ( a ) as a minimal point, and we treat the boundary f 1 ( b ) as a maximum point. More precisely, the following modifications are added to the previous algorithm from Section 4.2.
  • In step ( 2 ) , each connected component in f 1 ( I ) is considered a vertex in the Reeb graph vertex set.
  • In step ( 3 ) , for each boundary component in f 1 ( a ) , we pick an arbitrary vertex on the boundary and initiate an ascending path that starts from that vertex.
  • In step ( 4 ) , if an ascending path starting at a vertex v reaches a boundary vertex w in one of the connected components, say B n d r y w , of f 1 ( b ) , then we insert an edge in the Reeb graph R ( M , f ) between the vertex v and vertex in R ( M , f ) that corresponds to B n d r y w .
We denote the subcomplex obtained from M using the previous algorithm by X M , f . In other words, X M , f consists of the critical sets C p for all critical points p, as well as the ascending paths we initiated at the saddle, minimum, or boundary vertices. When M and f are clear from the context, we will denote X M , f simply by X.

4.4. Correctness of the Sequential Algorithm

For a function f : M [ a , b ] and c R define:
M c : = { x M | f ( x ) c } .
Note that we allow M c to be empty. Moreover, we define:
M [ c , d ] : = { x M | c f ( x ) d } .
The correctness of our algorithm relies on the following two facts:
  • The only topological changes to the level sets of f occur when as pass a critical point. This is formally stated in Theorem 1.
  • The structure of the manifold around a critical point is completely determined by the index of that critical point. We give this in Theorem 2.
The proof of Theorems 1 and 2 can be found in [69].
Theorem 1.
Let f : M [ a , b ] be a smooth function on a smooth surface M. For two reals a , b with a < a < b < b , if f has no critical values in the interval [ a , b ] , then the surfaces M a and M b are homeomorphic.
The above algorithm relies on Theorem 1. Namely, as we trace an ascending path, we assume that no topological change occurs until we reach the next critical point. The ascending path may not terminate at the next critical point, provided the part of the manifold in which this path is traveling in has not changed its topology. This will become more evident after we provide the next theorem, which shows the exact structure of M [ c , d ] around a critical point.
Theorem 2.
Let M be a compact connected surface, possibly with a boundary, and let f : M [ a , b ] be a Morse function on M. Let p be a critical point and let t be its corresponding critical value. Let ϵ > 0 be small enough, so that I ϵ : = [ ϵ t , ϵ + t ] has only the critical value t.
1. 
If i n d e x ( p ) is equal to 0 or 2, then M I ϵ is homeomorphic to a disjoint union of a disk and a finite number of topological cylinders (that is a genus zero surface with two boundary components).
2. 
If i n d e x ( p ) = 1 , then M I ϵ is homeomorphic to a pair of pants and a finite number of topological cylinders.
The previous two theorems show that for a given Morse f function on M, we can arrange M so that at each critical point, only a single topological event occurs, and this topological event occurs around the critical point. Moreover, we know exactly what topological event occurs by considering the index of the critical point. Figure 8 illustrates this.
Moreover, subcomplex X M , f constructed in the algorithm has the same Reeb graph structure of that of M around the critical points. See Figure 10.
This shows that any two-manifold can be built from the building blocks in Figure 9. Moreover, Theorem 2 shows that the restriction of f on M I ϵ has the shapes that are given in Figure 10. In other words, this gives us the structure of the Reeb graph around an interval I ϵ that contains a single critical value.
Now, let e = ( p , q ) be an edge in a Reeb graph R ( M , f ) connecting between the two nodes p and q, which correspond to critical points of f. For each such edge, we can find a preimage arc E in M that is mapped to R ( M , f ) via the map π : M R ( M , f ) . The preimages of the value p and q under π are the critical set C p and C q in M, respectively. Hence, each arc E must start at a point A in C p and end at a point in B in C q . Each arc on M characterizes the edge e.
An ascending path that is constructed in the sequential algorithm essentially traces an arc in the way described above. Namely, for a critical point p, with a critical value f ( p ) , an ascending path created at a point p will terminate at a critical point q with f ( q ) > f ( p ) . This termination occurs when we pass through the critical set of the point q.

4.5. Dealing with Degenerate Cases

It is possible in practice to obtain a scalar function with saddle points that have multiplicity m 2 . The algorithm that we present in Section 4.2 can be extended to handle such cases. We need to make the following modifications.
  • In step (3), we calculate the connected components of the critical set C p . Here, it is not enough to calculate the critical set C p . We also need to compute the connected components of this set. Section 4.2.1 explains this.
  • We create an ascending path for each connected component in L k + ( p ) when the multiplicity m of a split saddle p is greater than or equal to 2.
In the non-degenerate case, every ascending path corresponds to an edge in the Reeb graph. This is not the case anymore in the degenerate case. Nect, we describe the sequential algorithm of the Reeb graph when f has degenerate critical points.
  • Sort the critical points of f an in ascending order. Let C P = { v 1 , , v n } be this set. This represents the vertex set of the Reeb graph, as we did before.
  • For each v in C P , compute the connected components of C v and include all of these components in a single container S . We will denote, by B i j , the connected component j of the critical set C v i . In this way, we index all of the elements in S .
  • Declare each set B i j of S as not visited.
  • For each critical point v i in C P and for each component in L k + ( v i ) , we initiate an ascending path P as described in Section 4.2.2. For each such path, we determine the connected component B k l in S , which the path terminates, as described in Section 4.2.1. We have two cases:
    (a)
    If the connected component B k l is not visited, then we insert an edge between v i and v k and mark the component B k l as visited.
    (b)
    If the connected component B k l is visited, then we do not make any changes to the Reeb graph and terminate the current ascending path. In this case, the ascending path corresponds to an edge that already exists in the Reeb graph. See Remark 2.
Note that the above procedure can be used to determine the edges that originate from a simple saddle. Namely, we do not need to check the type of the simple saddle point (merge or split) in step (3) of the algorithm given in Section 4.2, and for any saddle point, we use the above procedure instead.

5. Parallelization of the Algorithm

In this section, we give the details of our strategy to compute the Reeb graph in parallel. We describe the three stages of the parallel algorithm as follows.
  • The Partition Stage. In this stage, we partition the manifold M into submanifolds, such that the vertices counts of each submanifold are approximately equal to each other.
  • Computing the Reeb Graph for the Submanifold Stage. Computing the Reeb graphs for each submanifold obtained from stage one concurrently.
  • The Gluing Stage. In this step, we glue the Reeb graphs that were obtained from stage 2.

5.1. The Partition Stage

In this first stage of the parallel algorithm, we sort the vertices of the manifold with respect to the function f. This step can be done efficiently in parallel [77,78]. The critical sets for saddle points are then determined by assigning a thread to each saddle point. This computation is only necessary to determine the number of ascending paths that we need to initiate from that saddle point. Next, we partition the manifold M to submanifolds along with certain regular values of the scalar function f. More precisely, the partition stage is given, as follows:
  • Compute the critical points of f by assigning a thread to each vertex in M. Let p 1 , p 2 , , p n be the list of critical points of f, and let t 1 , t 2 , , t n be their corresponding critical values.
  • We choose k regular values C = { c 1 , , c k } of f. These values will be utilized to slice the manifold M into k + 1 submanifolds M 1 , , M k + 1 , such that the vertex counts of the submanifolds are approximately equal to each other. We also need to determine the connected components f 1 ( c i ) for c i in C. The connected components of the regular value c i C can be computed in linear time with respect to the number of edges in M, as follows. We visit all edges of M and detect if an edge crosses one of the values c i . If such an edge is found at a level c i , then we keep rotating around to find all other edges crossing the value c i within the same connected component of f 1 ( c i ) . After visiting all edges, we have also determined the connected components of f 1 ( c i ) for each c i C . We will denote the set of all connected components of f 1 ( c i ) for 1 i k by C f . We also call an edge in M that crosses f 1 ( c i ) a crossing edge. See Figure 11 for an illustration.
  • Divide the surface M into k + 1 partitions along the level sets f 1 ( c i ) for all c i C . We obtain a list of submanifolds M [ c 0 , c 1 ] ,…, M [ c k , c k + 1 ] . Here, we set c 0 = t 1 and c k + 1 = t n . We will denote to M [ c i 1 , c i ] by M i . The set { M i | 1 i k + 1 } will be denoted by M f .
  • Next, we extend M i by adding other vertices in M as follows. Let E i 1 and E i be the edges in M that intersect with f 1 ( c i 1 ) and f 1 ( c i ) , respectively. The submanifold M i = M [ c i 1 , c i ] is obtained from M [ c i 1 , c i ] by adding the vertices from E i 1 and E i . We call the edges E i 1 and E i the boundary edges of M [ c i 1 , c i ] . Note that every two consecutive submanifolds from M f intersect with each other along their boundary edges. See Figure 12 for an illustration.
The purpose of extending the submanifolds M i to M i in step (3) will be justified in the gluing stage in Section 5.3.

5.2. Computing the Reeb Graph of Each Submanifold

The manifold M i is, in general, homeomorphic to the manifold M i , since the former is obtained from the latter by slightly extending its boundary. However, in the piece-wise linear case, the extension specified in the previous section may change the topology of the manifold. This will occur when a crossing edge in E i or E i 1 contains a critical vertex of f. When this case occurs, we exclude this vertex from M i in order to keep it homeomorphic to M i . Using this convention, we can assume that the Reeb graph of the restriction of f on M i is identical to the Reeb graph of the restriction of the Reeb graph of f on M i .
Computing the Reeb graphs R ( M i , f ) for M i , for 1 i k + 1 , now goes, as follows. To each connected component in M i for 1 i k + 1 , we assign a thread and the Reeb graph R ( M i , f ) on the submanifold M i , which can be concurrently computed.
An ascending path that starts at a crossing edge or ends at a crossing edge will be treated specially. We call the Reeb graph edge that corresponds to such an ascending path a crossing arc. Furthermore, if the starting or the ending edge of this ascending path is a crossing edge, then we will call the corresponding node in the Reeb graph a crossing node. Every crossing node is determined by its crossing edge. In other words, given a crossing edge, we can recover its crossing node in the graphs R ( M i , f ) for 1 i k + 1 . In practice, we need to be able to do this in constant time, so we create a global map G that takes as an input a crossing edge and returns its corresponding crossing node. In the case when a single crossing edge is associated with two crossing nodes from two consecutive submanifolds, then the map G associates that edge crossing edge to the two crossing nodes (this occur when the ending edge of a crossing arc and the starting edge of the crossing arc in the consequent submanifold are the same). If the crossing edge is not associated with any crossing node, then this map returns a constant value indicating that this edge is not a starting or an ending crossing edge for any ascending path. Note that each connected component in C f has either two crossing edges that are associated with two crossing nodes or a single crossing edge that is associated with two crossing nodes. This map will be utilized in the gluing stage.

5.3. The Gluing Stage

For the gluing stage, we need to glue the nodes of the Reeb graphs that occur in duplication C f . For this purpose, we utilize the function G that we constructed in Section 5.2. For each connected component in C f , we visit its crossing edges and check whether two edges within that connected component have been flagged by G. If this is the case, then we retrieve the crossing nodes that correspond to these two edges via the function G and glue them. In the case when a connected component of C f has a single crossing edge, then we retrieve the two crossing nodes that are associated with that edge and glue them. When we finish visiting all connected components of C f , all duplicate nodes will have been glued, and the final graph is R ( M , f ) . See Figure 12 for an illustration of this process.

6. Augmented Reeb Graph Computations: Going from the Reeb Graph to the Manifold

In this section, we give an algorithm that describes an explicit computation of the map F : R ( M , f ) M . The computation of this map, alongside the computation of the Reeb graph, is usually called the augmented Reeb graph [17]. Our algorithm here is the first parallel augmented Reeb graph algorithm that we are aware of. This map associates every vertex v in the graph R ( M , f ) to the critical set C v associated to that critical point. More importantly, for each interior point p of an edge in R ( M , f ) , we want to associate a simple closed curve C r p in M, such that π ( C r p ) = p .

6.1. Building the Augmentation Map F : R ( M , f ) M

In the construction above, for our Reeb graph algorithm, an edge of the graph R ( M , f ) is traced as a sequence of edges on the mesh running between two critical sets of the function f. This immediately gives an embedding of the edges of the Reeb graph on the surface. This embedding is used to get the circle corresponding to any points on the graph. More precisely, we have the following correspondence. Let e be an edge of the graph R ( M , f ) . By the construction of our algorithm, every edge in R ( M , f ) is determined by two critical points and a sequence of oriented edges on the mesh. Let E e : = { E 1 , , E n } be the sequence of oriented edges on the mesh M that corresponds to the edge e. If E i = [ v i , v i + 1 ] , then we will denote by l f ( E i ) to | f ( v i ) f ( v i + 1 ) | . Let T j ( E e ) be the summation i = 1 j l f ( E i ) , where 1 j n .
An interior point p, on the edge e, is specified by giving a value t p in the interval ( 0 , 1 ) . We do the following procedure to obtain the circle C r p on the mesh M that correspond to p:
  • Map the interval ( 0 , 1 ) linearly to the interval ( 0 , T n ( E e ) ) .
  • Use the constructed linear function that is computed in step (1) to map t p to its corresponding value t in ( 0 , T n ( E e ) ) .
  • Determine the edge E k = ( v k , v k + 1 ) in E e , such that T k 1 ( E e ) < t T k ( E e ) .
  • Now, we need to find the value t, in the range of [ a , b ] , the range of f, such that f 1 ( t ) contains C r p . We know that this value corresponds to t , which lies in the interval [ T k 1 ( E e ) , T k ( E e ) ] . The required t lies in interval [ f ( v k ) , f ( v k + 1 ) ] . Hence, we map the interval [ T k 1 ( E e ) , T k ( E e ) ] linearly to [ f ( v k ) , f ( v k + 1 ) ] and determine the value t in [ f ( v k ) , f ( v k + 1 ) ] that corresponds to t .
  • The required circle C r p is precisely the connected component of f 1 ( t ) that contains the edge E k .
See Figure 13 for an illustration of the main parts of the previous procedure.
Note that, in the previous procedure, we rely on the fundamental assumption that f takes different values on the vertices of the mesh.

6.2. Consistent Parameterization of the Edges of the Reeb Graph

Going back to Section 6.1 we observe that the mapping between ( 0 , 1 ) and ( 0 , T n ( E e ) ) depends on the gradient of the function f. More specifically, recall that T j ( E e ) = i = 1 j l f ( E i ) = i = 1 j | f ( v i ) f ( v i + 1 ) | . Hence the values of l f for a given edge E can be interpreted as the gradient of f along that edge. Hence, the derivative of the function j T j ( E e ) in not constant in general. This variability in the derivative can make it difficult and less intuitive to choose a value t in ( 0 , 1 ) that corresponds to a specific curve on the mesh, because, while the mapping between ( 0 , 1 ) is linear, the function j T j ( E e ) is not linear in general. See Figure 14 for an illustration of the gradient problem.
To this end for a given function f, we want to construct another function f ^ that has the following two properties:
  • The levels sets of the function f ^ are parallel the level sets of f.
  • The function f ^ has uniform gradient everywhere.
We need to recall the definitions of gradient and divergence of a triangulated mesh quickly before we give the construction of f ^ .

6.2.1. Gradient and Divergence of a PL Function on a Triangulated Mesh

Let f be a PL scalar function on a triangulated manifold M. Let F a c e = [ v i , v i + 1 , v i + 2 ] be a face in M. Denote by E i the counterclockwise oriented edge opposite to the vertex v i . See Figure 15. Let B i : F a c e R be the hat function on the vertex v i defined by B i ( v j ) = δ i j for i , j = 1 , 2 , 3 . The gradient of f is a constant and tangential vector on F a c e given by [79]:
f ( F a c e ) = i = 1 3 B i f ( v i ) ,
where
B i = | | E i | | 2 A F a c e u i
Here, u i is a unit vector perpendicular to the vector E i and oriented so that it points into the face F a c e and A F a c e is the area of the face F a c e . See Figure 15.
The divergence of a vector field X defined on the vertices on M was given in [80] and it can be computed via the formula:
div X ( v i ) = 1 2 j F ( i ) cot θ j 1 e j 1 , X j + cot θ j 2 e j 2 , X j ,
where F ( i ) is the set of indices of all faces that are incident to the vertex v i , e j 1 , e j 2 are the two vectors in face j that contain the vertex v i and θ j 1 , θ j 2 are the angles that are opposite the edges e j 1 and e j 2 , respectively. See Figure 16.

6.2.2. Unit Gradient Scalar Fields

Now, given a function f : M R on a triangulated mesh M, we are interested in finding a function f ^ with the following two properties:
  • The levels sets of the function f ^ are parallel to the level sets of f.
  • The function f ^ has uniform gradient everywhere.
The above two conditions are equivalent to constructing a function f ^ such that grad f ^ grad f | | grad f | | . Setting X : = grad f | | grad f | | finding such f ^ can be obtained by solving the following Poisson equation:
min f ^ M | f ^ X | d M ,
which is equivalent to solving Δ f ^ = div X , where Δ is the Laplacian of the mesh M. Hence, finding the function f ^ can be reduced to the following two simple steps:
  • Compute X = grad f | | grad f | | .
  • Solve the Poisson equation Δ f ^ = div X .
The previous algorithm works on any generic function f, such that the gradient of f is not zero. Moreover, Step (2) can be easily solved while using the definitions of the gradient and the divergence provided earlier. The above simple procedure is a generalization of the geodesic in heat method [81], where the desired function f ^ represents a distance function.
Figure 17 illustrates an example of such a procedure. The right model in the figure shows a solution for a scalar function f ^ obtained as a Poisson equation Δ f ^ = div X where X is the normalized gradient of the original function f shown on the left. Observe that the level sets of both f and f ^ are parallel, but now the gradient of f ^ is constant.

7. Run-Time Analysis and Implementation

We tested the presented algorithm on meshes with various complexities. In particular, we performed the speedup analysis of the parallel algorithm to our implementation of the sequential version given [26]. Our experiments were done on an AMD FX 6300 6-Core with 32 GB memory. The algorithm was implemented in C++, and the Windows platform was used.
We test our parallel algorithm with two datasets: the AIM@SHAPE Repository as well as the MeshDeform dataset available in [82]. The initial attempt did not give us an increase of performance over the sequential algorithm for most of the meshes available in the above datasets. We tested our algorithm on high resolution meshes in order to take advantage of the parallel implementation. Specifically, we uniformly increase the resolution of the meshes available these two datasets to 200 k. On the AIM@SHAPE library our implementation gave us a minimum speedup of 3.6, a maximum one of 4.3, and an average speedup of 3.8 on six cores. Using this, we obtain a 63 % average parallel efficiency. One the MeshDeform dataset we obtained a minimum speedup of 2.9, a maximum one of 3.9, and an average speedup of 3.5 on siz cores. This dataset gives a 42 % average parallel efficiency on six cores. Figure 18 provides the details. The x-axis represents the number of processes, and the y-axis shows the speedup.
Figure 19 shows a few examples of the meshes that we utilized in our tests above, along with their corresponding Reeb graphs.

8. Applications

Reeb graphs on a surface M encode a rich amount of topological information from the original surface. In this section, we show how the Reeb graph of a surface M gives rise to a natural collection of simple closed curves on M. The applications that we present can be described in terms of these curves. We first define these curves and show their relation with the Reeb graph. We then give a procedure to extract them by utilizing the tools that we described in Section 6. Finally, the curves are utilized to obtain two higher genus surface mesh segmentation algorithms. Other Reeb graph-based segmentation algorithms can be found in [54,83,84].
Let R ( M , f ) be a surface M and a scalar function f. The edges of the Reeb graph R ( M , f ) determine the following types of simple closed curves on M:
  • Cutting system curves.
  • Pants decomposition curves.
  • Branch curves.
We describe how a Reeb graph on a surface can be used for realizing these curves next.
Cutting System Curves.
Reeb graphs can also be used to determine the so-called cutting system. A cutting system for a connected, closed, orientable surface M of genus g is a collection of unordered disjoint simple closed loops embedded in M whose complement M ( l 1 l g ) is a sphere with 2 g boundary components [85]. Segmenting a surface along a cutting system curve yields a genus zero surface with multiple boundary components. Hence, this can be used to aid in mesh parametrization. See, for instance, [86] and the references therein. Here, we describe a Reeb graph-based algorithm to obtain a cutting system. The algorithm is illustrated in the Figure 20 and it goes, as follows:
  • Let T be a spanning tree of R ( M , f ) and consider the edges e 1 , e g in R ( f ) \ T .
  • Select an interior point in e i , for 0 i g .
  • Each interior point selected in the previous step determines a loop l i , which can be obtained using the Reeb graph algorithm we described here.
The steps of the cutting system algorithm are described in Figure 20.
Figure 21 shows multiple examples of cutting system curves on triangulated surfaces.
Pants Decomposition Curves.
A Reeb graph naturally gives rise to a collection of curves that can be used to decompose a surface into a pair of pants. A pair of pants is a genus zero surface with three boundary components. Beside surface segmentation [87], surface pants decomposition has found applications in mesh parametrization [88], surface matching [89], and surface classification and indexing [90]. The method for obtaining a pants decomposition from the Reeb graph is illustrated in Figure 22 and is described, as follows:
  • Let R ( M , f ) be the deformation retract of R ( M , f ) . This graph can be obtained by recursively deleting nodes with valency one from R ( M , f ) and the edge attached to them until no such indices exist. We exclude from this deletion the 1-valence nodes originating from the boundary of M. We also delete all of the nodes with valency 2 and combine the two edges that meet at that node to form a single edge. This step is illustrated in step ( 3 ) Figure 23.
  • We select one interior point from each edge in R ( M , f ) , provided that this edge does not have a node of valency one.
  • We use our Reeb algorithm to determine the curves on the surface that correspond to the points that we selected on the graph in the previous step.
The results of the previous algorithm were tested on triangulated meshes with various topological complexities. We show some examples in Figure 23.
Branch Curves.
A branch curve on a surface M is a simple closed curve that bounds a topological disk on M. Such a curve is also called null homotopic. A branch curve is determined by a Reeb graph edge, which has a vertex of valence one. Note that cutting the surface along a branch curve increases the number of connected components of the surface. Cutting along such curves can be used for the segmentation of a genus zero surfaces. There are many Reeb graph-based segmentation algorithms in the literature for segmentation of genus zero surfaces, such as the surface obtained from a humanoid character. See, for instance, [54,83,84]. Because this type of curves is essentially utilized elsewhere in the literature, we simply list it here for completeness of our discussion. However, all of these methods lack the description of a method to extract the manifold data from the Reeb graph data.

8.1. Choosing Morse Scalar Functions

The cutting system and pant decomposition curves that we presented in this section depend on the choice of the scalar function used to define the Reeb graph in the following way. In particular, the choice of these curves affects the final quality of the segmented mesh. For this reason, it is important to choose a scalar function with certain desirable properties. By desirable properties, we mean the following:
  • The scalar function has a small number of critical vertices.
  • The level sets of the scalar function follow the geometry of the mesh as closely as possible.
  • The scalar function requires minimal input from the user.
We briefly discuss several scalar functions with the above properties.

8.1.1. Harmonic Functions

Condition 1 is desirable, because it leads, in general, to a simpler Reeb graph. For a surface mesh M of genus g one can always construct a scalar function f on M with 2 g critical points. This can be done by the so-called Harmonic functions. Recall that a harmonic map on a triangulated surface M is a scalar function f : M R that satisfies the Laplace equation Δ f = 0 subject to the Dirichlet boundary conditions f ( v i ) = c i for all v i V C . Here, the set V C V is a list of constrained vertices and c i have known scalar values providing the boundary conditions. The reason for our interest in Harmonic functions is that they satisfy the so-called maximum principle property [91], which asserts that the solution for the above system has no local extrema other than the constrained vertices. To achieve this setting in practice, one has to be careful about the choice of the weights utilized to define the Laplacian. More specifically, for a triangulated mesh M, the standard discretization for the Laplacian operator at a vertex v i is given by:
Δ f ( v i ) = [ v i , v j ] M w i j ( f ( v j ) f ( v i ) ) ,
where w i j is a scalar weight assigned to the edge [ v i , v j ] , such that [ v i , v j ] M w , j = 1 . Choosing the weights w i j , such that w i j > 0 for all edges [ v i , v j ] guarantees the solution of the Laplace equation has no local extrema other than at constrained vertices V C [92]. These conditions are satisfied by the mean value weights:
w i j = t a n ( θ i j / 2 ) + t a n ( ϕ i j / 2 ) | | v j v i | | ,
where the angles θ i j and ϕ i j are the angles on either sides of the edge [ v i , v j ] at the vertex v i . Mean value weights are used to approximate harmonic map and they have the advantage that they are always non-negative, which prevents any introduction of extrema on non-constrained vertices in the solution of the Laplace equation that is specified above. Such a function can be obtained as a solution for Laplace equation with mean value weights and with only two constrained vertices V C = { v m i n , v m a x } such that f ( v m i n ) < f ( v m a x ) . For instance, all functions shown in Figure 19 are obtained by solving the Laplace equation with exactly two constrained vertices.

8.1.2. The Poisson Equation

The Poisson equation on a triangulated mesh with Dirichlet boundary condition is defined by:
Δ f = h , f ( v i ) = c i where v i V C
where V C V is a set of constrained vertices and h : M R is a known function. The cardinality of the set V C must be at least 1 in order for system (1) to have a unique solution. With the appropriate choice of h, we can use the Poisson equation for our purpose. Indeed, if we choose the function h as suggested by Dong et al. in [93], then the solution f of the Poisson equation gives us a scalar field whose level sets follow one of the principal curvatures of the underlying manifold. Specifically, this can be done by solving:
Δ f ( v ) = κ ( v ) where f ( v s o u r c e ) = c
where κ ( v ) is the mean curvature at the vertex v:
κ ( v i ) = 1 4 A m i x e d ( v i ) j N ( i ) ( cot θ i j + cot β i j ) | | ( v i v j ) | |
here, the angles θ i j and β i j are given in Figure 24, and A m i x e d ( v i ) is the surface mixed area around the vertex v i [94]. Examples of Poisson fields on triangulated meshes are shown in Figure 25.

9. Conclusions and Future Work

The parallelization of topological data analysis algorithms is still in its infancy. There are plenty of existing topological machineries, such as Morse theory, which offer a plethora of tools that can be utilized to obtain robust and efficient parallel algorithms. In this paper, we presented a work that utilizes Morse theory to obtain a parallel algorithm for augmented Reeb graphs.
The parallel algorithm that we present here has elements that make it generalizable to a Reeb graph algorithm on a general simplicial complex. However, we thought that this would make the discussion more complicated in many parts of the algorithm. We plan to pursue this direction in future work.

Author Contributions

Conceptualization, M.H. and P.R.; funding acquisition, P.R.; software, M.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Science Foundation (IIS-1513616 and IIS-1845204).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Carlsson, G. Topology and data. Bull. Am. Math. Soc. 2009, 46, 255–308. [Google Scholar] [CrossRef] [Green Version]
  2. Carlsson, G.; Mémoli, F. Persistent clustering and a theorem of J. Kleinberg. arXiv 2008, arXiv:0808.2241. [Google Scholar]
  3. Reeb, G. Sur les Points Singuliers d’une Forme de Pfaff Completement Intergrable ou d’une Fonction Numerique (On the Singular Points of a Complete Integral Pfaff Form or of a Numerical Function). C. R. Acad. Sci. Paris 1946, 222, 847–849. [Google Scholar]
  4. Boyell, R.L.; Ruston, H. Hybrid techniques for real-time radar simulation. In AFIPS ’63 (Fall): Proceedings of the November 12–14, 1963, Fall Joint Computer Conference; Association for Computing Machinery: New York, NY, USA, 1963; pp. 445–458. [Google Scholar]
  5. Hétroy, F.; Attali, D. Topological quadrangulations of closed triangulated surfaces using the Reeb graph. Graph. Models 2003, 65, 131–148. [Google Scholar] [CrossRef] [Green Version]
  6. Attene, M.; Biasotti, S.; Spagnuolo, M. Shape understanding by contour-driven retiling. Vis. Comput. 2003, 19, 127–138. [Google Scholar] [CrossRef]
  7. Biasotti, S.; Falcidieno, B.; Spagnuolo, M. Extended reeb graphs for surface understanding and description. In Discrete Geometry for Computer Imagery; Springer: Berlin/Heidelberg, Germany, 2000; pp. 185–197. [Google Scholar]
  8. Patane, G.; Spagnuolo, M.; Falcidieno, B. Para-Graph: Graph-Based Parameterization of Triangle Meshes with Arbitrary Genus. In Computer Graphics Forum; Wiley Online Library: Hoboken, NJ, USA, 2004; Volume 23, pp. 783–797. [Google Scholar]
  9. Zhang, E.; Mischaikow, K.; Turk, G. Feature-based surface parameterization and texture mapping. ACM Trans. Graph. 2005, 24, 1–27. [Google Scholar] [CrossRef]
  10. Werghi, N.; Xiao, Y.; Siebert, J.P. A functional-based segmentation of human body scans in arbitrary postures. IEEE Trans. Syst. Man Cybern. Part B Cybern. 2006, 36, 153–165. [Google Scholar] [CrossRef] [Green Version]
  11. Kanongchaiyos, P.; Shinagawa, Y. Articulated Reeb graphs for interactive skeleton animation. In Multimedia Modeling: Modeling Multimedia Information and Systems; World Scientific: Singapore, 2000; pp. 451–467. [Google Scholar]
  12. Takahashi, S.; Takeshima, Y.; Fujishiro, I. Topological volume skeletonization and its application to transfer function design. Graph. Models 2004, 66, 24–49. [Google Scholar] [CrossRef]
  13. Carr, H.; Snoeyink, J.; van de Panne, M. Simplifying flexible isosurfaces using local geometric measures. In Proceedings of the IEEE Visualization, Austin, TX, USA, 10–15 October 2004; pp. 497–504. [Google Scholar]
  14. Rosen, P.; Wang, B.; Seth, A.; Mills, B.; Ginsburg, A.; Kamenetzky, J.; Kern, J.; Johnson, C.R. Using Contour Trees in the Analysis and Visualization of Radio Astronomy Data Cubes. arXiv 2017, arXiv:1704.04561. [Google Scholar]
  15. Kweon, I.S.; Kanade, T. Extracting topographic terrain features from elevation maps. CVGIP Image Underst. 1994, 59, 171–182. [Google Scholar] [CrossRef]
  16. Bajaj, C.; Pascucci, V.; Schikore, D. The contour spectrum. In Proceedings of the IEEE Visualization, Phoenix, AZ, USA, 24–24 October 1997; pp. 167–173. [Google Scholar]
  17. Harvey, W.; Wang, Y.; Wenger, R. A randomized O (m log m) time algorithm for computing Reeb graphs of arbitrary simplicial complexes. In SoCG ’10: Proceedings of the Twenty-Sixth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 2010; pp. 267–276. [Google Scholar]
  18. Shinagawa, Y.; Kunii, T.L. Constructing a Reeb graph automatically from cross sections. IEEE Comput. Graph. Appl. 1991, 11, 44–51. [Google Scholar] [CrossRef]
  19. Cole-McLaughlin, K.; Edelsbrunner, H.; Harer, J.; Natarajan, V.; Pascucci, V. Loops in Reeb graphs of 2-manifolds. In SCG ’03: Proceedings of the Nineteenth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 2003; pp. 344–350. [Google Scholar]
  20. Tierny, J.; Gyulassy, A.; Simon, E.; Pascucci, V. Loop surgery for volumetric meshes: Reeb graphs reduced to contour trees. IEEE Trans. Vis. Comput. Graph. 2009, 15, 1177–1184. [Google Scholar] [CrossRef]
  21. Chiang, Y.J.; Lenz, T.; Lu, X.; Rote, G. Simple and optimal output-sensitive construction of contour trees using monotone paths. Comput. Geom. 2005, 30, 165–195. [Google Scholar] [CrossRef] [Green Version]
  22. Edelsbrunner, H.; Harer, J.; Mascarenhas, A.; Pascucci, V. Time-varying reeb graphs for continuous space-time data. In SCG ’04: Proceedings of the Twentieth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 2004; pp. 366–372. [Google Scholar]
  23. Pascucci, V.; Scorzelli, G.; Bremer, P.T.; Mascarenhas, A. Robust on-line computation of Reeb graphs: Simplicity and speed. ACM Trans. Graph. 2007, 26, 58. [Google Scholar] [CrossRef]
  24. Doraiswamy, H.; Natarajan, V. Efficient algorithms for computing Reeb graphs. Comput. Geom. 2009, 42, 606–616. [Google Scholar] [CrossRef] [Green Version]
  25. Parsa, S. A deterministic O(m log m) time algorithm for the Reeb graph. In SoCG ’12: Proceedings of the Twenty-Eighth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 2012; pp. 269–276. [Google Scholar]
  26. Doraiswamy, H.; Natarajan, V. Efficient output-sensitive construction of Reeb graphs. In International Symposium on Algorithms and Computation; Springer: Berlin/Heidelberg, Germany, 2008; pp. 556–567. [Google Scholar]
  27. Hilaga, M.; Shinagawa, Y.; Kohmura, T.; Kunii, T.L. Topology matching for fully automatic similarity estimation of 3D shapes. In SIGGRAPH ’01: Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques; ACM: New York, NY, USA, 2001; pp. 203–212. [Google Scholar]
  28. Ge, X.; Safa, I.I.; Belkin, M.; Wang, Y. Data skeletonization via Reeb graphs. In Proceedings of the Advances in Neural Information Processing Systems, Granada, Spain, 13–15 December 2011; pp. 837–845. [Google Scholar]
  29. Tung, T.; Schmitt, F. Augmented reeb graphs for content-based retrieval of 3d mesh models. In Proceedings of the Shape Modeling Applications, Genova, Italy, 7–9 June 2004; pp. 157–166. [Google Scholar]
  30. Biasotti, S.; Giorgi, D.; Spagnuolo, M.; Falcidieno, B. Reeb graphs for shape analysis and applications. Theor. Comput. Sci. 2008, 392, 5–22. [Google Scholar] [CrossRef] [Green Version]
  31. Raichel, B.; Seshadhri, C. Avoiding the global sort: A faster contour tree algorithm. arXiv 2014, arXiv:1411.2689. [Google Scholar] [CrossRef] [Green Version]
  32. Van Kreveld, M.; van Oostrum, R.; Bajaj, C.; Pascucci, V.; Schikore, D. Contour trees and small seed sets for isosurface traversal. In SCG ’97: Proceedings of the Thirteenth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 1997; pp. 212–220. [Google Scholar]
  33. Tarasov, S.P.; Vyalyi, M.N. Construction of contour trees in 3D in O (n log n) steps. In SSCG ’98: Proceedings of the Fourteenth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 1998; pp. 68–75. [Google Scholar]
  34. Pascucci, V.; Cole-McLaughlin, K.; Scorzelli, G. Multi-resolution computation and presentation of contour trees. In Proceedings of the IASTED International Conference on Visualization, Imaging, and Image Processing, Marbella, Spain, 6–8 September 2004. [Google Scholar]
  35. Weber, G.; Scheuermann, G. Topology-based transfer function design. In Proceedings of the IASTED International Conference on Visualization, Imaging, and Image Processing, Marbella, Spain, 3–5 September 2002; pp. 527–532. [Google Scholar]
  36. Besl, P.J.; McKay, N.D. Method for registration of 3-D shapes. In Proceedings of the Sensor fusion IV: Control paradigms and data structures, Boston, MA, USA, 30 April 1992; pp. 586–606. [Google Scholar]
  37. Gupta, S.K.; Regli, W.C.; Nau, D.S. Manufacturing feature instances: Which ones to recognize? In SMA ’95: Proceedings of the Third ACM Symposium on Solid Modeling and Applications; ACM: New York, NY, USA, 1995; pp. 141–152. [Google Scholar]
  38. Gueunet, C.; Fortin, P.; Jomier, J. Contour forests: Fast multi-threaded augmented contour trees. In Proceedings of the IEEE Symposium on Large Data Analysis and Visualization (LDAV), Baltimore, MD, USA, 23–28 October 2016; pp. 85–92. [Google Scholar]
  39. Carr, H. Topological Manipulation of Isosurfaces. Ph.D. Thesis, University of British Columbia, Vancouver, BC, Canada, 2004. [Google Scholar]
  40. Dey, T.K.; Sun, J.; Wang, Y. Approximating cycles in a shortest basis of the first homology group from point data. Inverse Probl. 2011, 27, 124004. [Google Scholar] [CrossRef]
  41. Chazal, F.; Oudot, S. Towards persistence-based reconstruction in Euclidean spaces. In SCG ’08: Proceedings of the Twenty-Fourth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 2008; pp. 232–241. [Google Scholar]
  42. Dey, T.K.; Li, K. Cut locus and topology from surface point data. In SCG ’09: Proceedings of the Twenty-Fifth Annual Symposium on Computational Geometry; ACM: New York, NY, USA, 2009; pp. 125–134. [Google Scholar]
  43. Natali, M.; Biasotti, S.; Patanè, G.; Falcidieno, B. Graph-based representations of point clouds. Graph. Models 2011, 73, 151–164. [Google Scholar] [CrossRef]
  44. Chazal, F.; Guibas, L.J.; Oudot, S.; Skraba, P. Analysis of scalar fields over point cloud data. In Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, New York, NY, USA, 4–6 January 2009; pp. 1021–1030. [Google Scholar]
  45. Singh, G.; Mémoli, F.; Carlsson, G. Topological methods for the analysis of high dimensional data sets and 3d object recognition. In Eurographics/IEEE VGTC Symposium on Point-Based Graphics; The Eurographics Association: Munich, Germany, 2007; pp. 91–100. [Google Scholar]
  46. Lum, P.; Singh, G.; Lehman, A.; Ishkanov, T.; Vejdemo-Johansson, M.; Alagappan, M.; Carlsson, J.; Carlsson, G. Extracting insights from the shape of complex data using topology. Sci. Rep. 2013, 3, 1236. [Google Scholar] [CrossRef] [Green Version]
  47. Nicolau, M.; Levine, A.J.; Carlsson, G. Topology based data analysis identifies a subgroup of breast cancers with a unique mutational profile and excellent survival. Proc. Natl. Acad. Sci. USA 2011, 108, 7265–7270. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  48. Robles, A.; Hajij, M.; Rosen, P. The Shape of an Image: A Study of Mapper on Images. In Proceedings of the International Conference on Computer Vision Theory and Applications (VISAPP), Funchal, Portugal, 27–29 January 2018. [Google Scholar]
  49. Rosen, P.; Hajij, M.; Tu, J.; Arafin, T.; Piegl, L. Inferring Quality in Point Cloud-based 3D Printed Objects using Topological Data Analysis. Comput.-Aided Des. Appl. 2019, 16, 519–527. [Google Scholar] [CrossRef]
  50. Carrière, M.; Oudot, S. Structure and stability of the 1-dimensional mapper. arXiv 2015, arXiv:1511.05823. [Google Scholar]
  51. Dey, T.K.; Memoli, F.; Wang, Y. Topological Analysis of Nerves, Reeb Spaces, Mappers, and Multiscale Mappers. arXiv 2017, arXiv:1703.07387. [Google Scholar]
  52. Munch, E.; Wang, B. Convergence between categorical representations of reeb space and mapper. arXiv 2015, arXiv:1512.04108. [Google Scholar]
  53. Hajij, M.; Wang, B.; Rosen, P. MOG: Mapper on Graphs for Relationship Preserving Clustering. arXiv 2018, arXiv:1804.11242. [Google Scholar]
  54. Xiao, Y.; Siebert, J.P.; Werghi, N. A discrete Reeb graph approach for the segmentation of human body scans. In Proceedings of the International Conference on 3-D Digital Imaging and Modeling (3DIM), Banff, AB, Canada, 6–10 October 2003; pp. 378–385. [Google Scholar]
  55. Tung, T.; Schmitt, F. The augmented multiresolution Reeb graph approach for content-based retrieval of 3D shapes. Int. J. Shape Model. 2005, 11, 91–120. [Google Scholar] [CrossRef]
  56. Mohamed, W.; Hamza, A.B. Reeb graph path dissimilarity for 3D object matching and retrieval. Vis. Comput. 2012, 28, 305–318. [Google Scholar] [CrossRef]
  57. Biasotti, S.; Mortara, M.; Spagnuolo, M. Surface compression and reconstruction using Reeb graphs and shape analysis. In Proceedings of the Spring Conference on Computer Graphics, Budmerice, Slovakia, 3–6 May 2000; pp. 174–185. [Google Scholar]
  58. Dey, T.K.; Li, K.; Sun, J.; Cohen-Steiner, D. Computing geometry-aware handle and tunnel loops in 3D models. ACM Trans. Graph. 2008, 27, 45. [Google Scholar] [CrossRef] [Green Version]
  59. Wood, Z.; Hoppe, H.; Desbrun, M.; Schröder, P. Removing excess topology from isosurfaces. ACM Trans. Graph. 2004, 23, 190–208. [Google Scholar] [CrossRef]
  60. Lewis, R.H.; Zomorodian, A. Multicore Homology via Mayer Vietoris. arXiv 2014, arXiv:1407.2275. [Google Scholar]
  61. Lipsky, D.; Skraba, P.; Vejdemo-Johansson, M. A spectral sequence for parallelized persistence. arXiv 2011, arXiv:1112.1245. [Google Scholar]
  62. Morozov, D.; Weber, G. Distributed contour trees. In Topological Methods in Data Analysis and Visualization III; Springer: Cham, Switzerland, 2012. [Google Scholar]
  63. Morozov, D.; Weber, G. Distributed merge trees. In Proceedings of the 18th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, Shenzhen, China, 23–27 February 2013; Volume 48, pp. 93–102. [Google Scholar]
  64. Masood, T.B.; Ray, T.; Natarajan, V. Parallel computation of alpha complexes for biomolecules. Comput. Geom. 2020, 90, 101651. [Google Scholar] [CrossRef]
  65. Hajij, M.; Assiri, B.; Rosen, P. Distributed Mapper. arXiv 2017, arXiv:1712.03660. [Google Scholar]
  66. Matsumoto, Y. An Introduction to Morse Theory; American Mathematical Society: Providence, RI, USA, 2002; Volume 208. [Google Scholar]
  67. Banyaga, A.; Hurtubise, D. Lectures on Morse Homology; Springer Science & Business Media: New York, NY, USA, 2013; Volume 29. [Google Scholar]
  68. Morse, M. The Calculus of Variations in the Large; American Mathematical Society: Providence, RI, USA, 1934; Volume 18. [Google Scholar]
  69. Milnor, J.W. Morse Theory; Number 51; Princeton University Press: Princeton, NJ, USA, 1963. [Google Scholar]
  70. Banchoff, T. Critical points and curvature for embedded polyhedra. J. Diff. Geom. 1967, 1, 245–256. [Google Scholar] [CrossRef]
  71. Guo, X.; Li, X.; Bao, Y.; Gu, X.; Qin, H. Meshless thin-shell simulation based on global conformal parameterization. IEEE Trans. Vis. Comput. Graph. 2006, 12, 375–385. [Google Scholar] [PubMed]
  72. Ni, X.; Garland, M.; Hart, J.C. Fair morse functions for extracting the topological structure of a surface mesh. ACM Trans. Graph. 2004, 23, 613–622. [Google Scholar] [CrossRef]
  73. Dong, S.; Bremer, P.T.; Garland, M.; Pascucci, V.; Hart, J.C. Spectral surface quadrangulation. ACM Trans. Graph. 2006, 25, 1057–1066. [Google Scholar] [CrossRef]
  74. Stander, B.T.; Hart, J.C. Guaranteeing the topology of an implicit surface polygonization for interactive modeling. In SIGGRAPH ’97: Proceedings of the 24th Annual Conference on Computer Graphics and Interactive Techniques; ACM Press: New York, NY, USA, 1997; pp. 279–286. [Google Scholar]
  75. Yamazaki, I.; Natarajan, V.; Bai, Z.; Hamann, B. Segmenting point sets. In Proceedings of the IEEE International Conference on Shape Modeling and Applications 2006, Matsushima, Japan, 14–16 June 2006; p. 6. [Google Scholar]
  76. Wang, H.; He, Y.; Li, X.; Gu, X.; Qin, H. Geometry-aware domain decomposition for T-spline-based manifold modeling. Comput. Graph. 2009, 33, 359–368. [Google Scholar] [CrossRef]
  77. Tsigas, P.; Zhang, Y. A simple, fast parallel implementation of quicksort and its performance evaluation on SUN enterprise 10000. In Proceedings of the Euromicro Conference on Parallel, Distributed, and Network-Based Processing, Genova, Italy, 5–7 February 2003; pp. 372–381. [Google Scholar]
  78. Singler, J.; Sanders, P.; Putze, F. MCSTL: The multi-core standard template library. In European Conference on Parallel Processing; Springer: Berlin/Heidelberg, Germany, 2007; pp. 682–694. [Google Scholar]
  79. Pinkall, U.; Polthier, K. Computing discrete minimal surfaces and their conjugates. Exp. Math. 1993, 2, 15–36. [Google Scholar] [CrossRef]
  80. Polthier, K. Polyhedral Surfaces of Constant Mean Curvature. Ph.D. Thesis, Habilitationsschrift TU, Berlin, Germany, 2002. [Google Scholar]
  81. Crane, K.; Weischedel, C.; Wardetzky, M. Geodesics in heat: A new approach to computing distance based on heat flow. ACM Trans. Graph. 2013, 32, 1–11. [Google Scholar] [CrossRef]
  82. Sumner, R.W.; Popović, J. Deformation transfer for triangle meshes. ACM Trans. Graph. 2004, 23, 399–405. [Google Scholar] [CrossRef]
  83. Xiao, Y.; Werghi, N.; Siebert, J.P. A topological approach for segmenting human body shape. In Proceedings of the International Conference on Image Analysis and Processing, Mantova, Italy, 17–19 September 2003; pp. 82–87. [Google Scholar]
  84. Tierny, J.; Vandeborre, J.P.; Daoudi, M. Topology driven 3D mesh hierarchical segmentation. In Proceedings of the IEEE International Conference on Shape Modeling and Applications 2007 (SMI ’07), Lyon, France, 13–15 June 2007; pp. 215–220. [Google Scholar]
  85. Hatcher, A.; Thurston, W. A presentation for the mapping class group of a closed orientable surface. Topology 1980, 19, 221–237. [Google Scholar] [CrossRef] [Green Version]
  86. Zeng, W.; Yin, X.; Zhang, M.; Luo, F.; Gu, X. Generalized Koebe’s method for conformal mapping multiply connected domains. In SIAM/ACM Joint Conference on Geometric and Physical Modeling; ACM: New York, NY, USA, 2009; pp. 89–100. [Google Scholar]
  87. Hajij, M.; Dey, T.; Li, X. Segmenting a surface mesh into pants using Morse theory. Graph. Models 2016, 88, 12–21. [Google Scholar] [CrossRef] [Green Version]
  88. Kwok, T.H.; Zhang, Y.; Wang, C.C. Constructing common base domain by cues from Voronoi diagram. Graph. Models 2012, 74, 152–163. [Google Scholar] [CrossRef]
  89. Li, X.; Gu, X.; Qin, H. Surface mapping using consistent pants decomposition. IEEE Trans. Vis. Comput. Graph. 2009, 15, 558–571. [Google Scholar] [CrossRef]
  90. Jin, M.; Zeng, W.; Ding, N.; Gu, X. Computing Fenchel-Nielsen coordinates in teichmuller shape space. In Proceedings of the 2009 IEEE International Conference on Shape Modeling and Applications, Beijing, China, 26–28 June 2009; pp. 193–200. [Google Scholar]
  91. Rosenberg, S. The Laplacian on a Riemannian Manifold: An Introduction to Analysis on Manifolds; Number 31; Cambridge University Press: Cambridge, UK, 1997. [Google Scholar]
  92. Floater, M.S. Mean value coordinates. Comput. Aided Geom. Des. 2003, 20, 19–27. [Google Scholar] [CrossRef]
  93. Dong, S.; Kircher, S.; Garland, M. Harmonic functions for quadrilateral remeshing of arbitrary manifolds. Comput. Aided Geom. Des. 2005, 22, 392–423. [Google Scholar] [CrossRef]
  94. Meyer, M.; Desbrun, M.; Schröder, P.; Barr, A.H. Discrete differential-geometry operators for triangulated 2-manifolds. In Visualization and Mathematics III; Springer: Berlin/Heidelberg, Germany, 2003; pp. 35–57. [Google Scholar]
Figure 1. Minimum, Saddle, and Maximum, respectively.
Figure 1. Minimum, Saddle, and Maximum, respectively.
Algorithms 13 00258 g001
Figure 2. An example of a Reeb graph (right) of a scalar function (left) defined on a surface with a boundary.
Figure 2. An example of a Reeb graph (right) of a scalar function (left) defined on a surface with a boundary.
Algorithms 13 00258 g002
Figure 3. The types of vertices on a triangulated mesh. From left to right: minimum, maximum, regular vertex, and saddle.
Figure 3. The types of vertices on a triangulated mesh. From left to right: minimum, maximum, regular vertex, and saddle.
Algorithms 13 00258 g003
Figure 4. For t p a critical value, on the left, the set f 1 ( t p ) consists of a singular set C p and two of simple closed curves. On the right, only the critical set C p is shown, which is the connected component of f 1 ( t p ) that contains the critical point p.
Figure 4. For t p a critical value, on the left, the set f 1 ( t p ) consists of a singular set C p and two of simple closed curves. On the right, only the critical set C p is shown, which is the connected component of f 1 ( t p ) that contains the critical point p.
Algorithms 13 00258 g004
Figure 5. A split saddle on the left and a merge saddle on the right.
Figure 5. A split saddle on the left and a merge saddle on the right.
Algorithms 13 00258 g005
Figure 6. Summary of the sequential algorithm. (1) The input of the algorithm is a manifold M with a scalar function f. (2) Computing the critical sets. (3) For each saddle point or minimum, we compute the ascending paths (4) creating the edges of the Reeb graph by the information encoded in the start vertex of the ascending vertex and its termination critical set.
Figure 6. Summary of the sequential algorithm. (1) The input of the algorithm is a manifold M with a scalar function f. (2) Computing the critical sets. (3) For each saddle point or minimum, we compute the ascending paths (4) creating the edges of the Reeb graph by the information encoded in the start vertex of the ascending vertex and its termination critical set.
Algorithms 13 00258 g006
Figure 7. The set of vertices, edges, and faces in the mesh M, which f 1 ( t ) intersects. The top two figures depict cases where t is a regular value. The top figure shows an example of when there exists a vertex v in M, such that v f 1 ( t ) . The second figure shows the case where no such a vertex exists. In other words, f 1 ( t ) intersects only edges and faces of M. The third figure is an example of the local neighborhood, a critical point of f or when f 1 ( t ) contains a critical point. The purple simplices represent the set C R f ( t ) . The union of the green and purple simplices represents the set C R f ( t ) ¯ . The blue edges and nodes are the edges in the complexes that are shown in the figure and nodes in C R f ( t ) ¯ , which have f-values less than or equal to t. The red edges and nodes are the edges in the complexes shown in the figure and nodes in C R f ( t ) ¯ , which have f-values that are higher than or equal to t.
Figure 7. The set of vertices, edges, and faces in the mesh M, which f 1 ( t ) intersects. The top two figures depict cases where t is a regular value. The top figure shows an example of when there exists a vertex v in M, such that v f 1 ( t ) . The second figure shows the case where no such a vertex exists. In other words, f 1 ( t ) intersects only edges and faces of M. The third figure is an example of the local neighborhood, a critical point of f or when f 1 ( t ) contains a critical point. The purple simplices represent the set C R f ( t ) . The union of the green and purple simplices represents the set C R f ( t ) ¯ . The blue edges and nodes are the edges in the complexes that are shown in the figure and nodes in C R f ( t ) ¯ , which have f-values less than or equal to t. The red edges and nodes are the edges in the complexes shown in the figure and nodes in C R f ( t ) ¯ , which have f-values that are higher than or equal to t.
Algorithms 13 00258 g007
Figure 8. Given a Morse function f on a surface M, we can slice M, so that, around each critical value t, the submanifold M [ t ϵ , t + ϵ ] is a disjoint union of simple building blocks: pair of pants, topological cylinders, and topological disks.
Figure 8. Given a Morse function f on a surface M, we can slice M, so that, around each critical value t, the submanifold M [ t ϵ , t + ϵ ] is a disjoint union of simple building blocks: pair of pants, topological cylinders, and topological disks.
Algorithms 13 00258 g008
Figure 9. The building blocks of a surface. Given a scalar function f defined on a surface M, Theorem 2 asserts that we can decompose the surface into the building block pieces appear in above. These pieces are genus zero surfaces with a single boundary component (disk), genus zero surfaces with three boundary components (pair of pants), and a genus zero surface with two boundary components (cylinder).
Figure 9. The building blocks of a surface. Given a scalar function f defined on a surface M, Theorem 2 asserts that we can decompose the surface into the building block pieces appear in above. These pieces are genus zero surfaces with a single boundary component (disk), genus zero surfaces with three boundary components (pair of pants), and a genus zero surface with two boundary components (cylinder).
Algorithms 13 00258 g009
Figure 10. The restriction of the Reeb graph on the building blocks of a surface along with the part of the ascending paths in that part of the surface. Around each critical point, the structure of the ascending curves (orange) is identical to the structure of the Reeb graph. More precisely, the quotient space of the restriction of the function on the ascending curves the critical sets around a critical point (these are the curves highlighted by orange and red in the figure) is identical to the quotient space of the manifold locally.
Figure 10. The restriction of the Reeb graph on the building blocks of a surface along with the part of the ascending paths in that part of the surface. Around each critical point, the structure of the ascending curves (orange) is identical to the structure of the Reeb graph. More precisely, the quotient space of the restriction of the function on the ascending curves the critical sets around a critical point (these are the curves highlighted by orange and red in the figure) is identical to the quotient space of the manifold locally.
Algorithms 13 00258 g010
Figure 11. An illustration of the partition stage. (a) A connected component of the submanifold M i is obtained. (b) M i is extended to M i by adding the crossing edges. (c) A closeup of the crossing edges of the manifold M i . The blue edges represent the crossings edges of E i 1 and the green curve represents the portion of the curve f 1 ( c i 1 ) within the closeup region.
Figure 11. An illustration of the partition stage. (a) A connected component of the submanifold M i is obtained. (b) M i is extended to M i by adding the crossing edges. (c) A closeup of the crossing edges of the manifold M i . The blue edges represent the crossings edges of E i 1 and the green curve represents the portion of the curve f 1 ( c i 1 ) within the closeup region.
Algorithms 13 00258 g011
Figure 12. An illustration of the gluing stage. (a) At this stage, two ascending paths from all submanifolds have been calculated. In the case when two consecutive submanifolds share a crossing edge, such as the case in the illustrative figure, the ascending path of the lower submanifold M 1 gets terminated at the at a crossing edge. Similarly, an ascending path from the higher submanifold M 2 gets initiated at a crossing edge. (b) A zoomed version of Figure (a) shows the two crossing edges that determine uniquely two nodes in the Reeb graphs R ( M 1 , f ) and R ( M 2 , f ) . The fact that these two edges belong to the same connected component in the inverse image of the regular crossing value is used to glue the graphs R ( M 1 , f ) and R ( M 2 , f ) along the blue nodes to obtain the graph in Figure (c).
Figure 12. An illustration of the gluing stage. (a) At this stage, two ascending paths from all submanifolds have been calculated. In the case when two consecutive submanifolds share a crossing edge, such as the case in the illustrative figure, the ascending path of the lower submanifold M 1 gets terminated at the at a crossing edge. Similarly, an ascending path from the higher submanifold M 2 gets initiated at a crossing edge. (b) A zoomed version of Figure (a) shows the two crossing edges that determine uniquely two nodes in the Reeb graphs R ( M 1 , f ) and R ( M 2 , f ) . The fact that these two edges belong to the same connected component in the inverse image of the regular crossing value is used to glue the graphs R ( M 1 , f ) and R ( M 2 , f ) along the blue nodes to obtain the graph in Figure (c).
Algorithms 13 00258 g012
Figure 13. An illustration of the data retrieval procedure. (1) A value t p is selected from the interval ( 0 , 1 ) . (2) This value is used to determine a point p on the Reeb graph edge E e . (3) This point is contained in an edge E k on the mesh M. This edge is used to determine the circle C r p
Figure 13. An illustration of the data retrieval procedure. (1) A value t p is selected from the interval ( 0 , 1 ) . (2) This value is used to determine a point p on the Reeb graph edge E e . (3) This point is contained in an edge E k on the mesh M. This edge is used to determine the circle C r p
Algorithms 13 00258 g013
Figure 14. The arm of the female character mesh corresponds to a single arc in the Reeb graph associated with the scalar function indicated on the mesh. Observe that the gradient of this scalar function varies along this arm, which makes it hard to parametrize the mapping between the Reeb graph and the corresponding regions on the mesh.
Figure 14. The arm of the female character mesh corresponds to a single arc in the Reeb graph associated with the scalar function indicated on the mesh. Observe that the gradient of this scalar function varies along this arm, which makes it hard to parametrize the mapping between the Reeb graph and the corresponding regions on the mesh.
Algorithms 13 00258 g014
Figure 15. The gradients of hat functions of a triangle.
Figure 15. The gradients of hat functions of a triangle.
Algorithms 13 00258 g015
Figure 16. Computing the divergence at vertex v i .
Figure 16. Computing the divergence at vertex v i .
Algorithms 13 00258 g016
Figure 17. Obtaining a unit gradient scalar field.
Figure 17. Obtaining a unit gradient scalar field.
Algorithms 13 00258 g017
Figure 18. Speedups obtained by our parallel Reeb graph algorithm.
Figure 18. Speedups obtained by our parallel Reeb graph algorithm.
Algorithms 13 00258 g018
Figure 19. Some of the meshes that we used for our parallel Reeb graph computations.
Figure 19. Some of the meshes that we used for our parallel Reeb graph computations.
Algorithms 13 00258 g019
Figure 20. The steps of the cutting system algorithm. (1) mesh M with a scalar function defined on it are given. (2) The Reeb graph R ( M , f ) is computed. (3) We compute a spanning tree of R ( M , f ) . (4) We select all edges in the graph that do not belong the spanning tree we computed in (3) and then we select an interior point on each one of these edges. (5) For each interior point, we used our augmented Reeb graph algorithm to compute the circle that corresponds to it on the mesh.
Figure 20. The steps of the cutting system algorithm. (1) mesh M with a scalar function defined on it are given. (2) The Reeb graph R ( M , f ) is computed. (3) We compute a spanning tree of R ( M , f ) . (4) We select all edges in the graph that do not belong the spanning tree we computed in (3) and then we select an interior point on each one of these edges. (5) For each interior point, we used our augmented Reeb graph algorithm to compute the circle that corresponds to it on the mesh.
Algorithms 13 00258 g020
Figure 21. Examples of cut system curves on triangulated surfaces.
Figure 21. Examples of cut system curves on triangulated surfaces.
Algorithms 13 00258 g021
Figure 22. A Reeb graph can be used to segment a surface into a collection of topologically consistent patches. (1) The surface M, with a scalar function f, is given as an input. (2) The Reeb graph of R ( M , f ) is calculated. (3) The deformation retract graph R ( M , f ) of the graph R ( M , f ) is calculated. (4) For each edge in the graph R ( M , f ) , we select a point. (5) We select the curves on the manifold M that corresponds to the points that were selected in the previous step.
Figure 22. A Reeb graph can be used to segment a surface into a collection of topologically consistent patches. (1) The surface M, with a scalar function f, is given as an input. (2) The Reeb graph of R ( M , f ) is calculated. (3) The deformation retract graph R ( M , f ) of the graph R ( M , f ) is calculated. (4) For each edge in the graph R ( M , f ) , we select a point. (5) We select the curves on the manifold M that corresponds to the points that were selected in the previous step.
Algorithms 13 00258 g022
Figure 23. Examples of segmentation of higher genus surfaces into a pair of pants using our Reeb graph algorithm.
Figure 23. Examples of segmentation of higher genus surfaces into a pair of pants using our Reeb graph algorithm.
Algorithms 13 00258 g023
Figure 24. The angles θ i j and β i j are defined with respect to an edge [ v i , v j ] .
Figure 24. The angles θ i j and β i j are defined with respect to an edge [ v i , v j ] .
Algorithms 13 00258 g024
Figure 25. Example of Poisson fields on Triangulated meshes. In both characters, a single vertex, which is the highest node in the head of the character, was chosen to be the constrained vertex required to solve the Poisson equation. Observe how this scalar function follows the geometry of the mesh.
Figure 25. Example of Poisson fields on Triangulated meshes. In both characters, a single vertex, which is the highest node in the head of the character, was chosen to be the constrained vertex required to solve the Poisson equation. Observe how this scalar function follows the geometry of the mesh.
Algorithms 13 00258 g025

Share and Cite

MDPI and ACS Style

Hajij, M.; Rosen, P. An Efficient Data Retrieval Parallel Reeb Graph Algorithm. Algorithms 2020, 13, 258. https://0-doi-org.brum.beds.ac.uk/10.3390/a13100258

AMA Style

Hajij M, Rosen P. An Efficient Data Retrieval Parallel Reeb Graph Algorithm. Algorithms. 2020; 13(10):258. https://0-doi-org.brum.beds.ac.uk/10.3390/a13100258

Chicago/Turabian Style

Hajij, Mustafa, and Paul Rosen. 2020. "An Efficient Data Retrieval Parallel Reeb Graph Algorithm" Algorithms 13, no. 10: 258. https://0-doi-org.brum.beds.ac.uk/10.3390/a13100258

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop