toxi.geom.mesh
Class SurfaceMeshBuilder
java.lang.Object
toxi.geom.mesh.SurfaceMeshBuilder
public class SurfaceMeshBuilder
- extends java.lang.Object
An extensible builder class for TriangleMesh
es based on 3D surface
functions using spherical coordinates. In order to create mesh, you'll need
to supply a SurfaceFunction
implementation to the builder.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurfaceMeshBuilder
public SurfaceMeshBuilder(SurfaceFunction function)
createMesh
public TriangleMesh createMesh(int res,
float size)
getFunction
public SurfaceFunction getFunction()
- Returns:
- the function
setFunction
public void setFunction(SurfaceFunction function)
- Parameters:
function
- the function to set