Package toxi.volume

Class ArrayIsoSurface

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

public class ArrayIsoSurface extends Object implements IsoSurface
IsoSurface class based on C version by Paul Bourke and Lingo version by myself.
  • Field Details

    • isoValue

      public float isoValue
  • Constructor Details

  • Method Details

    • computeSurfaceMesh

      public Mesh3D computeSurfaceMesh(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