Package toxi.volume
Class ArrayIsoSurface
java.lang.Object
toxi.volume.ArrayIsoSurface
- All Implemented Interfaces:
IsoSurface
IsoSurface class based on C version by Paul Bourke and Lingo version by
myself.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeSurfaceMesh
(Mesh3D mesh, float iso) Computes the surface mesh for the given volumetric data and iso value.void
reset()
Resets mesh vertices to default positions and clears face index.
-
Field Details
-
isoValue
public float isoValue
-
-
Constructor Details
-
ArrayIsoSurface
-
-
Method Details
-
computeSurfaceMesh
Computes the surface mesh for the given volumetric data and iso value.- Specified by:
computeSurfaceMesh
in interfaceIsoSurface
- Parameters:
mesh
- existing mesh container or nulliso
- surface iso value- Returns:
- Mesh3D instance
-
reset
public void reset()Resets mesh vertices to default positions and clears face index. Needs to be called inbetween successive calls tocomputeSurfaceMesh(Mesh3D, float)
- Specified by:
reset
in interfaceIsoSurface
-