public class Box extends SimpleSurface
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Box() |
Box(double dx,
double dy,
double dz)
Generates a box of size dx*dy*dz at between (0,0,0) and (dx,dy,dz)
|
Modifier and Type | Method and Description |
---|---|
PointND |
evaluate(double u,
double v)
Returns a point on the surface at position (u, v).
|
PointND |
evaluate(PointND u)
Returns the point on the shape at the internal position u.
|
int |
getDimension()
Returns the external dimension of the shape.
|
java.util.ArrayList<PointND> |
getHits(AbstractCurve other) |
int |
getInternalDimension()
returns the internal dimension of the shape, i.e.
|
Axis |
getPrincipalAxis() |
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less.
|
float[] |
getRasterPoints(int elementCountU,
int elementCountV) |
java.util.ArrayList<PointND> |
intersect(AbstractCurve other)
Returns the intersection points between the curve and the shape.
|
boolean |
isBounded()
Returns true if the shape is of limited space
|
boolean |
isMember(PointND point)
Determines if the given point in within the bounds of shape;
|
AbstractShape |
tessellate(double accuracy)
Creates a list of connected triangles that can be used to approximate the object.
|
addAllBoundingConditions, addBoundingCondition, applyTransform, getChangeOfAxisMatrix, getTransform
getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin, getName, setName
public static final long serialVersionUID
public Box()
public Box(double dx, double dy, double dz)
dx
- dy
- dz
- public boolean isMember(PointND point)
SimpleSurface
isMember
in class SimpleSurface
public PointND evaluate(PointND u)
AbstractShape
evaluate
in class SimpleSurface
u
- the point in the internal parameter dimensionpublic int getDimension()
AbstractShape
getDimension
in class AbstractShape
public int getInternalDimension()
AbstractShape
getInternalDimension
in class SimpleSurface
public java.util.ArrayList<PointND> intersect(AbstractCurve other)
AbstractShape
intersect
in class SimpleSurface
public boolean isBounded()
AbstractShape
isBounded
in class AbstractShape
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class AbstractShape
number
- the number of pointspublic java.util.ArrayList<PointND> getHits(AbstractCurve other)
getHits
in class SimpleSurface
public Axis getPrincipalAxis()
getPrincipalAxis
in class SimpleSurface
public PointND evaluate(double u, double v)
AbstractSurface
evaluate
in class AbstractSurface
u
- the internal position in u dimensionv
- the internal position in v dimensionpublic AbstractShape tessellate(double accuracy)
AbstractSurface
tessellate
in class AbstractSurface
accuracy
- the maximal deviation in [mm]public float[] getRasterPoints(int elementCountU, int elementCountV)
getRasterPoints
in class SimpleSurface