Class SoFaceDetail
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.details.SoDetail
-
- com.openinventor.inventor.details.SoFaceDetail
-
- Direct Known Subclasses:
MoFaceDetail
public class SoFaceDetail extends SoDetail
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. The information includes the number of points in the face, the points forming the vertices of the face, and the index of the face within the shape.Note that when an
SoFaceDetail
is returned from picking (in anSoPickedPoint
), it will contain details for all points defining the face that was intersected. However, when anSoFaceDetail
is created for a triangle produced during primitive generation (in anSoPrimitiveVertex
), it will contain details for only the three vertices of the triangle.- See Also:
SoDetail
,SoPickedPoint
,SoPrimitiveVertex
,SoVertexShape
-
-
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
-
-
Constructor Summary
Constructors Constructor Description SoFaceDetail()
Constructor.SoFaceDetail(SoFaceDetail copyFrom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoDetail
copy()
Returns an instance that is a copy of this instance.int
getFaceIndex()
Returns the index of the face within the shape.int
getNumPoints()
Returns the number of points in the face.int
getPartIndex()
Returns the index of the part containing the face within the shape.SoPointDetail
getPoint(int i)
Returns information about the point forming the i'th vertex of the face, represented as anSoPointDetail
.SoPointDetail
getPoints()
void
setFaceIndex(int i)
void
setNumPoints(int num)
void
setPartIndex(int i)
void
setPoint(int index, SoPointDetail pd)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoFaceDetail
public SoFaceDetail(SoFaceDetail copyFrom)
-
SoFaceDetail
public SoFaceDetail()
Constructor.
-
-
Method Detail
-
setPoint
public void setPoint(int index, SoPointDetail pd)
-
copy
public SoDetail copy()
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
-
setFaceIndex
public void setFaceIndex(int i)
-
setNumPoints
public void setNumPoints(int num)
-
getPartIndex
public int getPartIndex()
Returns the index of the part containing the face within the shape.
-
getNumPoints
public int getNumPoints()
Returns the number of points in the face.
-
getPoints
public SoPointDetail getPoints()
-
setPartIndex
public void setPartIndex(int i)
-
getFaceIndex
public int getFaceIndex()
Returns the index of the face within the shape.
-
getPoint
public SoPointDetail getPoint(int i)
Returns information about the point forming the i'th vertex of the face, represented as anSoPointDetail
.
-
-