Skip to main content
QUICK REVIEW

[Paper Review] 3D Volume Calculation For the Marching Cubes Algorithm in Cartesian Coordinates

Shuqiang Wang|arXiv (Cornell University)|Aug 2, 2013
Computational Geometry and Mesh GenerationComputer Science5 references6 citations
TL;DR

This paper proposes a novel method for calculating partial volumes in 3D Cartesian grids using the divergence theorem, replacing traditional tetrahedralization in the Marching Cubes algorithm. By selecting a vector field with constant divergence (e.g., f = (x,y,z)), the volume is computed via surface integration over the isosurface, yielding a more robust, efficient, and code-friendly approach than tetrahedral decomposition.

ABSTRACT

From a scalar field defined at the corner of a cube, an isosurface can be extracted using the Marching Cube algorithm. The isosurface separates the cell into two or more partial cells. A similar situation arises when an material interface in the Front Tracking method cuts through the computational cells. A popular method to calculate the volumes of the partial cells is to first partition the cells into tetrahedra and then sum together the volumes of the tetrahedra for the corresponding partial cells. In this paper, the divergence theorem is used to calculate the volumes of the partial cells generated by the Marching Cubes algorithm. This method is both more robust and efficient compared with the tetrahedralization approach.

Motivation & Objective

  • To address the lack of efficient and robust methods for calculating partial cell volumes in the Marching Cubes algorithm.
  • To overcome the complexity and coding difficulty of tetrahedralization-based volume computation in complex interface configurations.
  • To provide a numerically stable and computationally efficient alternative using the divergence theorem for volume integration.
  • To enable accurate volume calculations in embedded boundary and front tracking methods for multiphase and interface problems.
  • To simplify implementation by using a consistent, labeled template system for all 23 unique cube configurations.

Proposed method

  • The divergence theorem is applied to compute volume as a surface integral: Volume = (1/3) ∫∂Ω n·f dS, where f = (x,y,z) ensures ∇·f = 3.
  • The method uses a vector field f = (x,y,z) so that ∇·f = 3, enabling exact volume computation via surface integration over the closed interface.
  • The interface is triangulated into planar faces, and the surface integral is evaluated using second-order quadrature for exact results on triangular meshes.
  • A labeling scheme using two-letter codes (e.g., v0, e0, W, I) is used to systematically identify vertices, edges, and faces for code implementation.
  • The 256 possible cube configurations are reduced to 23 unique cases using symmetry, each with precomputed triangulations and surface integrals.
  • For each case, the volume of one component is computed via surface integration, and the other is obtained by subtraction from the total cube volume.

Experimental results

Research questions

  • RQ1Can the divergence theorem be effectively applied to compute partial volumes in 3D Cartesian grids for the Marching Cubes algorithm?
  • RQ2How does the divergence theorem-based method compare in robustness and efficiency to tetrahedralization for volume computation?
  • RQ3Can a consistent, code-friendly labeling and triangulation system be developed for all 23 unique cube configurations?
  • RQ4Is the method suitable for use in embedded boundary and front tracking methods requiring accurate interface volume calculations?
  • RQ5What vector field choice ensures exact volume computation via surface integration in this context?

Key findings

  • The divergence theorem method computes volumes exactly using second-order quadrature on triangular interfaces, avoiding numerical errors from tetrahedralization.
  • The method is more robust and efficient than tetrahedralization, especially in handling complex interface topologies with multiple edge and face crossings.
  • The approach simplifies coding by using a consistent labeling system (e.g., v0, e0, I, W) for vertices, edges, and face/interface triangles.
  • The 23 unique cube configurations are fully enumerated with precomputed triangulations and surface integral contributions for all cases.
  • The method enables accurate volume calculations in applications such as elliptic/parabolic interface problems, two-phase incompressible flows, and magnetohydrodynamic flows.
  • The total volume of a cube is used to compute the complementary component volume, reducing computational redundancy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.