public class SphereApproximator
extends java.lang.Object
Constructor and Description |
---|
SphereApproximator(int order)
Creates a sphere approximation by subdividing the vertices of an isosahedron.
|
SphereApproximator(int horizontal,
int vertical)
Creates a unit sphere approximation using spherical coordinates.
|
public SphereApproximator(int horizontal, int vertical)
horizontal
- number of horizontal sectors (on xy-plane).vertical
- number of vertical sectors. Must be at least
two! Three to count horizontal sectors also. public SphereApproximator(int order)
order
- number of subdivisions, higher number means more vertices.
public java.util.ArrayList<Vertex3D> getVertsScaled(double radius)
radius
- the radius to scale the sphere to.public double getRadius()
public java.util.ArrayList<Vertex3D> getVerts()
public java.util.ArrayList<Vertex3D> getFaces()
public int numVerts()
public int numFaces()