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, isMemberaddAllBoundingConditions, addBoundingCondition, evaluate, getChangeOfAxisMatrix, getInternalDimension, getTransform, intersectgetHitsOnBoundingBox_slow, getMax, getMin, getName, setNamepublic Sphere()
public Sphere(double radius,
PointND surfaceOrigin)
public Sphere(double radius)
public boolean isBounded()
AbstractShapeisBounded in class QuadricSurfacepublic PointND[] getRasterPoints(int number)
AbstractShapegetRasterPoints in class QuadricSurfacenumber - the number of pointspublic Axis getPrincipalAxis()
getPrincipalAxis in class SimpleSurfacepublic void applyTransform(Transform t)
TransformableapplyTransform in interface TransformableapplyTransform in class SimpleSurfacet - the transform to apply to the object.public AbstractShape tessellate(double accuracy)
AbstractSurfacetessellate in class AbstractSurfaceaccuracy - the maximal deviation in [mm]public double getRadius()
public PointND getCenter()
public float[] getRasterPoints(int elementCountU,
int elementCountV)
getRasterPoints in class SimpleSurface