public interface Wrappable extends PointAttachable
|Modifier and Type||Field and Description|
|Modifier and Type||Method and Description|
Returns a typical "radius" that should be expected for this wrappable, defined as the distance for a surface point to the center.
Computes the penetration distance of a point
Computes the point
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
static final double OUTSIDE
pton the surface of this Wrappable such that the line segment (pa,pt) is both tangent to the surface and as near as possible to the line defined by the two points pa and p1.
To assist with the computation,
pKcheck[kmax]t can be assumed to lie
fairly close to
p1, and its projection onto the line can be
assumed to lie between
p1 and another point p0 defined by
p0 = (1-lam0) pa + lam0 p1where
lam0is a parameter between 0 and 1.
pt- returns the tangent point
pa- first point of the line
p1- second point of the line
lam0- parameter defining point p0 as defined above
sideNrm- a normalized vector perpendicular to the plane defined by
pt. Can be used to help compute
p0into this Wrappable, along with the normal
nrmthat points from
p0to its nearest point on the surface. The distance should be negative if the point is inside the wrappable, and positive otherwise. If the point is outside and further than some minimum distance, then the method should return the constant
If possible, the method should also compute the derivative of the
normal with respect to changes in
p0, and return this in
dnrm. If this is not possible,
dnrm should be
set to 0.
nrm- returns the normal (should be normalized)
dnrm- returns the derivative of the normal with respect to changes in p0, or zero if this cannot be determined.
p0- point to determine penetration for
OUTSIDEif the point is further than some minimum distance from the wrappable.