Class MoFaceDetail
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.details.SoDetail
-
- com.openinventor.inventor.details.SoFaceDetail
-
- com.openinventor.meshvizxlm.mapping.details.MoFaceDetail
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
MoFaceDetailI
,MoFaceDetailIj
,MoFaceDetailIjk
public class MoFaceDetail extends SoFaceDetail implements java.lang.Cloneable
Stores detail information about vertex-based shapes made of faces.This class contains detail information about a face in a vertex-based shape made of faces (extends
SoFaceDetail
). Additional information includes the input mesh and mesh representation details. It also allows computing the value of the mapped scalarset used for coloring at any points in the face.Detail objects are returned by the
SoPickedPoint
class after picking.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MoFaceDetail
clone()
SoDetail
copy()
Returns an instance that is a copy of this instance.MoMeshDetail
getMeshDetail()
Returns information about the input mesh containing the cell that the face belongs to, represented as aMoMeshDetail
.MoSurfaceMeshDetail
getMeshRepresentationDetail()
Returns information about the mesh representation (skin, isosurface...) containing the face, represented as aMoSurfaceMeshDetail
, if available, returns null otherwise.double
getValue(SbVec3f point)
Computes and returns the value of the mapped scalarset at the given point.-
Methods inherited from class com.openinventor.inventor.details.SoFaceDetail
getFaceIndex, getNumPoints, getPartIndex, getPoint, getPoints, setFaceIndex, setNumPoints, setPartIndex, setPoint
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getValue
public double getValue(SbVec3f point)
Computes and returns the value of the mapped scalarset at the given point. Returns Double.MAX_VALUE if point not inside the face or no mapped scalarset available.- Parameters:
point
- a 3D point- Returns:
- the value of the mapped scalarset at the given point
-
getMeshDetail
public MoMeshDetail getMeshDetail()
Returns information about the input mesh containing the cell that the face belongs to, represented as aMoMeshDetail
.- Returns:
- information about the input mesh
-
getMeshRepresentationDetail
public MoSurfaceMeshDetail getMeshRepresentationDetail()
Returns information about the mesh representation (skin, isosurface...) containing the face, represented as aMoSurfaceMeshDetail
, if available, returns null otherwise.- Returns:
- information about the mesh representation or null if not available
-
copy
public SoDetail copy()
Description copied from class:SoFaceDetail
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.- Overrides:
copy
in classSoFaceDetail
-
clone
public MoFaceDetail clone()
-
-