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
SoFaceDetailis returned from picking (in anSoPickedPoint), it will contain details for all points defining the face that was intersected. However, when anSoFaceDetailis 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 SoDetailcopy()Returns an instance that is a copy of this instance.intgetFaceIndex()Returns the index of the face within the shape.intgetNumPoints()Returns the number of points in the face.intgetPartIndex()Returns the index of the part containing the face within the shape.SoPointDetailgetPoint(int i)Returns information about the point forming the i'th vertex of the face, represented as anSoPointDetail.SoPointDetailgetPoints()voidsetFaceIndex(int i)voidsetNumPoints(int num)voidsetPartIndex(int i)voidsetPoint(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.
-
-