This program shows how to compute the area of an extracted plane slice.
A regular mesh is built at start-up. A plane slice is built by calling extractSlice on a MiPlaneSliceExtractIjk extractor. The area of this slice is computed by the method computeAreaOfSurface. This method sums the areas of all the cells in the plane slice surface mesh.
A second mesh composed by tetrahedrons is built. It contains some dead cells. A plane slice is built by calling extractSlice on a MiPlaneSliceExtractUnstructured extractor. The area of this second slice is computed by the method computeAreaOfSurface. The second area is not equal to the first one because of the existing dead cells.
Exits after printing the second area.
MiVolumeMeshRegular, MiVolumeMeshUnstructured, MiPlaneSliceExtractIjk, MiPlaneSliceExtractUnstructured, MeXSurfaceMeshUnstructured