toxi.geom.mesh
Interface SurfaceFunction
- All Known Implementing Classes:
- SphereFunction, SphericalHarmonics, SuperEllipsoid
public interface SurfaceFunction
This interface defines a functor for evaluating the coordinates of a surface
mesh used by SurfaceMeshBuilder
.
It is assumed the implementation creates vertices within the unit sphere
(normalized).
computeVertexFor
Vec3D computeVertexFor(Vec3D p,
float phi,
float theta)
getPhiRange
float getPhiRange()
getPhiResolutionLimit
int getPhiResolutionLimit(int res)
getThetaRange
float getThetaRange()
getThetaResolutionLimit
int getThetaResolutionLimit(int res)