Curvature-Metric-Free Surface Remeshing
via Principal Component Analysis
In this paper, we present a surface remeshing method with high approximation quality based on Principal Component Analysis. Given a triangular mesh and a user assigned polygon/vertex budget, traditional methods usually require the extra curvature metric field for the desired anisotropy to best approximate the surface, even though the estimated curvature metric is known to be imperfect and already self-contained in the surface. In our approach, this anisotropic control is achieved through the optimal geometry partition without this explicit metric field. The minimization of our proposed partition energy has the following properties: Firstly, on a surface, it is theoretically guaranteed to have the optimal aspect ratio and cluster size as specified in approximation theory for piecewise linear approximation. Secondly, it captures sharp features on practical models without any pre-tagging. We develop an effective merging-swapping framework to seek the optimal partition and construct polygonal/triangular mesh afterwards. The effectiveness and efficiency of our method are demonstrated through the comparison with other state-of-the-art remeshing methods.
With the ever increasing use of 3D scanners, faithful triangular meshes with dense sampling rate are easy to get for a wide variety of applications. However, for practical purposes, using a huge number of triangles as the surface representation becomes a burden for displaying, storing and processing. Thus a mesh-coarsening step introducing minimal geometric error becomes a quest for most real applications. That is, given a triangular mesh and a finite user assigned polygon/vertex budget, what is the best piecewise-linear triangulation approximation of the surface with respect to the or metric? Despite the fundamental nature of this problem, it has been pointed out to be an NP-hard problem . Due to its complexity, the optimality pursued by recent approaches refers to the optimal asymptotic behavior of the infinitesimal triangles given in approximation theory    (see Sec. 2).
Previous approaches can be classified into anisotropic surface remeshing approaches and the error-driven approaches. To best approximate the surface, anisotropic surface remeshing methods rely on the curvature metric to serve as the Riemannian metric to specify the desired anisotropy. However, an accurate curvature estimation is known to be difficult on discrete meshes, especially at feature regions, since it requires a careful definition of local neighborhood. More specifically, to estimate the curvature at the mesh vertices, usually the Euclidean k-nearest neighbors  or the ring-neighborhood  are selected to perform local fitting. Therefore, recent anisotropic mesh generation work   adopt a smoothing step as preprocessing to reduce the impact of the noises and outliers arising from the estimation process. Instead of explicitly extracting the curvature information from the surface, the error-driven approach tackles the surface approximation problem from a different perspective: finding a partition that clusters mesh primitives with similar geometric characteristics, which seems to be a natural way for mesh coarsening . The original NP-hard problem is casted as the problem to seek optimal partition of the original surface according to the partition error  , which is usually the summation over the fitting error from each partition region’s shape proxy  to its underlying primitives. We discuss the limitations of previous partition error definitions in Sec. 3.
We solve the surface approximation problem via the optimal partition problem and consider our method as one of the error-driven methods. Different from Quadric Error Metrics (QEM)  and Variational Shape Approximation (VSA) , a partition energy based on the Principal Component Analysis (PCA) is proposed. The minimization of our proposed partition energy has the following properties: Firstly, on a surface, it is theoretically guaranteed to have the optimal aspect ratio and cluster size asymptotically as specified in approximation theory for piecewise linear approximation, without any explicit estimation of curvature metric tensors. Secondly, it captures sharp features on practical models without any pre-tagging. An efficient merging-swapping framework is proposed to seek the optimal partition and allows the processing of meshes that have up to tens of millions of triangular faces easily performed on a desktop. The polygonal/triangular mesh is constructed afterwards. The main contributions of our work include the following aspects:
We propose a partition energy based on shape variance analysis whose optimization automatically leads to the optimal clustering, i.e. each cluster has the optimal aspect ratio and relative size to approximate the surface in the asymptotical sense.
We present an efficient discrete merging-swapping algorithm to compute the optimal partition. To compute the change of the partition energy arising from the proposed merging and swapping operations, only several float number multiplications are needed.
2 Previous Anisotropic Surface Meshing Approaches
Anisotropic surface meshing has been widely used as a surface modeling technique to serve the remeshing purpose. Its optimality of piecewise-linear approximation has been proven in approximation theory  that with respect to the general metric, the optimal mesh is obtained when each triangle is elongated along the direction of the eigenvectors of its curvature tensor and the error is equidistributed on each triangle.
Given the set of sites to sample the surface, Centroidal Voronoi Tessellation (CVT)  is a special Voronoi Diagram (VD)  that each site coincides with the centroid of its Voronoi cell. When a Riemannian metric tensor field is endowed to measure the way distance and angle are distorted, CVT is generalized to Anisotropic CVT (ACVT)  to take the anisotropy into account. From the perspective of energy optimization, there are two widely-used approaches for CVT/ACVT computation: the Lloyd relaxation  and the quasi-Newton energy optimization scheme .
The main challenge to apply the ACVT concept on surface remeshing is the time-consuming computation of the Anisotropic Voronoi Diagram (AVD). One effective way to avoid the complicated computation is to transform the anisotropic surface meshing problem to an isotropic one in a higher dimensional space. Lévy and Bonneel  proposed to transform the anisotropic meshing problem on 3D surface to the isotropic one on 6D surface, which can be solved efficiently by CVT with Voronoi Parallel Linear Enumeration. However, their method does not provide users the flexibility to control the Riemannian metric tensor field. To overcome this problem, Zhong et al.  incorporated the metric tensor into the formulation of their inter-particle energy and optimized the energy in a higher dimensional isotropic “embedding space”. Another approach to accelerate AVD computation is the discrete clustering approach proposed by Valette et al. . This discrete ACVT is fast to compute since the ACVT energy of the discrete Voronoi diagrams can be evaluated efficiently.
Other methods model the anisotropic meshing problem from different perspectives. Chen et al.   proposed Optimal Delaunay triangulation (ODT) to acquire the optimal anisotropic mesh that minimizes the difference between a function and its interpolation over the mesh. Fu et al.  extended ODT to Locally Convex Triangulation (LCT) for the cases where the given Riemannian metric is not the Hessian of a global function. Delaunay refinement methods    insert points in Delaunay triangution to refine local mesh quality. The final anisotropic meshing usually guarantees certain measures of mesh quality but does not provide a globally optimal result.
Anisotropic surface meshing methods usually generate high-quality meshes w.r.t. the input Riemannian metric. However, when it is used as a surface remeshing tool with the curvature tensor serves as the Riemannian metric, the inaccuracy arising from the curvature estimation step inevitably results in an impairment of the surface approximation. Like the error-driven approaches, our method does not require users to provide any explicit curvature metric. Nevertheless, our partition result forms like implicit AVDs, i.e. the anisotropy naturally agrees with the implicitly contained curvature information. The formal proof of the optimality is shown in Sec. 4. Our approach utilizes the discrete clustering method  during variational partition. But unlike Valette et al.’s approach , our method adopts a different energy formulation that does not require any explicit curvature estimation.
3 Limitations of Previous Error-Driven Approaches
The error-driven approaches cast the problem of surface approximation to the problem of geometric partition. When geometric primitives with similar shape characteristics are classified together, it forms a simplified representation of the original shape.
Previous methods generally utilize shape proxy  to guide the geometric partition process. Given the surface and the user-assigned partition number , the goal is to find the optimal partition (a partition is the set of clusters that satisfy for , and ) by minimizing the following energy function:
where denotes the properness of clustering the underlying primitives of cluster together, i.e. usually a shape proxy is associated and the fitting errors from the shape proxy to all underlying primitives are utilized.
3.1 Energy Based on Quadric Error Metrics (QEM)
QEM method  uses a point as the shape proxy for cluster . The geometric primitives for a cluster are tangent planes, i.e. each point is equipped with its normal direction . The energy of cluster is defined as the integral of the squared distance from the optimal proxy (point ) to all these tangent planes in :
Note that a plane can be extended to infinity in 3D space, thus the point proxy can fit a non-local plane with zero penalty. The minimization of the QEM energy will guide the clustering results to disconnected (broken) patches since a point proxy will always ”absorb” non-local planes that nearly pass through it (see Fig. 1). In this paper, we will use the term ”broken patches” to describe the effect that the minimization of an energy function naturally leads the clustering to broken patches.
Due to its lacking penalty on the disconnectedness, QEM method  only allows local edge contraction operation to ensure each cluster to be connected. Each edge contraction aggregates the two corresponding clusters into a connected one and computes the optimal point for it. Even though the asymptotically optimal anisotropic behavior of triangle meshes generated by QEM has been proved , the greedy nature of edge contraction inevitably leads to suboptimal geometric partition result for non-infinitesimal clusters, as illustrated in Fig. 3.
3.2 Energy Based on Plane Fitting
The plane fitting method is widely accepted in computer graphics community through the work of Dual QEM (DQEM)  and VSA . Note that besides the plane fitting energy, VSA  also proposed the shape metric, i.e. the measure between the normal field and the plane’s unit normal. Even though the shape metric is recommended to be used by VSA , we focus our discussion on its plane fitting energy, since the shape metric does not lead the regions to follow the asymptotic anisotropic requirement of approximation theory and thus is not theoretically “on the right track” to achieve the optimal surface approximation, as can be seen from the comparison results of Fig. 12 and Fig. 13 later.
The plane fitting method uses a plane as the shape proxy for each cluster . We denote the plane as with and being its unit normal and scalar offset correspondingly. The energy of cluster is defined as the integral of the squared distances from all points to the best fitting plane:
This plane fitting approach suffers from the ”broken patches” problem as the QEM energy : a plane proxy will always ”absorb” non-local points it passes through (see Fig. 2). This problem is noticed in Sec. 3.5 of VSA paper : convergence is not guaranteed if the connectedness of the partition regions are required.
To practically apply this energy for geometry partition, Garland et al.  used the greedy edge collapse as in QEM  to seek the suboptimal partition result. VSA  guarantees the connectedness of each cluster by performing the partition process triangle-by-triangle using a region flooding procedure driven by a priority queue, which contains new growing triangle candidates sorted by the error to their corresponding fixed plane proxy. Their final result is the nearly settled down partition of Lloyd’s relaxation  on the two phases of partitioning and plane fitting. It is worth noting that even though the flooding scheme guarantees the connectedness, however, a cluster may totally reside in another cluster for the plane fitting energy, as illustrated in Fig. 3 (It does not happen for the shape metric). As one would expect, this plane fitting energy prefers to partition the input model with a set of parallel planes along its least length direction.
3.3 Energy Based on Other Proxies
Besides the point proxy and the plane proxy, other non-planar proxies such as spheres, cylinders and rolling ball blend patches , and quadric proxies  have been used for robust surface structure extraction. Even though these methods fit a quadric surface to a given cluster in sense, there is no evidence that the anisotropy of their clusters has any relation to the asymptotic optimal anisotropy. Also these methods cannot be easily extended for remeshing purpose, thus discussing these methods is beyond the scope of this paper.
4 Our Energy Definition
In this section, we introduce a new error-driven energy whose minimization not only suppresses the clusters from being broken, but also naturally leads clusters to have the optimal aspect ratio and cluster size as specified in approximation theory    for piecewise linear approximation to the given surface.
To better illustrate the properties of our proposed energy, in Sec. 4.1, we first introduce an overall scalar measurement of the cluster’s variance, which is the covariance matrix’s determinant. Then we show that this overall scalar variance has a CVT nature of suppressing the clusters from being broken. In Sec. 4.3, we formally formulate our energy and show how it relates to piecewise linear approximation to the given surface   . Last but not least, the degenerate surfaces (i.e. either one or both of the principal curvatures are degenerated to zero) are handled in Sec. 4.4.
4.1 Ellipsoidal Variance Model via PCA
When the plane is used as the shape proxy, the plane normal and scalar offset can be optimized effectively using PCA: the best fitting plane will pass through the cluster’s centroid ; its normal direction will be the eigenvector of the smallest eigenvalue of the covariance matrix . The details of their derivation are given in the supplementary material. Here the centroid and the covariance matrix are given by:
Based on the covariance matrix , an ellipsoidal variance model can be used to describe the variability of the cluster :
This ellipsoid has three axes , which are the three eigenvectors of . The corresponding lengths of semi-principal axes are , which are the square roots of the corresponding eigenvalues (): . Note the length of is the variance of the points in measured in the corresponding direction.
The plane fitting energy only considers the variance along the shortest semi-principal axis of the ellipsoidal variance model. The cause of the “broken patches” problem is due to the following fact: to minimize the plane fitting error, a cluster prefers to squeeze along the shortest semi-principal axis direction at the expense of unreasonably stretching along other directions. Inspired by the idea that a scalar error taking the variance in all directions into consideration may be an effective way to suppress the “broken patches” problem, we use the determinant of the covariance matrix. Note this idea has also been introduced as generalized variance for the scalar measurement of overall multidimensional data .
The covariance matrix’s determinant can be interpreted as the squared volume of the ellipsoidal variance model multiplied by a constant factor:
The “broken patche” problem will be suppressed using the squared volume of the ellipsoidal variance model. Classifying a point far away from the centroid into will result in a large increase for the variance along the direction of , while the variances in other orthogonal directions keep unchanged. Thus it will cause a large increase for this energy. The minimization of this energy prefers the clustering to be one locally-connected patch. Actually, this measurement has a CVT nature of suppressing the clusters from being broken (See Sec.4.2).
4.2 Relation to Mahalanobis CVT
In this section, we show the connection between the determinant of the covariance matrix with the Mahalanobis CVT (MCVT) .
For the energy of each individual cluster, Richter et al.  used the integral of the Mahalanobis distance from the centroid to the points w.r.t. a metric to be optimized. To avoid the trivial zero matrix while optimizing the metric tensor, the metric is constrained to have a unit determinant. This constraint directly leads to the optimal metric being the inverse covariance matrix scaled by a factor, which is the -th root ( is the space dimension) of the determinant of the covariance matrix (See Eq.(15) of MCVT paper ). Thus the cluster energy of MCVT is essentially the -th root of the determinant of covariance matrix. The covariance matrix’s determinant has the CVT nature to suppress broken clusters.
Even though MCVT models the cluster energy using a similar expression form with the covariance matrix’s determinant, their way to evaluate the cluster energy is fundamentally different: MCVT utilizes the concept of optimized metric while we propose it from the perspective of variance analysis. More specifically, to evaluate the energy of a cluster, MCVT solves the optimized metric first, then it sums over the individual Mahalanobis distances over all candidate points. From our perspective, this inefficient computation can be replaced by a direct evaluation of the determinant from the covariance matrix.
4.3 Optimal Surface Approximation
In this section, we first review the desired asymptotic behavior for surface approximation from the perspective of approximation theory. Then we show how these objectives are fulfilled by the minimization of the proposed PCA-based energy.
For the general metric, the optimal piecewise linear approximation of a surface will have the asymptotic stretching ratio as the ratio of the reciprocal square root of the two principal curvatures, which is , where and are the two principal curvatures [2, 3, 4]. For different values in the metric, the optimal surface approximations require different size allocation schemes on these linear elements to equidistribute the error. Here we focus our discussion on the surface approximation since it is closely related to the Laplace-Beltrami operator and can be measured by the Hausdorff distance in practice. Appendix A shows that the optimal asymptotic cluster size is inversely proportional to the square root of the Gaussian curvature for error equidistribution.
Before introducing our energy definition, we illustrate an important property of the overall variance measure in Eq.(9): assume the given surface is , when the variance measure of the cluster is minimized for a fixed infinitesimal cluster size, the aspect ratio of the clusters will automatically converge to the optimal asymptotic stretching ratio given by the hidden principal curvatures. This proof is shown in Appendix B.
Introducing a coefficient that is only related to the cluster area into the cluster energy formulation is an effective way to achieve the goal of implicit cluster size allocation without affecting the asymptotic anisotropic behavior. We propose the energy definition of each cluster to be its covariance matrix’s determinant normalized by the fourth power of the area:
The minimization of the summation over all cluster energies naturally assigns the optimal relative size for each cluster in the asymptotic sense while preserving the desired anisotropy. The proof is illustrated in Appendix C. We denote this energy definition as the PCA-based energy.
In summary, given a surface and a partition number that is large enough, the minimization of our PCA-based energy over all clusters will lead to the partition result that each cluster has the stretching ratio along the maximum principal curvature direction and has the relative size inversely proportional to the square root of the Gaussian curvature. This converged aspect ratio and cluster size are consistent with the optimal aspect ratio and cluster size of piecewise linear interpolation approximation.
4.4 Planar Surface Handling
If the surface has pure planar regions, the PCA-based energy on these regions is always zero for any aspect ratio and region size, even if we set the partition as broken patches. In this case, seeking the minimum shape approximation error will not distinguish these failure results.
For planar surfaces, we set the goal to be obtaining equilateral triangles of the same size in these regions. Given a cluster, we first check whether the shape approximation error per unit area, which is , is smaller than a predefined small threshold . If it is, then this cluster is a degenerate cluster. We extend our PCA-based energy using a quality measurement for the degenerate clusters:
where is the quality measurement coefficient, which is a predefined small constant to balance the relative cluster size between the planar regions and non-planar regions. For a degenerate cluster, the minimization of the covariance matrix’s trace leads to its first two eigenvalues being identical, thus resulting in the optimal aspect ratio being .
5 The Optimization Algorithm
In this section, we develop an effective discrete variational framework to seek the optimal partition for the PCA-based energy. In this discrete setting, clusters are built from discrete triangular faces and these triangular faces serve as the integral domain of the covariance matrix.
At first, each face of the given mesh is treated as an individual cluster. Our partition algorithm consists of two steps: the merging step and the swapping step. The merging step gives an initial partition of the surface into clusters by successively merging neighboring cluster-pair till the user-assigned number of clusters is achieved. The details are provided in Sec. 5.1. Greedily merging clusters will not optimize the partition energy since the merging operation restricts the faces in the two merged clusters to reside in the same final cluster. Thus we relax this binding through a swapping step. The optimal partition is achieved when no local face swapping could further decrease the energy. More details are discussed in Sec. 5.2. An illustrative example of our variational partition algorithm applied on the Kitten model is shown in Fig. 4.
Before introducing the main body of our algorithm, we would like to emphasize its efficiency, which makes the processing on complicated models up to tens of millions triangular faces practical. Our algorithm is very efficient due to two reasons. Firstly, the energy evaluation process for a cluster can be computed very efficiently. According to the energy definition of Eq. (10), we first evaluate the determinant of the covariance matrix. Then if it is a degenerate cluster, the trace of the covariance matrix will be computed. Both the determinant and the trace of a 3 by 3 matrix can be evaluated very efficiently without the need to perform eigen-decomposition. Secondly, maintaining these covariance matrices are computationally efficient for the merging operations and swapping operations. The supplementary material shows the computation of the covariance matrix for one triangle. The efficient update of the covariance matrix is described in Appendix D for the merging operation, and in Appendix E for the swapping operation. As can be seen from these appendices, all the computation needed to maintain the validity of the covariance matrix only involves several float number multiplications based on the shift of the cluster’s centroid.
5.1 Initial Partition using Merging Operation
We utilize a merging operation for the initial partition. At first, each face is treated as a cluster, which may form cluster-pairs with its neighboring faces that share common edges. Each cluster-pair can merge into a new cluster with a merging cost. That is, for a merging operation , the cost is defined as the increase of the total energy: based on the definition of Eq. (10) or Eq. (12). As shown in Appendix D, the complexity of computing such merging cost is , which is independent of the number of triangles in each cluster. All possible merging operations are inserted into a heap, with the merging cost as the key factor. The heap always stores all possible merging operations for the current partition.
Then, the total number of clusters are reduced to by successively merging the least-cost cluster-pair, which is extracted from the top of the heap. After the least-cost pair merging is performed, only a local update is needed to maintain the validity of the heap: the remaining pairs of the two merged clusters are deleted, and the potential pairs of new clusters are computed and inserted. For each least-cost pair merging operation, the total number of clusters is reduced by and the energy is expected to have the slowest increase rate among all the possible merging operations. This step is successively performed until the user-assigned cluster number is achieved.
5.2 Partition Optimization using Swapping Operation
For partition optimization, we let each triangle face freely decide which cluster to reside among the final clusters. For a triangle residing in cluster , we can test whether swapping it to another cluster , where , can decrease the energy in Eq. (1). In practice, to avoid the testing of unnecessary swapping, these swappings are launched in an iterative scheme. For each iteration, triangle is limited to be the boundary triangles. These triangles can only swap to their neighboring clusters. This energy test only involves two clusters. Suppose after swapping, becomes , and becomes . That is, , and . The change of energy is . As shown in Appendix E, the complexity of computing such energy change is , which is independent of the number of triangles in each cluster. Those swaps that decrease Eq. (1) will be accepted. The optimal partition is achieved when no swapping could further decrease the energy.
5.3 Partition Results
From theoretical perspective, our PCA-based energy guarantees the optimal approximation of clusters as linear elements for arbitrary surface (Sec. 4.3), meanwhile the possible planar degenerate case is handled using the same PCA framework by the meshing quality measurement (Sec. 4.4). However, the triangular mesh models are only continuous and may have sharp feature edges. In this section, we show the partition results with a finite partition number on several triangular mesh models using the discrete variational framework. We noticed not only the partition result is consistent with our theoretical derivation (See Fig. 5), it also can capture sharp features without any pre-tagging (See Fig. 6).
The partition on the Ellipsoid model is illustrated in Fig. 5(a). Note the ”broken patches” problem shown in Fig. 3 is effectively suppressed due to the CVT nature of our PCA-based energy. Adaptation of the aspect ratio can be seen from the two ends of the ellipsoid to the middle part. The relative aspect ratio error is used to measure the anisotropy deviation:
where is the measured aspect ratio as the squared root of the ratio between the covariance matrix’s first two eigenvalues, is the theoretic aspect ratio at the projected cluster centroid. We list the relative aspect ratio error histogram of the Ellipsoid partition in Fig. 5(e). For the quantitative evaluation of equidistributing the distance, the results in Fig. 12 and Fig. 13 are shown after the meshing step is introduced in Sec. 6.
Fig. 5(b) shows the partition result on the Plane model with nearly hexagon tiling. Its aspect ratio histogram is listed in Fig. 5(f). Fig. 5(c) and Fig. 5(d) show the partition result on the Cylinder model. The Cylinder model has degenerate planar regions at its two ends while its side is non-degenerate since the shape approximation error is not zero for finite clusters. It can be seen that as the meshing quality measurement increases in Fig. 5(d), the cluster size in the degenerate regions becomes smaller.
Fig. 6 clearly shows feature edges can be captured effectively by our PCA-based energy without any preprocessing. The shape approximation error is minimized by separating the clusters along these feature edges to avoid the sudden increment on the overall scalar variance measure. Fig. 8 illustrates the result on the Hand model.
6 Mesh Generation
As shown in Sec. 4.3, treating each cluster as a linear element maximizes the efficiency of approximation due to the asymptotic behavior of our optimized partition. It is straightforward to convert the optimal partition result into a polygonal mesh, the details are introduced in Sec. 6.1. If the linear elements are restricted to be triangles, we discuss the details of converting the polygonal mesh into a triangular one in Sec 6.2.
Before mesh generation, we perform a ”partition cleaning” step  to guarantee each cluster to be a connected set of faces. We noticed disconnectedness do occur after our discrete optimization framework: since the basic testing unit of the swapping step is an entire triangle, the swapping of some triangles may be accepted with a very small energy decrease, while their neighbors are rejected due to a very small energy increase. In practice, usually dozens of boundary faces need to be cleaned on a model with several million faces. The disconnectedness is illustrated in Fig. 7(a). For these cases, the main component of the cluster is unchanged and all the ”hanging components” can merge with their direct neighbors with the merging cost defined in Sec. 5.1. We merge these components to their least cost neighbor.
6.1 Polygonal Mesh Generation
Based on the optimal partition, our polygonal mesh generation algorithm is in the same spirit as VSA : First, each cluster is attached with a plane proxy defined by the centroid and the smallest eigenvector direction of the corresponding cluster. These planes together serve as the optimal surface approximation. Secondly, anchor vertices are created to represent the original vertices where three or more regions meet. For each anchor vertex, its spatial position is set as the average of all the projections from the original vertices onto its neighboring plane proxies. Thirdly, the anchor vertices are connected based on the neighboring cluster information and are sorted into a polygon with respect to the original mesh’s orientation.
The extracted polygonal meshes from the Ellipsoid surface and the Hand surface are shown in Fig. 9(a) and Fig. 8(b) respectively. Even though each polygon is not necessarily flat since the anchor vertex is the average of all projections. As reported in the VSA paper , this vertex enhancement technique generally improves the approximation accuracy of polygons and each polygon is indeed nearly flat. Also, it preserves the open boundaries on the given surface as shown in Fig. 8(b).
6.2 Triangular Mesh Generation
For triangular mesh generation, previous works   usually treat the clustering result as the dual graph for triangular mesh. To generate a triangular mesh, one optimal vertex is assigned for each cluster and the connectivity of constructed mesh is defined by the adjacency information of the clustering. However, utilizing a dualization step directly is not applicable for our partition result. Our partition cuts the input models along its feature edges (See Fig. 6) and this dualization step will inevitably lose the control of the approximation of feature regions.
Our triangular mesh is built upon the polygonal mesh generated in Sec. 6.1. The polygonal mesh can be coarsely regarded as the optimal linear approximation of the given surface for a finite partition number, but they fail to satisfy the constraint of being triangular linear elements. We employ the âdiscreteâ Constrained Delaunay Triangulation (CDT) step  to triangulate the polygons. Delaunay-like triangles are created while constraining the existing edges between anchor vertices to be in the output mesh. Then we remove some less geometrically important details using the technique of QEM  to reach the desired number of vertices or faces.
Fig. 9 shows the triangular mesh generation process on the Ellipsoid model with 500 assigned vertex budget. Fig. 10 illustrates the triangular mesh generation process on the Octa-flower model with assigned triangle budget. For both cases, we optimize the partition with the user assigned number and terminate the QEM contraction on the CDT mesh when this assigned condition is satisfied.
7 Experiments and Results
In this section, we demonstrate the effectiveness and efficiency of our method. Our algorithm is implemented using Microsoft Visual C++ 2010. For the hardware platform, the experiments are run on a desktop computer with Intel(R) Core i7-4770 CPU with 3.40GHz and 32GB DDR3 RAM.
To evaluate the quality for surface approximation, the one-sided approximation error from the original model to the remeshing results are computed using the Metro tool, i.e. for each vertex of the original mesh, the Metro tool searches its closest point on the generated triangular mesh. The mean approximation error, which is the mean value of these computed errors, is adopted as the criteria for the approximation quality. These error values are normalized w.r.t. the diagonal length of the original model’s bounding box.
7.1 Polygonal Meshing for Function Approximation
For the error-driven approaches, the partition result and the corresponding proxies play the decisive role for the approximation ability. Using the polygonal mesh to represent the partition result and the proxies, we compare with the most widely used VSA approach . Since the metric of VSA produce poor partition results (the same problem as shown in Fig. 3) after the plane proxies settle down from Lloyd’s relaxation, the partition results of its recommended metric are used for comparison.
The input mesh is a dense sampling on a paraboloid function:
with vertices and faces. Since the Hessian of this function is constant everywhere, the optimally approximation requires each partition region has the same region size with the aspect ratio of . Our partition result shows a nearly hexagonal tiling of the original surface, as shown in Fig. 12. We explicitly perform the discrete CDT step on both polygonal meshes to generated the flat surfaces for height difference evaluation. It can be seen that our method produces a smaller and more equidistributed height approximation error compared with VSA.
7.2 Polygonal Meshing for Surface Approximation
Fig. 13 shows the comparison on the Masque surface, which has vertices and faces. Here the approximation distance is evaluated at every vertices of the original mesh. We compute the one-sided approximation error to the polygonal mesh after the discrete CDT step. It clearly shows our method outperforms the VSA method with the one-sided approximation error nearly equidistribute everywhere. Tab. I lists the computational time of applying our approach for polygonal mesh generation on different models.
|Model||# input||# input||# output||merging||swapping||meshing||total|
7.3 Triangular Meshing for Surface Approximation
In order to evaluate the effectiveness of our triangular mesh, we compare our results with Valette et al’s discrete ACVT approach , Fu et al’s LCT method  and the open-source remeshing tool provided by MeshLab v1.0.2 , which combines the QEM method with some post-simplification cleaning and refinement. Note that the ACVT approach and the LCT approach require the curvature metric as input. ACVT uses Cazals and Pouget’s approach  for curvature estimation and LCT adopts Rusinkiewicz’s method  and applies the same techniques as Boissonnat et al.  to smooth the estimated curvature tensor.
The comparison is performed on the Kitten model and the Buddha model. To test the ability of different methods, we compare them on a set of vertex budgets. Fig. 14 shows the mean approximation error curve w.r.t. the number of vertices. It can be clearly seen that our approach provides the best surface approximation among all these methods. Meshlab’s approximation error is closest to our method. For the same approximation error, our method can save about vertices compared with Meshlab. It should be noted the features of the models are not pre-tagged for the comparison, thus LCT method may miss the features during the projection step from the optimized vertices onto the triangular mesh, resulting in a much higher approximation error.
Fig. 15 shows the approximation result on the Kitten model with 200 vertex budget. Fig. 16 illustrates the approximation result on the Buddha model with vertex budget. Among these results, our method preserves the features (the neck and tail of the Kitten model, the pattern on the base and the fold on the skirt of the Buddha model), meanwhile exhibiting naturally adapted aspect ratio. For the LCT approach, obvious feature blurring can be noticed since the features are not identified in advance. The ACVT approach and the Meshlab tool show inferior feature alignment result compared with ours (See the neck of the Kitten model). In general, they put much denser vertices at the feature regions and coarser vertices at other regions. These results clearly show the advantageous of our PCA approach, i.e. being curvature-metric-free and feature awareness.
7.4 Triangular Meshing on Noisy Surface
Robustness against noises is usually desired for remeshing methods since the acquisition process of 3D scanners inevitably introduces noise signals. We model this acquisition process with the most widely used additive white Gaussian noise as illustrated in Fig. 17. Here the original Olivier hand model has vertices and faces and the noisy model is generated by disturbing the vertices of the original surface along their normal directions with Gaussian white noises whose variance is w.r.t. the diagonal length of the original model’s bounding box. With such severe noise mixed in, it is straightforward to apply some denoising techniques as preprocessing. As illustrated in Fig. 17(c), the denoising technique proposed by Sun et al.  removes the noise at the expense of filtering out important detail of the original model. Fig. 17(d), (e) and (f) show the remeshing results on the denoised model using ACVT, Meshlab and PCA respectively.
Note the grain details of the hand are lost during the denoising step and are unable to be recovered during the remeshing step. Thus we also discuss the alternative approach of remeshing on the challenging noisy surface directly. Fig. 18 shows the remeshing results on the noisy model shown in Fig. 17(b) with vertices using ACVT, Meshlab and PCA. Among these results, our method provides the best visual result and still exhibits the anisotropy under severe additive noise. ACVT method requires the explicitly extraction of the curvature field, which quickly degenerates to meaningless random field under severe noise. Thus their anisotropic characteristic for better surface approximation is not robust against noise. The QEM result shown in Fig. 18(b) basically suffers from the same problem: the normal of triangle plane is not robust enough under noise attack thus their energy is also fragile. While our PCA-based approach is more stable to capture the anisotropy.
|Model||# input||# input||# output||merging||swapping||meshing||total|
|Noisy Olivier hand||500||0.90||1.25||0.56||2.71|
8 Conclusion Discussion
As one of the error-driven approaches, our PCA-based energy is closely linked with the CVT energy thus penalizes the ”broken patches”. Besides the efficiency for energy evaluation, its anisotropic property and automatically capturing sharp features are well suited for surface remeshing.
Using a discrete variational optimization framework, the number of triangles of input mesh and its quality will influence our remeshing result. Generally speaking, the output from 3D scanners can be used directly. For triangular mesh with insufficient samples, subdivision of triangles is needed as preprocessing to obtain a denser input mesh.
Implicitly incorporating PCA of surface patches is a powerful way to provide a concise geometric representation, which is well demonstrated through the examples in our paper. Moreover, it seems to offer interesting alternatives for other types of approximation problems, such as the surface approximation problem arising from point cloud data, the height field approximation problem coming from images, etc. We will investigate these problems in the future.
Appendix A Desired Asymptotic Cluster Size for Approximation
For an infinite partition number that each cluster converges to a patch with zero area on a surface, we now derive the relationship between the cluster size and Gaussian curvature such that the approximation error is equidistributed everywhere.
We first consider the desired cluster length along one principal direction (see Fig. 19). For point on the surface, its osculating circle, whose center is denoted as , has the radius along this direction as the inverse of the corresponding curvature . We denote the equidistributed approximation error as . So for the infinitesimal patch of , is the distance from point to the linear interpolation element (it is the largest distance in this cluster), whose length at this specific direction is denoted as . It is obvious to see from the figure that and must satisfy:
When the number of clusters grows to infinity, we have . Thus . Since is identically distributed everywhere, we have .
For the other principal direction, this relationship still holds : . So the optimal asymptotic cluster size that equidistributes the approximation error is inversely proportional to the square root of Gaussian curvature:
Appendix B Asymptotically Optimal Aspect Ratio
For an infinite partition number that each cluster converges to a patch with zero area on a surface, we now prove that the minimization of the overall variance measure, which is the determinant of the covariance matrix, will lead these infinitesimal patches to have the optimal aspect ratio .
Since the aspect ratio of a patch is involved, for the sake of simplicity, we assume that each patch is a rectangular shape whose sides are parallel to the principal curvatures, and have lengths , (see Fig. 20). The covariance matrix of this patch only depends on the two side lengths for the integration domain. We now investigate the optimal aspect ratio of to minimize the overall variance measure, which is determinant of the cluster’s covariance matrix.
Let be the infinitesimal rectangular patch on the surface, which has two principal curvatures , . Denote , and the aspect ratio of the rectangle as . The covariance matrix is the surface integral over the rectangular domain:
where is the points in the rectangle domain, is the centroid of the rectangular patch:
The overall covariance measure thus is . We are going to prove that when each rectangular patch converges to zero-area, the aspect ratio of each cluster will automatically converge to to minimize its overall covariance measure:
Our proof first gives the formulas of the three eigenvalues of in terms of and explicitly, then the best aspect ratio that minimize the overall variance measure is derived based on these formulas.
The neighborhood of a point on the surface can be approximated to the second order by:
where and are the local paramters as shown in Fig. 20.
We first consider the centroid :
Then the covariance matrix becomes:
where . All the non-diagonal terms of the covariance matrix are 0, since they are odd functions of u or/and v, and the three diagonal terms , , and correspond to the three eigenvalues:
The best aspect ratio can be achieved at its stationary point:
Appendix C Asymptotically Optimal Cluster Size for Approximation
Following the derivations in Appendix B, we now extend the discussion to our proposed PCA energy, which is the summation over all clusters w.r.t. the determinant of its covariance matrix normalized by the fourth power of the area:
where the superscript refer to the cluster index.
For each cluster, its energy is a function depending on its cluster size and its aspect ratio . Since the surface is given and total cluster size is fixed, optimizing the partition energy becomes a constrained minimization problem. It is worth noting that the optimal aspect ratios are independent of each other:
Thus the optimal aspect ratio of each cluster is the same as illustrated in Appendix B, the cluster energy of the -th cluster becomes:
For the minimization of our proposed partition energy when :
where is constant surface area.
We can use Lagrange multiplier to analyze the constrained minimization problem :
For the optimal cluster size of -th cluster, it must satisfy:
So is a constant and the optimal cluster size is inversely proportional to the square root of Gaussian curvature:
This agrees with the desired asymptotic cluster size shown in Appendix A.
Appendix D Efficient Update of Covariance Matrix for Merging Operation
For a merging operation , we show that the update of the covariance matrix can be efficiently computed by keeping track of the centroid and surface area of the two clusters. That is, there is no need to sum over all of the vertices in these cluster.
For cluster , we denote its surface area as and its centroid as :
Considering the merging operation , it is obvious the surface area and the centroid can be updated easily:
We consider the update of the covariance matrix , which is:
The integral domain can be split into two parts : . For the first part , substituting with , it becomes:
The second part is alike, so we can update the covariance matrix as:
Appendix E Efficient Update of Covariance Matrix for Swapping Operation
For a swapping operation which swaps a triangle face from to . Suppose after swapping, becomes and becomes , i.e., , and .
It is obvious the surface areas and the centroids can be updated by:
This swapping operation can be interpreted as two merging operations: is the cluster merged from and , and is the cluster merged from and :
-  P. K. Agarwal and S. Suri, “Surface approximation and geometric partitions,” SIAM Journal on Computing, vol. 27, no. 4, pp. 1016–1035, 1998.
-  E. Nadler, “Piecewise linear best approximation on triangulations,” in Approximation Theory V, C. Chui, L. Schumaker, and J. Ward, Eds. Academic Press, 1986, pp. 499–502.
-  R. B. Simpson and R. B. Simpson, “Anisotropic mesh transformations and optimal error control,” Applied Numer. Math, vol. 14, pp. 183–198, 1992.
-  L. Chen, P. Sun, and J. Xu, “Optimal anisotropic simplicial meshes for minimizing interpolation errors in -norm,” Mathematics of Computation, vol. 76, no. 257, pp. 179–204, 2007.
-  J.-D. Boissonnat, K.-L. Shi, J. Tournois, and M. Yvinec, “Anisotropic Delaunay meshes of surfaces,” ACM Trans. Graph., vol. 34, no. 2, pp. 14:1–14:11, 2014.
-  S. Valette, J. M. Chassery, and R. Prost, “Generic remeshing of 3D triangular meshes with metric-dependent discrete Voronoi diagrams,” IEEE Transactions on Visualization and Computer Graphics, vol. 14, no. 2, pp. 369–381, 2008.
-  X.-M. Fu, Y. Liu, J. Snyder, and B. Guo, “Anisotropic simplicial meshing using local convex functions,” ACM Trans. Graph., vol. 33, no. 6, pp. 182:1–182:11, 2014.
-  D. Cohen-Steiner, P. Alliez, and M. Desbrun, “Variational shape approximation,” ACM Trans. Graph., vol. 23, no. 3, pp. 905–914, 2004.
-  M. Garland and P. S. Heckbert, “Surface simplification using quadric error metrics,” in Proceedings of the 24th Annual Conference on Computer Graphics and Interactive Techniques, ser. SIGGRAPH ’97, 1997, pp. 209–216.
-  Q. Du, V. Faber, and M. Gunzburger, “Centroidal Voronoi tessellations: Applications and algorithms,” SIAM Rev., vol. 41, no. 4, pp. 637–676, 1999.
-  G. Leibon and D. Letscher, “Delaunay triangulations and Voronoi diagrams for Riemannian manifolds,” in Proceedings of the Sixteenth Annual Symposium on Computational Geometry, ser. SCG ’00, 2000, pp. 341–349.
-  Q. Du and D. Wang, “Anisotropic centroidal Voronoi tessellations and their applications,” SIAM Journal on Scientific Computing, vol. 26, no. 3, pp. 737–761, 2005.
-  S. P. Lloyd, “Least squares quantization in PCM,” IEEE Transactions on Information Theory, vol. 28, pp. 129–137, 1982.
-  Y. Liu, W. Wang, B. Lévy, F. Sun, D.-M. Yan, L. Lu, and C. Yang, “On centroidal Voronoi tessellation – energy smoothness and fast computation,” ACM Trans. Graph., vol. 28, no. 4, pp. 101:1–101:17, 2009.
-  B. Lévy and N. Bonneel, “Variational anisotropic surface meshing with Voronoi parallel linear enumeration,” in International Meshing Roundtable conf. proc., 2012, pp. 349–366.
-  Z. Zhong, X. Guo, W. Wang, B. Lévy, F. Sun, Y. Liu, and W. Mao, “Particle-based anisotropic surface meshing,” ACM Trans. Graph., vol. 32, no. 4, pp. 99:1–99:14, 2013.
-  L. Chen and J. Xu, “Optimal Delaunay triangulations,” Journal of Computational Mathematics, vol. 22(2), pp. 299–308, 2004.
-  J.-D. Boissonnat, C. Wormser, and M. Yvinec, “Locally uniform anisotropic meshing,” in Proceedings of the Twenty-fourth Annual Symposium on Computational Geometry, ser. SCG ’08, 2008, pp. 270–277.
-  C. Dobrzynski and P. Frey, “Anisotropic Delaunay mesh adaptation for unsteady simulations,” in Proceedings of the 17th international Meshing Roundtable, 2008, pp. 177–194.
-  P. S. Heckbert and M. Garland, “Optimal triangulation and quadric-based surface simplification,” Journal of Computational Geometry: Theory and Applications, vol. 14, pp. 49–65, 1999.
-  M. Garland, A. Willmott, and P. S. Heckbert, “Hierarchical face clustering on polygonal surfaces,” in Proceedings of the 2001 Symposium on Interactive 3D Graphics, ser. I3D ’01, 2001, pp. 49–58.
-  J. Wu and L. Kobbelt, “Structure recovery via hybrid variational surface approximation,” Computer Graphics Forum, vol. 24, no. 3, pp. 277–284, 2005.
-  D.-M. Yan, Y. Liu, and W. Wang, “Quadric surface extraction by variational shape approximation,” in Geometric Modeling and Processing - GMP 2006, 2006, pp. 73–86.
-  S. S. Wilks, Mathematical statistics. Wiley, 1962.
-  R. Richter and M. Alexa, “Mahalanobis centroidal Voronoi tessellations,” Computers & Graphics, vol. 46, no. 0, pp. 48–54, 2015.
-  P. Cignoni, C. Rocchini, and R. Scopigno, “Metro: Measuring error on simplified surfaces.” Computer Graphics Forum, vol. 17, no. 2, pp. 167–174, 1998.
-  P. Cignoni, M. Callieri, M. Corsini, M. Dellepiane, F. Ganovelli, and G. Ranzuglia, “Meshlab: an open-source mesh processing tool.” in Eurographics Italian Chapter Conference, V. Scarano, R. D. Chiara, and U. Erra, Eds. The Eurographics Association, 2008, pp. 129–136.
-  F. Cazals and M. Pouget, “Estimating differential quantities using polynomial fitting of osculating jets.” Computer Aided Geometric Design, vol. 22, no. 2, pp. 121–146, 2005.
-  S. Rusinkiewicz, “Estimating curvatures and their derivatives on triangle meshes,” in Symposium on 3D Data Processing, Visualization, and Transmission, 2004.
-  X. Sun, P. Rosin, R. Martin, and F. Langbein, “Fast and effective feature-preserving mesh denoising,” IEEE Transactions on Visualization and Computer Graphics, vol. 13, no. 5, pp. 925–938, 2007.