| 1 |
NAME SoFaceDetail SoFaceDtl "" { |
| 2 |
stores detail information about vertex-based shapes made of faces |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE details/SoFaceDetail.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This class contains detail information about a point on a face in a |
| 9 |
vertex-based shape made of faces. The information includes the number |
| 10 |
of points in the face, the points forming the vertices of the face, |
| 11 |
and the index of the face within the shape. |
| 12 |
\p |
| 13 |
Note that when an \cSoFaceDetail\. is returned from picking (in an |
| 14 |
\cSoPickedPoint\.), it will contain details for all points defining |
| 15 |
the face that was intersected. However, when an \cSoFaceDetail\. is |
| 16 |
created for a triangle produced during primitive generation (in an |
| 17 |
\cSoPrimitiveVertex\.), it will contain details for only the three |
| 18 |
vertices of the triangle. |
| 19 |
} |
| 20 |
|
| 21 |
METHOD "" SoFaceDetail() {} |
| 22 |
METHOD "" virtual ~SoFaceDetail() { Constructor and destructor. } |
| 23 |
|
| 24 |
METHOD getNumPts long getNumPoints() const { |
| 25 |
Returns the number of points in the face. |
| 26 |
} |
| 27 |
|
| 28 |
METHOD getPt const SoPointDetail * getPoint(int i) const { |
| 29 |
Returns information about the point forming the \ai\.'th vertex of the |
| 30 |
face, represented as an \cSoPointDetail\.. |
| 31 |
} |
| 32 |
|
| 33 |
METHOD getFaceInd int32_t getFaceIndex() const { |
| 34 |
Returns the index of the face within the shape. |
| 35 |
} |
| 36 |
|
| 37 |
METHOD getPartInd int32_t getPartIndex() const { |
| 38 |
Returns the index of the part containing the face within the shape. |
| 39 |
} |
| 40 |
|
| 41 |
METHOD "" static SoType getClassTypeId() { |
| 42 |
Returns type identifier for this class. |
| 43 |
} |
| 44 |
|
| 45 |
ALSO { SoDetail, SoPickedPoint, SoPrimitiveVertex, SoVertexShape } |