Class SphereFunction

java.lang.Object
toxi.geom.mesh.SphereFunction
All Implemented Interfaces:
SurfaceFunction

public class SphereFunction extends Object implements SurfaceFunction
This implementation of a SurfaceFunction samples a given Sphere instance when called by the SurfaceMeshBuilder.
  • Field Details

    • sphere

      public Sphere sphere
  • Constructor Details

    • SphereFunction

      public SphereFunction()
    • SphereFunction

      public SphereFunction(float radius)
      Creates a new instance using a sphere of the given radius, located at the world origin.
      Parameters:
      radius -
    • SphereFunction

      public SphereFunction(Sphere s)
      Creates a new instance using the given sphere
      Parameters:
      s - sphere
  • Method Details