Contour#

Contouring methods are used to extract surfaces from scalar fields (e.g. images or implicit functions). MyMesh has several different contouring methods with different trade-offs and capabilities. Here, the efficiency of these methods are compared against each other and against contouring methods provided in PyVista (VTK) [SK19].

See also: Contour, mymesh.contour, Contouring

3D Surface Contouring#

Contouring of a unit sphere in a uniform grid

(Source code)

../_images/contour-1.png

Note

Marching tetrahedra operates on six times as many elements for the same number of points due to the cube-to-tetrahedra decomposition (which isn’t included in the measurement of computational time).

System Information#

********** System Information **********
System: Linux
Python Version: 3.10.20
Numpy Version: 2.2.6
CPU: AMD EPYC 9V74 80-Core Processor
CPU Physical Cores: 2
Available Memory: 2.7/15.6 GB
****************************************