Next Article in Journal
Distributed State Estimation Based Distributed Model Predictive Control
Previous Article in Journal
Isolation Number versus Domination Number of Trees
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-Reconstruction from Points Cloud by Using a Modified Vector-Valued Allen–Cahn Equation

1
School of Humanities and Social Science, Xi’an Jiaotong University, Xi’an 710049, China
2
School of Mathematics and Statistics, Xi’an Jiaotong University, Xi’an 710049, China
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(12), 1326; https://doi.org/10.3390/math9121326
Submission received: 29 April 2021 / Revised: 27 May 2021 / Accepted: 5 June 2021 / Published: 9 June 2021
(This article belongs to the Section Mathematics and Computer Science)

Abstract

:
The Poisson surface reconstruction algorithm has become a very popular tool of reconstruction from point clouds. If we reconstruct each region separately in the process of multi-reconstruction, then the reconstructed objects may overlap with each other. In order to reconstruct multicomponent surfaces without self-intersections, we propose an efficient multi-reconstruction algorithm based on a modified vector-valued Allen–Cahn equation. The proposed algorithm produces smooth surfaces and closely preserves the original data without self-intersect. Based on operator splitting techniques, the numerical scheme is divided into one linear equation and two nonlinear equations. The linear equation is discretized using an implicit method, and the resulting discrete system of equation is solved by a fast Fourier transform. The two nonlinear equations are solved analytically due to the availability of a closed-form solution. The numerical scheme has merit in that it can be straightforwardly applied to a graphics processing unit, allowing for accelerated implementation that performs much faster than central processing unit alternatives. Various experimental, numerical results demonstrate the effectiveness and robustness of the proposed method.

1. Introduction

Multimaterial reconstruction from multi-labeled point clouds is of significant importance in many disciplines, such as mechanical engineering [1,2]. Such point clouds are sampled by a multi-camera vision system and provide the local connectivity of objects. For instance, in the reversed engineering problem, multicomponent surfaces/volumes of the object should be reconstructed without self-intersections so that a multimaterial 3D printer can process these models. The challenges in multi-reconstruction mainly lie in the following two aspects: how to handle the contacting regions and how to maintain the original topology. Up until now, many reconstruction methods have been developed to address modeling from point clouds. In addition, modeling multi-labeled domains have been extensively studied in reconstructing surfaces or volumes from sets of planar cross-sections. The authors proposed a phase field framework for 3D surface reconstruction from parallel slices based on the modified Cahn–Hilliard equation [3,4,5]. All of the above-mentioned reconstruction methods can process one region or separated regions but cannot process contacting regions. If we reconstruct surfaces from each single-labeled point, the resulted objects may overlap with each other (see Figure 1). Here, the surface/volumes-overlapping problem refers to the phenomenon that the volume voxel is defined for more than one value for the label. Hence, we need to develop an efficient algorithm to reconstruct multicomponent surfaces from point clouds without overlapping regions.
In this paper, we propose an efficient multi-reconstruction method from point clouds. The proposed method is based on the Allen–Cahn (AC) equation [7], which has the motion of the mean curvature flow [8,9,10,11]. Under the mean curvature flow, the reconstructed surface is smooth. The Allen–Cahn equation has been applied to a wide range of problems such as crystal growth [12,13,14], image analysis [15,16,17,18], triply-periodic minimal surface [19,20], and volume reconstruction [21,22,23], and topology optimization [24]. In this paper, we use the Allen–Cahn equation in different contexts and applications. To our best knowledge, the presented approach is the first algorithm using the modified vector-valued Allen–Cahn equation for multi-reconstruction from point clouds. Our method can guarantee the production of well-reconstructed multicomponent surfaces without self-intersections. Our main contributions in this paper are as follows:
  • The first algorithm using a modified vector-valued Allen–Cahn equation for multi-reconstruction from point clouds, which can reconstruct multicomponent surfaces without self-intersections;
  • Based on operator splitting techniques, the proposed numerical scheme is simple to implement;
  • The algorithm can be straightforwardly applied to a graphics processing unit (GPU), allowing for accelerated implementation that performs many times faster than other central processing units (CPU).
The remainder of the paper is organized as follows. Section 2 briefly reviews some related works. In Section 3, we introduce the preliminary. In Section 4, the governing equations for the multi-reconstruction from a point cloud are presented. Section 5 presents the operator splitting scheme, and Section 6 states the numerical results of several computational examples. Conclusions are drawn in Section 7.

2. Related Work

2.1. Implicit Surface Reconstruction

Implicit methods usually deal with data imperfections [25,26]. Most of the implicit implemented function are based on the signed distance function, radial basis functions, piecewise polynomial functions, or indicator functions. Hoppe et al. [27] defined the signed distance field by using the tangent plane projection. In [28], Carry et al. employed the polyharmonic radial basis function to reconstruct the manifold surfaces. This technique is well-suited to deal with non-uniformly sampled point clouds. However, it fails to reconstruct a proper surface from the point clouds with noises. Ohtake et al. [29] used the piecewise quadratic function and partition-of-unity weights to capture the local surface shape. This approach has the benefit of sharp feature reconstruction. Manson et al. [30] presented a streaming method for surface reconstruction from large point sets by using the wavelets method. The Poisson method [6] is a popular implicit method because of its resilience to data noises. However, it tends to smooth geometric details. To overcome this defect, Kazhdan and Hoppe [31] extended the Poisson method by explicitly incorporating the points as interpolation constraints by formulating a screened Poisson surface reconstruction method. Bretin et al. proposed a variational approach for the reconstruction of a volume from slices by using a minimizer of a geometric regularity criterion, Willmore energy, with inclusion–exclusion constraints associated with the cross-sections. In [32], the authors considered the problem of 3D shape reconstruction from multimodal data, given uncertain calibration parameters. To analytically and compactly represent the object, they exploited a parametric level set method, which utilized ellipsoidal radial basis functions. Kim and Lee proposed a modified Cahn–Hilliard equation for three-dimensional volume reconstruction from 2D slices [4]. In order to accurately satisfy the constraints while obtaining a smooth result, they applied a presmoothing procedure based on anisotropic diffusion to the slices.

2.2. Multi-Reconstruction

Volume fractions and implicit functions are typical approaches for defining the multi-labeled domains. Hirt and Nichols [33] developed an efficient interface reconstruction method by treating complicated free boundary configurations as the material interfaces. To obtain the finer interface details, the authors utilized information about the position of the material centroid for the interface reconstruction [34,35,36]. Lemoine et al. [37] proposed a fast analytic reconstruction formula replacing the original minimization stage in the framework of the moment-of-fluid method. This algorithm can provide accurate results with a lower computational cost. Kikinzon et al. [38] extended the moment-of-fluid method to simultaneously establish the geometry and topology. Since the modified moment-of-fluid method does not require data from its neighbors, the modified moment-of-fluid method is well suitable for massively parallel computing. Yuan et al. [39] introduced a class of object-space multiphase implicit functions that are capable of accurately modeling objects with multiple internal regions. Zhang and Qian [40] resolved the topology ambiguity method by analyzing a hybrid Octree method with both cubic and tetrahedral leaf cells. This method can apply to both homogeneous and multimaterial domains. Da et al. [41] presented the first non-manifold triangle mesh tracking method to simultaneously maintain intersection-free meshes. Their methods support multimaterial remeshing and topological operations. In the context of multi-reconstruction from cross-sections, Liu et al. [42] proposed an extension of the projection-based approach that can deal with curve networks of arbitrary topology on cross-section planes with arbitrary orientations. Bermano et al. [43] used multiple implicit functions to extract multi-labeled material interfaces from sampled planar cross-sections of arbitrary orientation. Huang et al. [44] developed the first reconstruction algorithm for multi-labeled material interfaces that allows for explicit topology control. Li et al. [45] constructed 3D models of multi-labeled objects from sets of cross-sections by employing a multicomponent Cahn–Hilliard system. This algorithm is simple to implement and produces smooth surfaces. However, all the mentioned multi-labeled material reconstruction methods can not directly reconstruct surfaces from multi-labeled point clouds. To our best knowledge, the presented approach is the first algorithm using the modified vector-valued Allen–Cahn equation for multi-reconstruction from point clouds. Our method can guarantee the production of well-reconstructed multicomponent surfaces without self-intersections.

3. Preliminary: Poisson Surface Reconstruction

The Poisson reconstruction method creates smooth surfaces [6] by using an indicator ψ (defined as 1 at the voxel inside the solid M and 0 at the voxel outside the solid M). Given the vector field v ( x ) R 3 defined by the data samples S, the goal of the Poisson reconstruction method is to find the scalar function ψ ( x ) by minimizing
E 1 ( ψ ) = Ω ψ ( x ) v ( x ) 2 2 d x .
Here, x Ω and Ω R 3 . ∇ is the gradient operator and · 2 is the L 2 inner product. By applying the divergence operator to form the Poisson equation, the governing equation can be obtained by
Δ ψ = · v ,
where Δ and · are the Laplacian and divergence operators, respectively. The vector field v is defined by convolving the normal field with a Dirac delta function:
v ( x ) = M δ ( x p ) n ( p ) d p p S δ ( x p ) n ( p ) ,
where n ( p ) is the inward surface normal at p S , δ is the Dirac delta function, and M is the boundary of the solid M. After solving Equation (2), we can obtain the solution ψ , which is also called the indicator function [46,47,48,49,50]. Then, we define the reconstructed surface S as the half isosurface of the scalar function ψ .

4. Methodology

Using the Poisson surface reconstruction [6], the indicator function of i th material can be determined by a discrete function ψ i ( x ) in the domain Ω . Here, ψ i ( x ) = 1 if the voxel x is determined as a volume voxel, otherwise ψ i ( x ) = 0 . As mentioned in the above section, ψ i contains lots of good voxels and few self-intersection regions. We want to obtain a new smooth discrete function ϕ i ( x ) , which approaches the given ψ i ( x ) without self-intersections. To realize this goal, we propose the following total free energy
E ( ϕ ) = i = 1 N Ω F ( ϕ i ) ϵ 2 + 1 2 | ϕ i | 2 + λ 2 | ψ i ϕ i | 2 d x
Here, the double-well potential function F ( ϕ i ) = ϕ i 2 ( ϕ i 1 ) 2 / 4 can enforce ϕ to be approximately 0 or 1. ϵ is the positive constant and relates to the phase transition width. λ is the positive constant. Minimizing the first two terms of the functional E ( ϕ ) is equivalent to finding the steady-state solution of the gradient flow equation:
ϕ i ( x , t ) t = F ( ϕ i ( x , t ) ) ϵ 2 + Δ ϕ i ( x , t ) , 0 < t T .
Here, t is the time variable. Equation (5) is the well-known Allen–Cahn equation [7], which has the motion of mean curvature [8]. This ensures that the obtained surface is smooth. Minimizing the third term of the functional E ( ϕ ) enforces that the new smooth discrete function ϕ i ( x ) is almost the same as those in the originally known volume ψ i .
The sum of the different material components should be equal to 1, i.e., i = 1 N ϕ i = 1 , which implies that any voxel is defined as one label (See Figure 2). Therefore, if we minimize the functional E and keep i = 1 N ϕ i = 1 , the obtained surface will be similar to ψ i and will be smooth without self-intersections. To minimize the proposed functional E , we consider the gradient descent method in the L 2 space:
ϕ i ( x , t ) t = F ϕ i ( x , t ) ϵ 2 + Δ ϕ i ( x , t ) + β ( x ) + λ ψ i ( x ) ϕ i ( x , t ) ,
ϕ i ( x , t ) is Ω periodic ,
ϕ i ( x , 0 ) = ψ ( x ) .
where
β = 1 N j = 1 N F ϕ j ϵ + 1 N λ 1 j = 1 N ψ j .
This Lagrangian multiplier guarantees that the constraint i = 1 N ϕ i = 1 is satisfied:
t i = 1 N ϕ i = i = 1 N ϕ i t = i = 1 N F ( ϕ i ) ϵ 2 + i = 1 N β + Δ i = 1 N ϕ i + λ i = 1 N ψ i i = 1 N ϕ i = i = 1 N F ( ϕ i ) ϵ 2 + N β + λ i = 1 N ψ i 1 = 0 .
The total energy can be decreased over time as follows:
d E d t = Ω i = 1 N F ( ϕ i ) ϵ 2 Δ ϕ i + λ ψ i ϕ i ϕ i t d x = Ω i = 1 N ϕ i t + β ϕ i t d x = Ω i = 1 N ϕ i t 2 d x + β Ω t i = 1 N ϕ i d x = Ω i = 1 N ϕ i t 2 d x 0 .
Here, we have used the periodic boundary conditions for ϕ i . It should be noted that the solution of Equations (6)–(8), which are derived from a constrained gradient flow of the free energy functional, is unique.

5. Numerical Method

We utilize an efficient operator splitting scheme for Equation (6) on the discrete domain Ω = 0 , L x × 0 , L y × 0 , L z . Let h = L x / N x = L y / N y = L z / N z be the uniform grid size. Let x p = p h , y q = q h , z r = r h , 1 p N x , 1 q N y , and 1 r N z . Let x p q r = ( x p , y q , z r ) and ϕ i , p q r k be approximations of ϕ i ( x p q r , k Δ t ) , where Δ t is the time step. We split the original problem (6) into a sequence of simpler problems as
t ϕ i 1 ( x , t ) = λ ( x ) ψ ( x ) ϕ i 1 ( x , t ) , t ( k 1 ) Δ t , k Δ t , ϕ i 1 ( x , ( k 1 ) Δ t ) = ϕ i ( x , ( k 1 ) Δ t ) ,
t ϕ i 2 ( x , t ) = Δ ϕ i 2 ( x , t ) + β ( x ) , t ( k 1 ) Δ t , k Δ t , ϕ i 2 ( x , ( k 1 ) Δ t ) = ϕ i 1 ( x , k Δ t ) ,
and
t ϕ i 3 ( x , t ) = F ϕ i 3 ϵ 2 , t ( k 1 ) Δ t , k Δ t , ϕ i 3 ( x , ( k 1 ) Δ t ) = ϕ i 2 ( x , k Δ t ) .
Here, ϕ i 1 , ϕ i 2 , and ϕ i 3 denote the solutions of the subproblem (11)–(13), respectively. For a fixed x , we can see that Equation (11) is a separable ordinary differential equation, i.e., λ d t + d ϕ / ( ϕ ψ ) = 0 . We can obtain the following solution:
ϕ i , p q r 1 , k + 1 = e λ Δ t ϕ i , p q r k + 1 e λ Δ t ψ p q r .
Next, we employ an implicit method to Equation (12):
ϕ i , p q r 2 , k + 1 ϕ i , p q r 1 , k + 1 Δ t = Δ ϕ i , p q r 2 , k + 1 + β i , p q r 1 , k + 1 .
This discrete scheme can be solved by a fast Fourier transform as follows. The discrete Fourier transform ϕ ^ i , l m n for l = 1 , , N x , m = 1 , , N y , and n = 1 , , N z is defined as
ϕ ^ i , l m n = F ( ϕ i , p q r ) = p = 1 N x q = 1 N y r = 1 N z ϕ i , p q r e i ( ξ l x p + η m y q + γ n z r ) ,
where ξ l = 2 π ( l 1 ) / L x , η m = 2 π ( m 1 ) / L y , and γ n = 2 π ( n 1 ) / L z , respectively. The inverse discrete Fourier transform is
ϕ i , p q r = F 1 ( ϕ ^ i , l m n ) = l = 1 N x m = 1 N y n = 1 N z ϕ ^ i , l m n e i ( x p ξ l + y q η m + z r γ n ) .
We apply the Fourier transform to both sides of Equation (15):
F ( ϕ i , p q r 2 , k + 1 ) F ( ϕ i , p q r 1 , k + 1 ) Δ t = ξ l 2 + η m 2 + γ n 2 F ( ϕ i , p q r 2 , k + 1 ) + F ( β i , p q r 1 , k + 1 ) .
Then, we can get
ϕ i , p q r 2 , k + 1 = F 1 ( F ( ϕ i , p q r 2 , k + 1 ) ) = F 1 F ( ϕ i , p q r 1 , k + 1 ) + Δ t F ( β p q r 1 , k + 1 ) 1 + Δ t ξ l 2 + η m 2 + γ n 2 .
For a fixed x , Equation (13) is also a separable ordinary differential equation, i.e., d t / ϵ 2 2 d ϕ / ϕ + 4 d ϕ / ( ϕ 0.5 ) + 2 d ϕ / ( 1 ϕ ) = 0 . With the initial condition ϕ p q r 2 , k + 1 , we can obtain the following solution after Δ t :
ϕ i , p q r 3 , k + 1 = 1 2 + ϕ i , p q r 2 , k + 1 0.5 e Δ t 2 ϵ 2 + 2 ϕ i , p q r 2 , k + 1 1 2 1 e Δ t 2 ϵ 2 .
Then, we set ϕ i k + 1 = ϕ i 3 , k + 1 and complete the one time step processing. Finally, the proposed scheme can be written as follows:
ϕ i , p q r 1 , k + 1 = e λ Δ t ϕ i , p q r k + 1 e λ Δ t ψ i , p q r
ϕ i , p q r 2 , k + 1 = F 1 F ( ϕ i , p q r 1 , k + 1 ) + Δ t F ( β p q r 1 , k + 1 ) 1 + Δ t ξ l 2 + η m 2 + γ n 2
ϕ i , p q r k + 1 = 1 2 + ϕ i , p q r 2 , k + 1 0.5 e Δ t 2 ϵ 2 + 2 ϕ p q r 2 , k + 1 1 2 1 e Δ t 2 ϵ 2
Therefore, the numerical scheme (Equations (21)–(23)) is simple to implement because Equation (6) is divided into one linear equation and two nonlinear equations. The linear equation is discretized using an implicit method, and the resulting discrete system of equations is solved by a fast Fourier transform. The two nonlinear equations are solved analytically due to the availability of a closed-form solution. Our method is fast since the computational complexities of two nonlinear equations are O ( N x N y N z ) and the computational complexity of the linear equation is O ( N x N y N z log ( N x N y N z ) ) . Therefore, our method is simple and fast. Our method also has merit in that it can be straightforwardly applied to GPU-accelerated implementation by using the MATLAB Parallel Computing Toolbox.
The operator splitting-based hybrid numerical scheme (Equations (21)–(23)) has a good numerical stability. For Equation (21), we get 0 ϕ i 1 , k + 1 e λ Δ t + ( 1 e λ Δ t ) = 1 , because ϕ i k [ 0 , 1 ] and ψ i [ 0 , 1 ] . Since Equation (22) is a heat-type equation, its implicit numerical scheme can allow the use of a large time step. For Equation (23), we get
ϕ k + 1 = 2 + ϕ 2 , k + 1 0.5 e Δ t 2 ϵ 2 + ( 2 ϕ 2 , k + 1 1 ) 2 ( 1 e Δ t 2 ϵ 2 ) = 1 if ϕ 2 , k + 1 = 1 , 1 if ϕ 2 , k + 1 ( 0.5 , 1 ) , 0.5 if ϕ 2 , k + 1 = 0.5 , 0 if ϕ 2 , k + 1 ( 0 , 0.5 ) , 0 if ϕ 2 , k + 1 = 0 .
Thus, if ϕ i 2 , k + 1 [ 0 , 1 ] , then ϕ i k + 1 [ 0 , 1 ] . Therefore, the numerical solution ϕ i is bounded, which implies that our proposed scheme allows using a larger time step. The hybrid numerical scheme (Equations (21)–(23)) has first-order accuracy in time and second-order accuracy in space because Equation (22) is employed by using an implicit method and Equations (21) and (23) are two ordinary equations. It should be noted that in the analysis, we can not prove the unconditional stability of our method. On the other hand, for the computational simulation, the results with a large time step are generally less accurate than those obtained by using a small time step, because using a larger time step would cause a large error of the numerical solutions. Therefore, a small time step will be used for highly accurate numerical solutions. Therefore, to maintain the numerical accuracy and reduce computational costs, we propose to use Δ t = 0.25 in this paper.

6. Experimental Results

In this section, various numerical results will be performed to demonstrate the accuracy and efficiency of our algorithm. We consider the numerical result as a steady-state solution if the relative error for every component is less than a tolerance t o l , i.e., ϕ i k + 1 ϕ i k 2 / ϕ i k 2 for i = 1 , , N . Unless otherwise specified, we use the following parameters: h = 1 , Δ t = 0.25 , t o l = 1 e 5 , λ = 0.1 , and ϵ = 0.75 . The reconstructed surface S is defined as the half isosurface of the phase field ϕ i . Note that the original input points cloud is taken from [51].

6.1. Basic Mechanism of the Algorithm

We start with an example that illustrates the basic mechanism of our algorithm. As is shown in Figure 3a, let us consider two-labeled oriented point samples of two intersecting spheres. The radii of the red sphere and blue sphere are 100 and 75, respectively. Figure 3b,c shows the reconstructed surface obtained by the Poisson reconstruction and our method, respectively. The overlapping region exists in the result of Poisson reconstruction, as shown in the left figure of Figure 4. On the other hand, our proposed method can overcome this difficulty, as shown in the right figure of Figure 4. Figure 4 illustrates the evolution of our modified multicomponent AC equation in the cross-view. From left to right, the illustration represents t = 0 , 1, and 5.5 , respectively. It is obvious that our method can reconstruct multicomponent surfaces without overlapping regions.

6.2. Performance on the Complex Reconstruction

We use the proposed method to reconstruct the surface from the complex multi-labeled point clouds. We compared our results with the results attained by Poisson surface reconstruction in Figure 5a,c, respectively. The overlapping regions are obvious. On the other hand, our method can avoid self-intersections and provide a high-quality repairing result, as shown in Figure 5b,d. The mesh grid size is 298 × 222 × 156 . The computation of our method takes about 2.5 s to perform on the GPU.

6.3. Multicomponent Surface Reconstruction

Our method can process the multicomponent surface reconstruction from the multi-labeled point clouds. Figure 6a–c shows the results with two-component, three-component, and four-component reconstructions, respectively. Here, a mesh grid 298 × 156 × 212 is used. Our proposed method achieves fast convergence with few iterations. These simulations demonstrate that our proposed method can perform well for multicomponent surface reconstruction.
Figure 7 shows the four-component surface reconstruction of the tablet. From left to right, these are the input real point clouds and final reconstructions with different views. As can be observed, our proposed method can handle the complex morphology, and the reconstructed surface is smooth.

6.4. Multi-Reconstruction with Different Density of Point Data

Figure 8 shows our multi-reconstruction results for the happy buddha surface with different densities of input point data. Figure 8a is the initial input data. Note that for the purposes of better visualization, we displayed the points more sparsely than the original density. Observing these results in Figure 8, we can see that with a low density of input point data, our proposed method can still reconstruct the surface with finer details and features. The agreement between the results obtained by different sampling densities suggests that our method can successfully reconstruct the surface with the low sampling density.

6.5. Parameter Sensitivity Analysis

In this section, we will analyze the parameter sensitivity of our proposed algorithm. The fidelity term in Equation (6) keeps the solution close to the original result of the Poisson reconstruction. λ balances the motion by the mean curvature flow and the fitting term. If λ = 0 , (6) becomes the classical Allen–Cahn equation. Consequently, the interface of phase field ϕ i will shrink with time. That is, if λ is too small, the detailed information of the original object will be lost, as shown in Figure 9a. On the other hand, if λ is too large, the fidelity term is dominant so that ϕ i ψ i for any time. Thus, the reconstructed surfaces will overlap with each other, as shown in Figure 9c. Therefore, we should choose an appropriate λ . In this paper, we propose to use λ = 0.1 . The role of ϵ is related to the material transition width. We take the same initial condition except for different values of ϵ . Observing the results of Figure 10, we can observe that if ϵ is small, the surface of objects is sharp and the volumes have many holes. If ϵ is too large, the surface becomes over-smooth and the volumes overlap with each other. In this paper, we propose using ϵ = 0.75 .

6.6. Performance of Our Method

Table 1 presents the information on the grid size, iteration numbers, CPU and GPU times. CPU(pro) and GPU(pro) are the times taken to process the multi-reconstruction by using the computer’s central processing unit and graphics processing unit, respectively. The CPU and GPU times in seconds of our calculations, which are performed in MATLAB, are measured on a desktop with an NVIDIA GeForce GTX 1050Ti and a quad-core Intel Core i5. We can observe that our proposed method obtains fast convergence after a few iterations because the computational complexities of the two nonlinear equations are O ( N x N y N z ) and the computational complexity of the linear equation is O ( N x N y N z log ( N x N y N z ) ) . Furthermore, we can employ a GPU-accelerated method that performs many times faster than CPU-only alternatives. It should be noted that the gain is related to the speed of the computation and our method may perform well in a high-performance computing cluster system.

6.7. Comparisons with Related Works and Accuracy Test

To evaluate the accuracy of our proposed method, we compare our results with the exact solution. Here, the error for every component is defined as Φ i = 1 N ϕ i 2 , where Φ is the result of Poisson reconstruction from the all of the point clouds. We can see that the reconstructed surfaces are close to the exact solution, as shown in Table 2.
Based on the Cahn–Hilliard system [18,52,53], Li et al. proposed an efficient and robust algorithm to reconstruct the volumes of multi-labeled objects from sets of cross-sections without overlapping regions, artificial gaps, or mismatched interfaces [45]. Our algorithm can also handle cross-sections wherein different regions have different labels. Firstly, we obtain the point clouds from the given set of slice data by using the MATLAB contour file (See Figure 11a,b). Then, we perform our method to reconstruct the surface, as shown in Figure 11b–d. Figure 11e–h are the two-dimensional results at the slice data z = 20 , 50 , 80 , and 110, respectively. Here, a mesh grid 128 × 128 × 124 is used. A similar test has been performed in [45]. Observing these numerical results, we can see that our proposed method is qualitatively in good agreement with the results in [45]. Our method is simpler and easy to perform compared to Li et al.’s method because their method is a fourth-order nonlinear partial differential equation and is hard to solve in an explicit manner. On the other hand, our method is a second-order partial differential equation and is easy to solve in the splitting manner. Note that this comparison is unfair because Li et al.’s method [45] can directly reconstruct the volumes of multi-labeled objects from sets of cross-sections. However, our approach should firstly translate the slice data into the point clouds and then perform the method to reconstruct surfaces, which may lead to missing data during data transforming. To our best knowledge, the presented approach is the first algorithm using the modified vector-valued Allen–Cahn equation for multi-reconstruction from point clouds.

7. Conclusions and Future Work

We have shown that surface reconstruction can be expressed as a modified vector-valued Allen–Cahn equation, which obtains a smooth surface due to the motion of the mean curvature flow, and we have demonstrated that this approach can robustly reconstruct multicomponent surfaces without self-intersections. Based on operator splitting techniques, our numerical scheme is simple to implement and achieves fast convergence, which can be regarded as an advantage for real-time application. The relative computational cost is also presented. Our algorithm can also handle cross-sections wherein different regions have different labels. Compared to Li et al.’s method [45], our method is simpler and easier to perform. This comparison is considered unfair because Li et al.’s method [45] reconstructs the multi-labeled volumes from sets of cross-sections, and our method is a multi-reconstruction from point clouds. One limitation of our proposed method is that it suffers from high memory usage. As an example, Figure 7 shows the reconstruction of a stele, constructing the voxel grid at a resolution of 642 × 476 × 484 . The reconstruction was computed with 1.72 GB of RAM. Trying to compute an equivalent reconstruction with methods, such as the Octree-based approach, would require constructing at a depth of nine and may require an excess of 0.178 GB of memory. In future work, we will present a parallel Octree-based mesh refinement solver for the current algorithm.

Author Contributions

J.W. and Z.S. contributed equally to this work. Methodology, J.W. and Z.S.; software, Z.S.; validation, J.W.; formal analysis, J.W.; data curation, J.W.; writing—original draft preparation, J.W. and Z.S.; writing—review and editing, J.W. and Z.S.; All authors have read and agreed to the published version of the manuscript.

Funding

Funds for the Central Universities (No. XTR042019005).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

See the Institutional Review Board Statement.

Acknowledgments

The authors are grateful to Y. Li and reviewers, whose valuable suggestions significantly improved the quality of this paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Shammaa, M.H.; Ohtake, Y.; Suzuki, H. Segmentation of multi-material ct data of mechanical parts for extracting boundary surfaces. Comput. Aided Des. 2010, 42, 118–128. [Google Scholar] [CrossRef]
  2. Zhang, Y.; Hughes, T.J.; Bajaj, C.L. An automatic 3d mesh generation method for domains with multiple materials. Comput. Methods Appl. Mech. Eng. 2010, 199, 405–415. [Google Scholar] [CrossRef] [Green Version]
  3. Li, Y.; Shin, J.; Choi, Y.; Kim, J. Three-dimensional volume reconstruction from slice data using phase-field models. Comput. Vis. Image Underst. 2015, 137, 115–124. [Google Scholar] [CrossRef]
  4. Kim, J.; Lee, C.O. Three-dimensional volume reconstruction using two-dimensional parallel slices. SIAM J. Imaging Sci. 2019, 12, 1–27. [Google Scholar] [CrossRef]
  5. Zou, Q. A PDE model for smooth surface reconstruction from 2d parallel slices. IEEE Signal Process. Lett. 2020, 27, 1015–1019. [Google Scholar] [CrossRef]
  6. Kazhdan, M.; Bolitho, M.; Hoppe, H. Poisson surface reconstruction. In Proceedings of the Fourth Eurographics Symposium on Geometry, Cagliari, Sardinia, 26–28 June 2006; Volume 7, pp. 61–70. [Google Scholar]
  7. Allen, S.M.; Cahn, J.W. A microscopic theory for antiphase boundary motion and its application to antiphase domain coarsening. Acta Metall. 1979, 27, 1085–1095. [Google Scholar] [CrossRef]
  8. Ilmanen, T. Convergence of the Allen-Cahn equation to brakke’s motion by mean curvature. J. Differ. Geom. 1993, 38, 417–461. [Google Scholar] [CrossRef]
  9. Li, Y.; Jeong, D.; Kim, H.; Kim, J. Comparison study on the different dynamics between the Allen–Cahn and the Cahn–Hilliard equations. Comput. Math. Appl. 2019, 77, 311–322. [Google Scholar] [CrossRef]
  10. Long, J.; Luo, C.; Yu, Q.; Li, Y. An unconditional stable compact fourth-order finite difference scheme for three dimensional Allen-Cahn equation. Comput. Math. Appl. 2019, 77, 1042–1054. [Google Scholar] [CrossRef]
  11. Li, Y.; Kim, J. An unconditionally stable hybrid numerical method for solving the Allen-Cahn equation. Comput. Math. Appl. 2010, 60, 1591–1606. [Google Scholar] [CrossRef] [Green Version]
  12. Karma, A.; Rappel, W.J. Quantitative phase-field modeling of dendritic growth in two and three dimensions. Phys. Rev. E 1998, 57, 4323. [Google Scholar] [CrossRef] [Green Version]
  13. Li, Y.; Lee, H.; Kim, J. A fast, robust, and accurate operator splitting method for phase-field simulations of crystal growth. J. Cryst. Growth 2011, 321, 176–182. [Google Scholar] [CrossRef]
  14. Li, Y.; Lee, H.; Kim, J. Phase-field simulations of crystal growth with adaptive mesh refinement. Int. J. Heat Mass Transf. 2012, 55, 7926–7932. [Google Scholar] [CrossRef]
  15. Beneš, M.; Chalupeckỳ, V.; Mikula, K. Geometrical image segmentation by the Allen–Cahn equation. Appl. Numer. Math. 2004, 51, 187–205. [Google Scholar] [CrossRef]
  16. Esedog, S.; Tsai, Y.H.R. Threshold dynamics for the piecewise constant Mumford—Shah functional. J. Comput. Phys. 2006, 211, 367–384. [Google Scholar] [CrossRef] [Green Version]
  17. Kay, D.A.; Tomasi, A. Color image segmentation by the vector-valued Allen–Cahn phase-field model: A multigrid solution. IEEE Trans. Image Process. 2009, 18, 2330–2339. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Li, Y.; Kim, J. Multiphase image segmentation using a phase-field model. Comput. Math. Appl. 2011, 62, 737–745. [Google Scholar] [CrossRef] [Green Version]
  19. Li, Y.; Guo, S. Triply periodic minimal surface using a modified Allen—Cahn equation. Appl. Math. Comput. 2017, 295, 84–94. [Google Scholar] [CrossRef]
  20. Li, Y.; Xia, Q.; Yoon, S.; Lee, C.; Lu, B.; Kim, J. A simple and efficient volume merging method for triply periodic minimal structure. Comput. Phys. Commun. 2021, 264, 107956. [Google Scholar] [CrossRef]
  21. Li, Y.; Lee, D.; Lee, C.; Lee, J.; Lee, S.; Kim, J.; Ahn, S.; Kim, J. Surface embedding narrow volume reconstruction from unorganized points. Comput. Vis. Image Underst. 2014, 121, 100–107. [Google Scholar] [CrossRef]
  22. Li, Y.; Kim, J. Fast and efficient narrow volume reconstruction from scattered data. Pattern Recognit. 2015, 48, 4057–4069. [Google Scholar] [CrossRef]
  23. Li, Y.; Lan, S.; Liu, X.; Lu, B.; Wang, L. An efficient volume repairing method by using a modified Allen-Cahn equation. Pattern Recognit. 2020, 107, 107478. [Google Scholar] [CrossRef]
  24. Yu, Q.; Wang, K.; Xia, B.; Li, Y. First and second order unconditionally energy stable schemes for topology optimization based on phase field method. Appl. Math. Comput. 2021, 405, 126267. [Google Scholar]
  25. Tang, Y.; Feng, J. Multi-scale surface reconstruction based on a curvature-adaptive signed distance field. Comput. Graph. 2018, 70, 28–38. [Google Scholar] [CrossRef]
  26. Morel, J.; Bac, A.; Véga, C. Surface reconstruction of incomplete datasets: A novel poisson surface approach based on csrbf. Comput. Graph. 2018, 74, 44–55. [Google Scholar] [CrossRef]
  27. Hoppe, H.; DeRose, T.; Duchamp, T.; McDonald, J.; Stuetzle, W. Surface reconstruction from unorganized points. In Proceedings of the 19th Annual Conference on Computer Graphics and Interactive Techniques, New York, NY, USA, 1 July 1992; pp. 71–78. [Google Scholar]
  28. Carr, J.C.; Beatson, R.K.; Cherrie, J.B.; Mitchell, T.J.; Fright, W.R.; McCallum, B.C. Reconstruction and representation of 3d objects with radial basis functions. In Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques, Los Angeles, CA, USA, 12–17 August 2001; pp. 67–76. [Google Scholar]
  29. Ohtake, Y.; Belyaev, A.; Alexa, M.; Turk, G.; Seidel, H.P. Multi-level partition of unity implicits. In Proceedings of the ACM SIGGRAPH 2003 Papers, Los Angeles, CA, USA, 1 July 2003; p. 173-es. [Google Scholar]
  30. Manson, J.; Petrova, G.; Schaefer, S. Streaming surface reconstruction using wavelets. In Computer Graphics Forum; Blackwell Publishing Ltd.: Oxford, UK, 2008; Volume 27, pp. 1411–1420. [Google Scholar]
  31. Kazhdan, M.; Hoppe, H. Screened poisson surface reconstruction. ACM Trans. Graph. 2013, 32, 1–13. [Google Scholar] [CrossRef] [Green Version]
  32. Eliasof, M.; Sharf, A.; Treister, E. Multimodal 3D shape reconstruction under calibration uncertainty using parametric level set methods. SIAM J. Imaging Sci. 2020, 13, 265–290. [Google Scholar] [CrossRef]
  33. Hirt, C.W.; Nichols, B.D. Volume of fluid (vof) method for the dynamics of free boundaries. J. Comput. Phys. 1981, 39, 201–225. [Google Scholar] [CrossRef]
  34. Dyadechko, V.; Shashkov, M. Moment-of-Fluid Interface Reconstruction. Technical Report; Los Alamos National Laboratory (LA-UR-05-7571). 2005. Available online: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.77.7998&rep=rep1&type=pdf (accessed on 29 April 2021).
  35. Dyadechko, V.; Shashkov, M. Reconstruction of multi-material interfaces from moment data. J. Comput. Phys. 2008, 227, 5361–5384. [Google Scholar] [CrossRef]
  36. Ahn, H.T.; Shashkov, M. Multi-material interface reconstruction on generalized polyhedral meshes. J. Comput. Phys. 2007, 226, 2096–2132. [Google Scholar] [CrossRef]
  37. Lemoine, A.; Glockner, S.; Breil, J. Moment-of-fluid analytic reconstruction on 2D cartesian grids. J. Comput. Phys. 2017, 328, 131–139. [Google Scholar] [CrossRef]
  38. Kikinzon, E.; Shashkov, M.; Garimella, R. Establishing mesh topology in multi-material cells: Enabling technology for robust and accurate multi-material simulations. Comput. Fluids 2018, 172, 251–263. [Google Scholar] [CrossRef]
  39. Yuan, Z.; Yu, Y.; Wang, W. Object-space multiphase implicit functions. ACM Trans. Graph. 2012, 31, 1–10. [Google Scholar] [CrossRef]
  40. Zhang, Y.; Qian, J. Resolving topology ambiguity for multiple-material domains. Comput. Methods Appl. Mech. Eng. 2012, 247, 166–178. [Google Scholar] [CrossRef]
  41. Da, F.; Batty, C.; Grinspun, E. Multimaterial mesh-based surface tracking. ACM Trans. Graph. 2014, 33, 112-1–112-11. [Google Scholar] [CrossRef] [Green Version]
  42. Liu, L.; Bajaj, C.; Deasy, J.O.; Low, D.A.; Ju, T. Surface reconstruction from non-parallel curve networks. In Computer Graphics Forum; Blackwell Publishing Ltd.: Oxford, UK, 2008; Volume 27, pp. 155–163. [Google Scholar]
  43. Bermano, A.; Vaxman, A.; Gotsman, C. Online reconstruction of 3d objects from arbitrary cross-sections. ACM Trans. Graph. 2011, 30, 1–11. [Google Scholar] [CrossRef] [Green Version]
  44. Huang, Z.; Zou, M.; Carr, N.; Ju, T. Topology-controlled reconstruction of multi-labelled domains from cross-sections. ACM Trans. Graph. 2017, 36, 1–12. [Google Scholar] [CrossRef] [Green Version]
  45. Li, Y.; Wang, J.; Lu, B.; Jeong, D.; Kim, J. Multicomponent volume reconstruction from slice data using a modified multicomponent Cahn–Hilliard system. Pattern Recognit. 2019, 93, 124–133. [Google Scholar] [CrossRef]
  46. Li, Y.; Jung, E.; Lee, W.; Lee, H.-G.; Kim, J. Volume preserving immersed boundary methods for two-phase fluid flows. Int. J. Numer. Methods Fluids 2012, 69, 842–858. [Google Scholar] [CrossRef]
  47. Li, Y.; Yun, A.; Lee, D.; Shin, J.; Jeong, D.; Kim, J. Three-dimensional volume-conserving immersed boundary model for two-phase fluid flows. Comput. Methods Appl. Mech. Eng. 2013, 257, 36–46. [Google Scholar] [CrossRef]
  48. Olshanskii, M.; Xu, X.; Yushutin, V. A finite element method for Allen–Cahn equation on deforming surface. Comput. Math. Appl. 2021, 90, 148–158. [Google Scholar] [CrossRef]
  49. Marseglia, G.; Medaglia, C.M.; Ortega, F.A.; Mesa, J.A. Optimal alignments for designing urban transport systems: Application to Seville. Sustainability 2019, 11, 5058. [Google Scholar] [CrossRef] [Green Version]
  50. Carrese, S.; Cuneo, V.; Nigro, M.; Pizzuti, R.; Ardito, C.F.; Marseglia, G. Optimization of downstream fuel logistics based on road infrastructure conditions and exposure to accident events. Transp. Policy 2019. [Google Scholar] [CrossRef]
  51. The Stanford Volume Data Archive, Copyright©2000 MarcLevoy. 2001. Available online: http://graphics.stanford.edu/data/3Dscanrep (accessed on 29 April 2021).
  52. Cahn, J.W.; Hilliard, J.E. Free energy of a nonuniform system I. Interfacial free energy. J. Chem. Phys. 2004, 28, 258–267. [Google Scholar] [CrossRef]
  53. Li, Y.; Choi, J.I.; Kim, J. Multi-component Cahn–Hilliard system with different boundary conditions in complex domains. J. Comput. Phys. 2016, 323, 1–16. [Google Scholar] [CrossRef]
Figure 1. (a) The point cloud. (b) The surfaces that are obtained by signal Poisson surface reconstruction [6]. (c) The result in the cross-view of (b).
Figure 1. (a) The point cloud. (b) The surfaces that are obtained by signal Poisson surface reconstruction [6]. (c) The result in the cross-view of (b).
Mathematics 09 01326 g001
Figure 2. Reconstructed surface in the cut view. The red and blue regions represent the different materials. The yellow region represents the overlapping region.
Figure 2. Reconstructed surface in the cut view. The red and blue regions represent the different materials. The yellow region represents the overlapping region.
Mathematics 09 01326 g002
Figure 3. (a) The point cloud that is downsampled for display. (b,c) The surfaces that are obtained by Poisson surface reconstruction and our method, respectively.
Figure 3. (a) The point cloud that is downsampled for display. (b,c) The surfaces that are obtained by Poisson surface reconstruction and our method, respectively.
Mathematics 09 01326 g003
Figure 4. The evolution of our method in the cut view. (ac) The contours from t = 0, 1, 5.5 in the cross-view, respectively.
Figure 4. The evolution of our method in the cut view. (ac) The contours from t = 0, 1, 5.5 in the cross-view, respectively.
Mathematics 09 01326 g004
Figure 5. (a,c) The results of Poisson reconstruction and our proposed method in the whole view, respectively. (b,d) The results in the cross-view of (a,c), respectively.
Figure 5. (a,c) The results of Poisson reconstruction and our proposed method in the whole view, respectively. (b,d) The results in the cross-view of (a,c), respectively.
Mathematics 09 01326 g005
Figure 6. Multicomponent reconstruction of our proposed method. (a) Two-component reconstruction. (b) Three-component reconstruction. (c) Four-component reconstruction.
Figure 6. Multicomponent reconstruction of our proposed method. (a) Two-component reconstruction. (b) Three-component reconstruction. (c) Four-component reconstruction.
Mathematics 09 01326 g006
Figure 7. Four-component surface reconstruction of real point clouds. (a) Input data set. (b,c) Final reconstructions with different views.
Figure 7. Four-component surface reconstruction of real point clouds. (a) Input data set. (b,c) Final reconstructions with different views.
Mathematics 09 01326 g007
Figure 8. Multi-reconstruction with different densities of point data. (a) Initial input data. (b) Reconstructed surfaces. (c,d) The results in the different cross-view of (b).
Figure 8. Multi-reconstruction with different densities of point data. (a) Initial input data. (b) Reconstructed surfaces. (c,d) The results in the different cross-view of (b).
Mathematics 09 01326 g008
Figure 9. Illustration for the parameter λ sensitivity analysis. (a) λ = 0.01 . (b) λ = 0.1 . (c) λ = 10 .
Figure 9. Illustration for the parameter λ sensitivity analysis. (a) λ = 0.01 . (b) λ = 0.1 . (c) λ = 10 .
Mathematics 09 01326 g009
Figure 10. Illustration for the parameter ϵ sensitivity analysis. (a) ϵ = 0.25 . (b) ϵ = 0.75 . (c) ϵ = 2.5 .
Figure 10. Illustration for the parameter ϵ sensitivity analysis. (a) ϵ = 0.25 . (b) ϵ = 0.75 . (c) ϵ = 2.5 .
Mathematics 09 01326 g010
Figure 11. Comparisons with the related work [45]. (a) Given set of slice data. (b) Transformed point clouds. (c) Reconstructed Schwarz diamond minimal surface. (d) Reconstructed Schoen’s F-RD minimal surface. (eh) Two-dimensional results at the slice data z = 20 , 50 , 80 , and 110, respectively.
Figure 11. Comparisons with the related work [45]. (a) Given set of slice data. (b) Transformed point clouds. (c) Reconstructed Schwarz diamond minimal surface. (d) Reconstructed Schoen’s F-RD minimal surface. (eh) Two-dimensional results at the slice data z = 20 , 50 , 80 , and 110, respectively.
Mathematics 09 01326 g011
Table 1. List of grid size, iterations, CPU times (second), GPU times (second), and errors. CPU(pro) and GPU(pro) are the times taken to process the multi-reconstruction by using the computer’s central processing unit and graphics processing unit, respectively.
Table 1. List of grid size, iterations, CPU times (second), GPU times (second), and errors. CPU(pro) and GPU(pro) are the times taken to process the multi-reconstruction by using the computer’s central processing unit and graphics processing unit, respectively.
CaseGrid SizeIterationCPU (pro)GPU (pro)
Figure 4 ( 256 × 256 × 256 ) 2436.29.8
Figure 5 ( 298 × 222 × 156 ) 129.22.5
Figure 6a ( 298 × 156 × 212 ) 149.63.0
Figure 6b ( 298 × 156 × 212 ) 1820.65.6
Figure 6c ( 298 × 156 × 212 ) 3040.211.3
Figure 7 ( 642 × 476 × 484 ) 20515.9133.4
Figure 8 ( 288 × 642 × 288 ) 1387.723.2
Figure 9b ( 298 × 294 × 240 ) 2034.38.8
Figure 10b ( 256 × 298 × 236 ) 1522.45.4
Table 2. Accurate evaluation of our method.
Table 2. Accurate evaluation of our method.
CaseFigure 4Figure 5Figure 6aFigure 6bFigure 6cFigure 7Figure 8Figure 9bFigure 10b
Errors1.667 × 10 3 1.078 × 10 2 3.746 × 10 3 4.679 × 10 3 7.187 × 10 3 1.742 × 10 2 9.127 × 10 3 1.050 × 10 2 5.440 × 10 3
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wang, J.; Shi, Z. Multi-Reconstruction from Points Cloud by Using a Modified Vector-Valued Allen–Cahn Equation. Mathematics 2021, 9, 1326. https://doi.org/10.3390/math9121326

AMA Style

Wang J, Shi Z. Multi-Reconstruction from Points Cloud by Using a Modified Vector-Valued Allen–Cahn Equation. Mathematics. 2021; 9(12):1326. https://doi.org/10.3390/math9121326

Chicago/Turabian Style

Wang, Jin, and Zhengyuan Shi. 2021. "Multi-Reconstruction from Points Cloud by Using a Modified Vector-Valued Allen–Cahn Equation" Mathematics 9, no. 12: 1326. https://doi.org/10.3390/math9121326

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