public interface HasSurfaceMesh extends RenderableComponent
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilityTRANSPARENT, TWO_DIMENSIONAL| Modifier and Type | Method and Description |
|---|---|
default boolean |
computeRayIntersection(Point3d nearest,
Line ray)
Intersects this component with a ray, returning the nearest intersection
point on the surface meshes.
|
PolygonalMesh |
getSurfaceMesh()
Returns the surface mesh associated with this component, or
null if no mesh exists. |
PolygonalMesh[] |
getSurfaceMeshes()
Returns an array listing all the (non-null) surface meshes associated
with this component, or a zero-length array if there are none.
|
int |
numSurfaceMeshes()
Returns the number of surfaces meshes associated with this
component, or 0 if no meshes exist.
|
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetAllPropertyInfo, getPropertygetChildren, hasChildrenpostscanisWritable, writegetSelection, isSelectable, numSelectionQueriesNeededgetRenderHints, prerender, render, updateBoundscreateRenderProps, getRenderProps, setRenderPropsPolygonalMesh getSurfaceMesh()
null if no mesh exists. If multiple surface
meshes exist, this should be first one in the array returned
by getSurfaceMeshes().int numSurfaceMeshes()
getSurfaceMesh()
returns null, then this method should return 0.PolygonalMesh[] getSurfaceMeshes()
getSurfaceMesh() returns null, then a
zero-length array should be returned.default boolean computeRayIntersection(Point3d nearest, Line ray)
false is returned and the value of nearest
is undefined.nearest - returns nearest intersection point on surface meshesray - ray to intersect with