DriftCapture · function
marchVolume
volume's surface, welded so that neighbours share vertices exactly.
Explained in DriftCapture.
function marchVolume(volume: Volume, options?: MarchOptions): MeshDataimport { marchVolume } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
volume | Volume | |
options? | MarchOptions |
In depth
A vertex belongs to the edge it was found on, so two tetrahedra meeting along an edge find the same one — which is what closes the mesh. Answers the mesh; a volume with no crossing answers an empty one rather than throwing, because a capture of nothing is a real thing to have.