Class SurfaceMeshBuilder

java.lang.Object
toxi.geom.mesh.SurfaceMeshBuilder

public class SurfaceMeshBuilder extends Object
An extensible builder class for TriangleMeshes based on 3D surface functions using spherical coordinates. In order to create a mesh, you'll need to supply a SurfaceFunction implementation to the builder.
  • Constructor Details

  • Method Details

    • createMesh

      public Mesh3D createMesh(int res)
    • createMesh

      public Mesh3D createMesh(Mesh3D mesh, int res, float size)
    • createMesh

      public Mesh3D createMesh(Mesh3D mesh, int res, float size, boolean isClosed)
    • getFunction

      public SurfaceFunction getFunction()
      Returns:
      the function
    • setFunction

      public void setFunction(SurfaceFunction function)
      Parameters:
      function - the function to set