Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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).

Method Summary
`Vec3D` | `computeVertexFor(Vec3D p, float phi, float theta)`
`float` | `getPhiRange()`
`int` | `getPhiResolutionLimit(int res)`
`float` | `getThetaRange()`
`int` | `getThetaResolutionLimit(int res)`

Method Detail

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD