public class Sphere extends QuadricSurface
Constructor and Description |
---|
Sphere() |
Sphere(double radius) |
Sphere(double radius,
PointND surfaceOrigin) |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(Transform t)
Applies the Transform t to the object.
|
PointND |
getCenter() |
Axis |
getPrincipalAxis() |
double |
getRadius() |
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less.
|
float[] |
getRasterPoints(int elementCountU,
int elementCountV) |
boolean |
isBounded()
Returns true if the shape is of limited space
|
AbstractShape |
tessellate(double accuracy)
Creates a list of connected triangles that can be used to approximate the object.
|
evaluate, getDimension, getHits, getHitsOnBoundingBox, isMember
addAllBoundingConditions, addBoundingCondition, evaluate, getChangeOfAxisMatrix, getInternalDimension, getTransform, intersect
getHitsOnBoundingBox_slow, getMax, getMin, getName, setName
public Sphere()
public Sphere(double radius, PointND surfaceOrigin)
public Sphere(double radius)
public boolean isBounded()
AbstractShape
isBounded
in class QuadricSurface
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class QuadricSurface
number
- the number of pointspublic Axis getPrincipalAxis()
getPrincipalAxis
in class SimpleSurface
public void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
applyTransform
in class SimpleSurface
t
- the transform to apply to the object.public AbstractShape tessellate(double accuracy)
AbstractSurface
tessellate
in class AbstractSurface
accuracy
- the maximal deviation in [mm]public double getRadius()
public PointND getCenter()
public float[] getRasterPoints(int elementCountU, int elementCountV)
getRasterPoints
in class SimpleSurface