toxi.volume
Class ArrayIsoSurface

java.lang.Object
  extended by toxi.volume.ArrayIsoSurface
All Implemented Interfaces:
IsoSurface

public class ArrayIsoSurface
extends java.lang.Object
implements IsoSurface

IsoSurface class based on C version by Paul Bourke and Lingo version by myself.


Field Summary
 float isoValue
           
 
Constructor Summary
ArrayIsoSurface(VolumetricSpace volume)
           
 
Method Summary
 toxi.geom.mesh.Mesh3D computeSurfaceMesh(toxi.geom.mesh.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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isoValue

public float isoValue
Constructor Detail

ArrayIsoSurface

public ArrayIsoSurface(VolumetricSpace volume)
Method Detail

computeSurfaceMesh

public toxi.geom.mesh.Mesh3D computeSurfaceMesh(toxi.geom.mesh.Mesh3D mesh,
                                                float iso)
Computes the surface mesh for the given volumetric data and iso value.

Specified by:
computeSurfaceMesh in interface IsoSurface
Parameters:
mesh - existing mesh container or null
iso - 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 to computeSurfaceMesh(Mesh3D, float)

Specified by:
reset in interface IsoSurface