A consistent analytical formulation for volume-estimation of geometries enclosed by implicitly defined surfaces
Shucheng Pan, Xiangyu Hu, Nikolaus. A. Adams

TL;DR
This paper introduces a general analytical method for accurately estimating the volume of geometries enclosed by implicit surfaces, ensuring consistency across mesh refinements with demonstrated second-order accuracy.
Contribution
It provides a unified analytical formulation for 2D and 3D volume estimation that addresses mesh refinement inconsistencies.
Findings
Achieves 2nd-order accuracy in volume estimation
Applicable to all 2D cases and elementary 3D cases
Ensures consistency across mesh refinements
Abstract
We have derived an analytical formulation for estimating the volume of geometries enclosed by implicitly defined surfaces. The novelty of this work is due to two aspects. First we provide a general analytical formulation for all two-dimensional cases, and for elementary three three-dimensional cases by which the volume of general three-dimensional cases can be computed. Second, our method addresses the inconsistency issue due to mesh refinement. It is demonstrated by several two-dimensional and three-dimensional cases that this analytical formulation exhibits 2nd-order accuracy.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A consistent analytical formulation for volume-estimation of geometries enclosed by implicitly defined surfaces
Shucheng Pan
Xiangyu Hu
Nikolaus. A. Adams
Lehrstuhl für Aerodynamik und Strömungsmechanik, Technische Universität München, 85748 Garching, Germany
Abstract
We have derived an analytical formulation for estimating the volume of geometries enclosed by implicitly defined surfaces. The novelty of this work is due to two aspects. First we provide a general analytical formulation for all two-dimensional cases, and for elementary three three-dimensional cases by which the volume of general three-dimensional cases can be computed. Second, our method addresses the inconsistency issue due to mesh refinement. It is demonstrated by several two-dimensional and three-dimensional cases that this analytical formulation exhibits 2nd-order accuracy.
keywords:
Analytical formulation, volumes estimation, consistency, implicitly defined surfaces
††journal: Elsevier
1 Introduction
Accurate and efficient volume estimation is important for investigating complex geometries encountered in a variety of scientific and engineering problems. In astronomy, the estimation of an asteroid volume is helpful to determine the bulk density for assessing the material composition. Except for some large spheroidal asteroids whose volumes can be estimated by their mean diameters, most asteroids have irregular shapes which require more complicated volume estimation methods. Usually, three-dimensional (3D) reconstructed shape models are employed to approximate such irregular geometries [7, 1]. In computational fluid dynamics, a volume-fraction estimation is required for the transport of multiple fluids by the volume-of-fluid (VOF) method or the level-set method [12]. The volume fraction of a specific fluid in a uniform mesh cell can be computed by the Heaviside [23, 25] or color function [9], or combination of either one with the interface normal direction [11]. The interface reconstruction step of the VOF method may also require a volume-estimation method to determine the interface location [22, 5, 4]. Another example is medical engineering, where in order to detect the development of lung hypoplasia and investigate the correlation between lung growth and fetal presentation, accurate measurement of fetal lung volume is a pressing need [21]. Tumor volume estimation is also widely used in many cancer treatments, such as prostate cancer [3], brain tumors [13] and pelvic neoplasms [18]. Most of such volume estimations are based on magnetic-resonance (MR) imaging. A three-dimensional reconstruction method is considered to be much more reliable and accurate than other more traditional approximation methods, such as ellipsoid and disc-summation approximations, and automated image segmentation [6, 8, 2, 14]. For example, volume estimation of the articular cartilage is performed by the Marching Cube algorithm [17, 19] applied on the three-dimensional reconstruction [20]. The disadvantage of this method is that one first needs to reconstruct the iso-surface before volume estimation. However, there are too many different cases ( for 2D and for 3D) to deal with. The volume estimation method is consistent during mesh refinement in the sense that the volume fractions are conservative with respect to the coarsest level. It is possible to obtain a unique volume approximation during mesh refinement by a consistent volume estimation method. Any numerical method introduces inconsistencies during mesh refinement, irrespectively of its order of accuracy, as the truncation error depends on mesh resolution. Although not critical for many applications, consistency is desirable, and it is important for numerical simulations of multiphase flows [24].
The objective of the present paper is to develop a consistent volume estimation method for calculating the volumes of geometries enclosed by implicitly defined surfaces. To achieve this property, we derive analytical formulations for generic 2D and 3D geometries, which avoid truncation errors, unlike numerical methods. The formulations are then subsumed to derive a general formulation that can be applied to more complex cases. This method is made consistent during mesh refinement by employing bilinear/trilinear interpolation. The paper is organized as follows. Sec. 2 describes the derivation of 2D and 3D analytical volume formulation for arbitrary geometries. We also discuss how to preserve consistency during mesh refinement. Sec. 3 is dedicated to assessing the capability of the present method to calculate the volumes for various cases, followed by conclusions in Sec. 4.
2 Analytical Volume Fraction
2.1 2D formulation
Before presenting the 3D formulation, we first consider the 2D case for its simplicity and give a comprehensive description of the underlying concept. Suppose that we have volumetric data, say discrete data of a level-set field , which implicitly defines the interface in the domain , the interface in any cell can be expressed by the zero value of a reconstructed field which is obtained by bilinear interpolation. The interface is hereby represented by piecewise parabolas for two dimensions (2D), i.e., the interface inside the cell is defined as
[TABLE]
where the coefficients , , and are determined by the interpolation conditions,
[TABLE]
with , , and defined in Fig. 1(a). The volume of this cell can be easily calculated by integrating the reconstructed field in direction or direction. In order to simplify the integration, we reformulate Eq. (1) with a coordinate mapping,
[TABLE]
whose symbols need careful definition to simplify the calculations. The definition is based on the intersection points at the edges of a mesh cell. Specifically in 2D, we first detect the grid point
[TABLE]
and set is as the origin of a local Cartesian coordinate system. is the set of all vertices ( in 3D) of the current cell. Then the coordinate transformation is determined by and , where is the distance from the vertex to the intersection point on a neighbour edge in -direction or -direction,
[TABLE]
where and are the coordinates of the origin in the and directions, respectively, see Fig. 1(a). Once the origin and the local transformed coordinates () are defined, the coefficients of Eq. (3), , , and , are determined according to the relation between the and coordinate systems. Then the cut volume of cell can be obtained by integration of as
[TABLE]
The integration range is determined by and , where is the length from the origin of the coordinate system to the intersection point in direction.
2.2 3D formulation
The 2D formulation can be easily extended to three dimensions. Again, the interface inside a cell, say in Fig. 1(b), can be represented by trilinear interpolation,
[TABLE]
where the coefficients are uniquely determined by the interpolation conditions, see Fig. 1(b),
[TABLE]
Upon identification of the origin () by Eq. (4), the local coordinates are defined as , and , where the distance from the grid to the intersection points, , are calculated by
[TABLE]
The coordinates of the origin in the , and directions are , and , respectively, as shown in Fig. 1(b). Eq. (7) is rewritten as
[TABLE]
with the coefficients, , determined by the relation between the and coordinate systems. Thus the volume of each cell can be calculated by the double integral of ,
[TABLE]
with
[TABLE]
The integration ranges are and in -direction, and
[TABLE]
in -direction.
For all cells containing a resolved interface, Eq. (11) for the three cases sketched in Fig. 2 can be expressed by elementary integrals. First we subsume those elementary cases by a single formulation. Other cases can be expressed as combination of these elementary cases, and their volume estimation will be discussed later.
First we consider such that in Eq.(11) becomes
[TABLE]
with , , and , while is
[TABLE]
We define , where and are
[TABLE]
and
[TABLE]
respectively. Substituting the variables, , , and , into the above formula, we obtain
[TABLE]
where if ,
[TABLE]
and otherwise
[TABLE]
The integration of Eq. (19) results in
[TABLE]
with , , and . The dilogarithm (Spence’s function) is defined as . Eq. (20) becomes
[TABLE]
Similarly, in Eq. (18) we have if , otherwise .
To calculate , we define , with , and being
[TABLE]
[TABLE]
and
[TABLE]
respectively, with , , and . We can generalize Eq. (11) for cases with different ,
[TABLE]
where and , where , and are the same as , and , respectively. , , and are defined as
[TABLE]
[TABLE]
[TABLE]
and , respectively. Now, we can use this general formulation to calculate 3D volume fraction of all cases sketched in Fig. 2. These elementary cases generate more complex cases as indicated in Fig. 3, and are defined as type I, II, and III, respectively. These complex cases can be split them into elementary cases in Fig. 2, as illustrated in each subgraph. For instance, the case in Fig. 3(a) is composed of type I and II, whereas cases in Fig. 3(b) and (c) are combinations of all three elementary types. In order to compute the volumes of those cases, the first step is to decompose the cell into elementary types, which is easy to accomplish. For example, in Fig. 3(b), along the -direction we can find two intersection points and which occur at two different edges parallel to -direction. By these intersection points, the whole cell is cut into three parts in directions, as shown in Fig. 3(b).
2.3 Accuracy test
We calculate the volumes of a circle and a sphere to assess the accuracy of our analytic formulations in 2D and 3D. The results of our method are compared to those of a linear approximation method [15], as plotted in Fig. 4.
For 2D, as shown in Fig. 4(a), the cumulative volumes along -direction indicate that both linear and analytical results are in good agreement with the exact result while locally the analytical formulation is more accurate. In Fig. 4(b) 2nd-order convergence rate is demonstrated for our formulation because it is based on bilinear/triliner interpolation while the linear method is 1st-order as expected. The magnitude of the error is much smaller in our method. The result of the 3D case in Fig. 4(c) exhibits similar error distribution with Fig. 4b. As a consequence, for 2D and 3D, our analytical formulation provides more accurate volume-estimation than the linear method due to a more accurate interface representation.
2.4 Consistency test
Definition. The consistency condition of the volume-estimation during mesh refinement is , i.e., volumes calculated from the initial volumetric field and the refined field are exactly the same.
The significance of maintaining consistency of volume estimation is obvious. For example, for an adaptive multiphase solver [24] conservation errors can only be prevented if the volumes have an identical value at each resolution level. This can not be achieved by a linear representation. All such numerical volume estimations are not consistent as the errors introduced by numerical methods depend on grid resolution.
Theorem. The analytical volume-estimation formulation is consistent if the level-set field is refined by bilinear/trilinear interpolation.
Proof 1
The necessary and sufficient condition for consistency is that the parameters of Eq. (1) or Eq. (7) remain invariant upon mesh refinement as no numerical error is introduced by the analytical formulation and the coordinate transformation doest not change the computed volume. This can be easily proved. For simplicity, we consider the 2D cases for description. Assume the grid point level-set values of a cell on level are given. During refinement, a cell is divided into subcells. The level-set values at level are computed by bilinear interpolation. Thus the parameters of the interface equation for the subcell are
[TABLE]
which can be expressed by with bilinear interpolation,
[TABLE]
This implies that the interface equation at ,
[TABLE]
is the same as Eq. (1), as and . For the other subcell we can obtain the same conclusion, which completes the proof.
For example, a single cell test with specific level-set values clearly shows the consistency feature of our method. After prescribing the grid values, = 0.1, = 0.6, = -0.3, and = -0.1, we obtain the coefficients , , , and . The origin is placed at and the integration variable is , hence the interface profile becomes with an integration range of . After substituting the parameters into the Eq. (6), the volume of this piece on this level is . The bilinear interpolation leads to = 0.1, = 0.35, = -0.1, and = 0.075 for subcell cell . Substitute these values into Eq. (6), we can get a volume of . Analogously, the volumes of the other three subcells are , and , respectively. Obviously, the consistency is satisfied as . Analogously, we can proof the consistency of our volume-estimation method during coarsening.
In addition, simple cases used in the accuracy test are employed to test the consistency of the present method. As shown in Fig. 5, the initial resolution is on , then the level-set fields are refined from to . The dash-dotted, solid and dashed lines stand for error norms,
[TABLE]
respectively, with the superscripts ‘[math]’ and ‘’ being the volume fraction of the cell on and the summation of volume fractions on within the same cell. In 2D, with increasing, the discrepancy between and for linear approximation method is large, ranging from to for . The linear reconstruction inside each cell is responsible for this distinct errors as it does not have a consistent representation of interface between different resolutions. With respect to the analytical formulation the magnitudes are much lower than those of the linear method. So the bilinear/trilinear representation and interpolation are beneficial to preserving the consistency of the volume estimation. The 2D and 3D errors produced in our method can be neglected. Therefore it is concluded that for both 2D and 3D our method automatically achieves consistency which is attributed to the analytical formulation and the bilinear/trilinear interpolation.
2.5 Additional remarks
Note that only resolved cases have an analytical formulation. If there exists ambiguity such as multiple intersections in one cell edge, pure analytical method may not provide the correct results as the formulation is not able to resolve this cell. One can easily address this issue by adaptive refinement in the ambiguity regions or performing an interface scale separation [10]. 2. 2.
Our method achieves 2nd-order accuracy which is generally acceptable for most of the applications. However the goal of our work is not to achieve high-order accuracy, but to maintain the consistency which is the unique feature of our method.
3 Applications
In this section, we apply the analytical formulation to more complicated cases. Firstly we give two cases which have exact volumes to test both accuracy and consistency. The first one is refered to as “double-circle” case where two circles with an identical radius and different centers ( and ) are merged. While the Zalesak disk with a radius of , a notch width of and a notch height of is placed in at . As shown in Figs. 6a and 6c, the results converge with a 2nd-order rate in our method and a 1st-order rate in the liner method. Both these cases show distinguished consistency in the analytical formulation and large inconsistency in the linear method. A 3D double-sphere case with the same parameters in the double-circle case confirms the conclusion, as shown in Fig. 7. In Fig. 8, A case with randomly generated circles provides similar convergence and consistence results with the above cases.
Further more, a more practical case is tested to manifest the features of the present method. As shown in Fig. 10, this case is the image segmentation of a human brain wihch has more complicated boundaries than the above cases. The level-set fields are generated by the code in Ref. [16] with the same MR image. The red line represents the air-tissue interface while the blue one stands for the interface of two different tissues. The consistency results are presented in Fig. 11. Apparently, the errors in both areas are significantly reduced by the analytical formulation, indicating the consistency of our method in this brain image segmentation.
4 Concluding remarks
In this paper we have proposed a volume-estimation method for implicitly defined geometries. We have derived a general analytical formulation for 2D cases and three elementary 3D cases which can be employed for more complicated 3D cases. The analytical formulation achieves 2nd-order accuracy for arbitrary geometries. Based on this analytical formulation, the consistency issue during mesh refinement is imposed by the bilinear/trilinear interpolation. The accuracy and consistency are demonstrated by 2D and 3D examples. This consistent analytical volume-estimation method has the potential to be applied in many scientific and engineering fields, such as astronomy, computational fluid dynamics and medical imaging. Based on the idea developed in this paper, a consistent analytical volume-estimation formulation with high-order accuracy and its extension to arbitrary convex polyhedra is subject to further work.
Acknowledgment
This work is supported by China Scholarship Council under No. 201306290030.
References
- [1]
S Besse, O Groussin, L Jorda, P Lamy, M Kaasalainen, G Gesquiere, E Remy, and OSIRIS Team.
3-dimensional reconstruction of asteroid 2867 Steins.
In Lunar and Planetary Science Conference, volume 40, page 1545, 2009.
- [2]
Benjamin Cheong, Mario F. Rubin Raja Muthupillai, and Scott D. Flamm.
Normal values for renal length and volume as measured by magnetic resonance imaging.
Clinical Journal of the American Society of Nephrology, 2(1):38–45, 2007.
- [3]
Fergus V Coakley, John Kurhanewicz, Ying Lu, Kirk D Jones, Mark G Swanson, Silvia D Chang, Peter R Carroll, and Hedvig Hricak.
Prostate Cancer Tumor Volume: Measurement with Endorectal MR and MR Spectroscopic Imaging.
Radiology, 223(1):91–97, 2002.
- [4]
Steven Diot and Marianne M François.
An interface reconstruction method based on an analytical formula for 3D arbitrary convex cells.
Journal of Computational Physics, 305:63–74, 2016.
- [5]
Steven Diot, Marianne M François, and Edward D Dendy.
An interface reconstruction method based on analytical formulae for 2D planar and axisymmetric arbitrary convex cells.
Journal of Computational Physics, 275:53–64, 2014.
- [6]
Timothy A Durso, Jonathan Carnell, Thomas T. Turk, and Gopal N. Gupta.
Three-Dimensional Reconstruction Volume: A Novel Method for Volume Measurement in Kidney Cancer.
The Journal of urology, 28(6):745–750, 2014.
- [7]
Akira Fujiwara, J Kawaguchi, DK Yeomans, M Abe, T Mukai, T Okada, J Saito, H Yano, M Yoshikawa, DJ Scheeres, et al.
The rubble-pile asteroid Itokawa as observed by Hayabusa.
Science, 312(5778):1330–1334, 2006.
- [8]
In Hyuck Gong, Jinho Hwang, Don Kyung Choi, Seung Ryeol Lee, Young Kwon Hong, Jae Yup Hong, Dong Soo Park, and Hwang Gyun Jeon.
Relationship among total kidney volume, renal function and age.
The Journal of urology, 187(1):344–349, 2012.
- [9]
Denis Gueyffier, Jie Li, Ali Nadim, Ruben Scardovelli, and Stéphane Zaleski.
Volume-of-fluid interface tracking with smoothed surface stress methods for three-dimensional flows.
Journal of Computational Physics, 152(2):423–456, 1999.
- [10]
L.H. Han, X.Y. Hu, and N.A. Adams.
Scale separation for multi-scale modeling of free-surface and two-phase flows with the conservative sharp interface method.
Journal of Computational Physics, 280:387–403, 2015.
- [11]
XY Hu, NA Adams, M Herrmann, and G Iaccarino.
Multi-scale modeling of compressible multi-fluid flows with conservative interface method.
In Proceedings of the Summer Program, Center for Turbulence Research, 2010.
- [12]
X.Y. Hu, B.C. Khoo, N.A. Adams, and F.L. Huang.
A conservative interface method for compressible flows.
Journal of Computational Physics, 219(2):553–578, 2006.
- [13]
Bonnie N Joe, Melanie B Fukui, Carolyn Cidis Meltzer, Qing-shou Huang, Roger S Day, Phil J Greer, and Michael E Bozik.
Brain Tumor Volume Measurement: Comparison of Manual and Semiautomated Methods.
Radiology, 212(3):811–816, 1999.
- [14]
T. B. Jones, L. R. Riddick, M. D. Harpen, R. L. Dubuisson, and D Samuels.
Ultrasonographic determination of renal mass and renal volume.
Journal of Ultrasound in Medicine, 2(4):151–154, 1983.
- [15]
E Lauer, XY Hu, Stefan Hickel, and Nikolaus A. Adams.
Numerical modelling and investigation of symmetric and asymmetric cavitation bubble dynamics.
Computers & Fluids, 69:1–19, 2012.
- [16]
Chunming Li, Rui Huang, Zhaohua Ding, J Chris Gatenby, Dimitris N Metaxas, and John C Gore.
A level set method for image segmentation in the presence of intensity inhomogeneities with application to MRI.
IEEE Transactions on Image Processing, 20(7):2007–2016, 2011.
- [17]
William E Lorensen and Harvey E. Cline.
Marching cubes: A high resolution 3D surface construction algorithm.
ACM siggraph computer graphics, 21(4), 1987.
- [18]
Nina A Mayr, Vincent A Magnotta, James C Ehrhardt, James A Wheeler, Joel I Sorosky, B-Chen Wen, Charles S Davis, Retta E Pelsang, Barrie Anderson, J Fred Doornbos, David H Hussey, and William T.C. Yuh.
Usefulness of tumor volumetry by magnetic resonance imaging in assessing response to radiation therapy in carcinoma of the uterine cervix.
International Journal of Radiation Oncology Biology* Physics*, 35(5):915–924, 1996.
- [19]
Timothy S Newman and Hong Yi.
A survey of the marching cubes algorithm.
Computers & Graphics, 30(5):854–879, 2006.
- [20]
Ingela Nystroem, Jayaram K Udupa, George J Grevera, and Bruce E Hirsch.
Area of and volume enclosed by digital and triangulated surfaces.
In Medical Imaging 2002, pages 669–680. International Society for Optics and Photonics, 2002.
- [21]
Françoise Rypens, Thierry Metens, Nathalie Rocourt, Pascale Sonigo, Francis Brunelle, Marie Pierre Quere, Laurent Guibaud, Brigitte Maugey-Laulom, Chantal Durand, Fred E Avni, et al.
Fetal Lung Volume: Estimation at MR Imaging Initial Results.
Radiology, 219(1):236–241, 2001.
- [22]
Ruben Scardovelli and Stéphane Zaleski.
Analytical relations connecting linear interfaces and volume fractions in rectangular grids.
Journal of Computational Physics, 164(1):228–237, 2000.
- [23]
KK So, XY Hu, and NA Adams.
Anti-diffusion method for interface steepening in two-phase incompressible flow.
Journal of Computational Physics, 230(13):5155–5177, 2011.
- [24]
Mark Sussman, Ann S Almgren, John B Bell, Phillip Colella, Louis H Howell, and Michael L Welcome.
An adaptive level set approach for incompressible two-phase flows.
Journal of Computational Physics, 148(1):81–124, 1999.
- [25]
Mark Sussman and Elbridge Gerry Puckett.
A coupled level set and volume-of-fluid method for computing 3D and axisymmetric incompressible two-phase flows.
Journal of Computational Physics, 162(2):301–337, 2000.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S Besse, O Groussin, L Jorda, P Lamy, M Kaasalainen, G Gesquiere, E Remy, and OSIRIS Team. 3-dimensional reconstruction of asteroid 2867 Steins. In Lunar and Planetary Science Conference , volume 40, page 1545, 2009.
- 2[2] Benjamin Cheong, Mario F. Rubin Raja Muthupillai, and Scott D. Flamm. Normal values for renal length and volume as measured by magnetic resonance imaging. Clinical Journal of the American Society of Nephrology , 2(1):38–45, 2007.
- 3[3] Fergus V Coakley, John Kurhanewicz, Ying Lu, Kirk D Jones, Mark G Swanson, Silvia D Chang, Peter R Carroll, and Hedvig Hricak. Prostate Cancer Tumor Volume: Measurement with Endorectal MR and MR Spectroscopic Imaging. Radiology , 223(1):91–97, 2002.
- 4[4] Steven Diot and Marianne M François. An interface reconstruction method based on an analytical formula for 3D arbitrary convex cells. Journal of Computational Physics , 305:63–74, 2016.
- 5[5] Steven Diot, Marianne M François, and Edward D Dendy. An interface reconstruction method based on analytical formulae for 2D planar and axisymmetric arbitrary convex cells. Journal of Computational Physics , 275:53–64, 2014.
- 6[6] Timothy A Durso, Jonathan Carnell, Thomas T. Turk, and Gopal N. Gupta. Three-Dimensional Reconstruction Volume: A Novel Method for Volume Measurement in Kidney Cancer. The Journal of urology , 28(6):745–750, 2014.
- 7[7] Akira Fujiwara, J Kawaguchi, DK Yeomans, M Abe, T Mukai, T Okada, J Saito, H Yano, M Yoshikawa, DJ Scheeres, et al. The rubble-pile asteroid Itokawa as observed by Hayabusa. Science , 312(5778):1330–1334, 2006.
- 8[8] In Hyuck Gong, Jinho Hwang, Don Kyung Choi, Seung Ryeol Lee, Young Kwon Hong, Jae Yup Hong, Dong Soo Park, and Hwang Gyun Jeon. Relationship among total kidney volume, renal function and age. The Journal of urology , 187(1):344–349, 2012.
