public class PointElem3dDistanceCalculator extends java.lang.Object implements BVFeatureQuery.ObjectDistanceCalculator
Constructor and Description |
---|
PointElem3dDistanceCalculator() |
PointElem3dDistanceCalculator(FemModel.ElementFilter filter) |
Modifier and Type | Method and Description |
---|---|
double |
nearestDistance()
Returns the last computed nearest distance
|
double |
nearestDistance(Boundable e)
Computes the nearest distance to an element within the node.
|
double |
nearestDistance(BVNode node)
Computes the nearest distance to the bounding node
|
FemElement3dBase |
nearestObject()
Returns the last computed nearest
Boundable object |
Point3d |
nearestPoint()
Returns the last computed nearest point, in local coordinates.
|
void |
reset()
Reset any internal `nearest' cache so calculator can be re-used
|
void |
setPoint(Point3d pnt) |
void |
setPoint(Point3d pnt,
RigidTransform3d XBvhToWorld) |
public PointElem3dDistanceCalculator()
public PointElem3dDistanceCalculator(FemModel.ElementFilter filter)
public void reset()
BVFeatureQuery.ObjectDistanceCalculator
reset
in interface BVFeatureQuery.ObjectDistanceCalculator
public void setPoint(Point3d pnt, RigidTransform3d XBvhToWorld)
public void setPoint(Point3d pnt)
public double nearestDistance(BVNode node)
BVFeatureQuery.ObjectDistanceCalculator
nearestDistance
in interface BVFeatureQuery.ObjectDistanceCalculator
node
- node to check distance tonode
public double nearestDistance(Boundable e)
BVFeatureQuery.ObjectDistanceCalculator
BVFeatureQuery.ObjectDistanceCalculator.nearestObject()
and BVFeatureQuery.ObjectDistanceCalculator.nearestDistance()
nearestDistance
in interface BVFeatureQuery.ObjectDistanceCalculator
e
- element for which distance is to be computede
public Point3d nearestPoint()
BVFeatureQuery.ObjectDistanceCalculator
nearestPoint
in interface BVFeatureQuery.ObjectDistanceCalculator
public FemElement3dBase nearestObject()
BVFeatureQuery.ObjectDistanceCalculator
Boundable
objectnearestObject
in interface BVFeatureQuery.ObjectDistanceCalculator
public double nearestDistance()
BVFeatureQuery.ObjectDistanceCalculator
nearestDistance
in interface BVFeatureQuery.ObjectDistanceCalculator