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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeVertexFor(Vec3D p, float phi, float theta) floatintgetPhiResolutionLimit(int res) floatintgetThetaResolutionLimit(int res)
-
Constructor Details
-
SuperEllipsoid
public SuperEllipsoid(float n1, float n2)
-
-
Method Details
-
computeVertexFor
- Specified by:
computeVertexForin interfaceSurfaceFunction
-
getPhiRange
public float getPhiRange()- Specified by:
getPhiRangein interfaceSurfaceFunction
-
getPhiResolutionLimit
public int getPhiResolutionLimit(int res) - Specified by:
getPhiResolutionLimitin interfaceSurfaceFunction
-
getThetaRange
public float getThetaRange()- Specified by:
getThetaRangein interfaceSurfaceFunction
-
getThetaResolutionLimit
public int getThetaResolutionLimit(int res) - Specified by:
getThetaResolutionLimitin interfaceSurfaceFunction
-