'\"! tbl | mmdoc '\"macro stdmacro .ie n \{\ . ds Cr \fB . ds Cb \fB .\} .el \{\ . ds Cr \f7 . ds Cb \f8 .\} .TH SoPrimitiveVertex(3IV) .SH NAME SoPrimitiveVertex \(em represents a vertex of a generated primitive .SH INHERITS FROM SoPrimitiveVertex .SH SYNOPSIS .ps -1 \*(Cr#include .sp .in 1i \f1Methods from class SoPrimitiveVertex: .in 0.5i .sp .ta 21m .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Cr .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoPrimitiveVertex\*(Cr() .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Cr .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoPrimitiveVertex\*(Cr(const SoPrimitiveVertex &pv) .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Cr .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cb~SoPrimitiveVertex\*(Cr() .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SbVec3f & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetPoint\*(Cr() const .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SbVec3f & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetNormal\*(Cr() const .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SbVec4f & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetTextureCoords\*(Cr() const .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crint .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetMaterialIndex\*(Cr() const .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SoDetail * .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetDetail\*(Cr() const .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(CrSoPrimitiveVertex & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cboperator =\*(Cr(const SoPrimitiveVertex &pv) .sp .SH DESCRIPTION An \*(CbSoPrimitiveVertex\f1 represents a vertex of a primitive (triangle, line segment, or point) that is being generated by an \*(CbSoCallbackAction\f1. It contains an object-space point, normal, texture coordinates, material index, and a pointer to \&an instance of an \*(CbSoDetail\f1 subclass. This detail may contain more information about the vertex, or may be a NULL pointer if there is no such info. .sp Instances of \*(CbSoPrimitiveVertex\f1 are typically created on the stack by shape classes \&while they are generating primitives. Anyone who wants to save them as return values from \*(CbSoCallbackAction\f1 should probably make copies of them. .SH METHODS .ta 21m .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Cr .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoPrimitiveVertex\*(Cr() .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Cr .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoPrimitiveVertex\*(Cr(const SoPrimitiveVertex &pv) .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Cr .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cb~SoPrimitiveVertex\*(Cr() .br .in 1i \f1Constructors and destructor. Note that copying a primitive vertex copies the detail pointer, and not the detail itself. .sp .in 0.5i .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SbVec3f & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetPoint\*(Cr() const .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SbVec3f & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetNormal\*(Cr() const .br .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SbVec4f & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetTextureCoords\*(Cr() const .br .in 1i \f1These return the surface point, normal, and texture coordinates in object space. .sp .in 0.5i .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crint .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetMaterialIndex\*(Cr() const .br .in 1i \f1Returns the index into the current set of materials of the material active at the vertex. .sp .in 0.5i .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(Crconst SoDetail * .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetDetail\*(Cr() const .br .in 1i \f1Returns the detail giving more information about the vertex. Note that this pointer may be NULL if there is no more info. .sp .in 0.5i .in 1i+21n .ti 0.5i .ta 21m .ds Pt \*(CrSoPrimitiveVertex & .ie \w'\*(Pt'>=21n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cboperator =\*(Cr(const SoPrimitiveVertex &pv) .br .in 1i \f1Copies the given vertex. Note that just the pointer to the detail is copied, and not the detail itself. .sp .in 0.5i