Package toxi.geom.mesh
Class SuperEllipsoid
java.lang.Object
toxi.geom.mesh.SuperEllipsoid
- All Implemented Interfaces:
SurfaceFunction
Super ellipsoid surface evaluator based on code by Paul Bourke:
http://local.wasp.uwa.edu.au/~pbourke/geometry/superellipse/
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeVertexFor
(Vec3D p, float phi, float theta) float
int
getPhiResolutionLimit
(int res) float
int
getThetaResolutionLimit
(int res)
-
Constructor Details
-
SuperEllipsoid
public SuperEllipsoid(float n1, float n2)
-
-
Method Details
-
computeVertexFor
- Specified by:
computeVertexFor
in interfaceSurfaceFunction
-
getPhiRange
public float getPhiRange()- Specified by:
getPhiRange
in interfaceSurfaceFunction
-
getPhiResolutionLimit
public int getPhiResolutionLimit(int res) - Specified by:
getPhiResolutionLimit
in interfaceSurfaceFunction
-
getThetaRange
public float getThetaRange()- Specified by:
getThetaRange
in interfaceSurfaceFunction
-
getThetaResolutionLimit
public int getThetaResolutionLimit(int res) - Specified by:
getThetaResolutionLimit
in interfaceSurfaceFunction
-