.TH "SoPrimitiveVertexCache" 3 "Tue Jun 23 2026 23:48:38" "Version 4.0.10" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoPrimitiveVertexCache \- This cache contains an organized version of the geometry in vertex array form\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoCache\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBArrays\fP { \fBNORMAL\fP = 0x01, \fBTEXCOORD\fP = 0x02, \fBCOLOR\fP = 0x04, \fBALL\fP = (NORMAL|TEXCOORD|COLOR) }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoPrimitiveVertexCache\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual \fB~SoPrimitiveVertexCache\fP ()" .br .ti -1c .RI "virtual SbBool \fBisValid\fP (const \fBSoState\fP *state) const" .br .ti -1c .RI "void \fBclose\fP (\fBSoState\fP *state)" .br .ti -1c .RI "void \fBrenderTriangles\fP (\fBSoState\fP *state, const int arrays=ALL) const" .br .ti -1c .RI "void \fBrenderLines\fP (\fBSoState\fP *state, const int arrays=ALL) const" .br .ti -1c .RI "void \fBrenderPoints\fP (\fBSoState\fP *state, const int array=ALL) const" .br .ti -1c .RI "void \fBaddTriangle\fP (const \fBSoPrimitiveVertex\fP *v0, const \fBSoPrimitiveVertex\fP *v1, const \fBSoPrimitiveVertex\fP *v2, const int *pointdetailidx=NULL)" .br .ti -1c .RI "void \fBaddLine\fP (const \fBSoPrimitiveVertex\fP *v0, const \fBSoPrimitiveVertex\fP *v1)" .br .ti -1c .RI "void \fBaddPoint\fP (const \fBSoPrimitiveVertex\fP *v)" .br .ti -1c .RI "int \fBgetNumVertices\fP (void) const" .br .ti -1c .RI "const \fBSbVec3f\fP * \fBgetVertexArray\fP (void) const" .br .ti -1c .RI "const \fBSbVec3f\fP * \fBgetNormalArray\fP (void) const" .br .ti -1c .RI "const \fBSbVec4f\fP * \fBgetTexCoordArray\fP (void) const" .br .ti -1c .RI "const \fBSbVec2f\fP * \fBgetBumpCoordArray\fP (void) const" .br .ti -1c .RI "const uint8_t * \fBgetColorArray\fP (void) const" .br .ti -1c .RI "int \fBgetNumTriangleIndices\fP (void) const" .br .ti -1c .RI "const GLint * \fBgetTriangleIndices\fP (void) const" .br .ti -1c .RI "int32_t \fBgetTriangleIndex\fP (const int idx) const" .br .ti -1c .RI "SbBool \fBcolorPerVertex\fP (void) const" .br .ti -1c .RI "const \fBSbVec4f\fP * \fBgetMultiTextureCoordinateArray\fP (const int unit) const" .br .ti -1c .RI "int \fBgetNumLineIndices\fP (void) const" .br .ti -1c .RI "const GLint * \fBgetLineIndices\fP (void) const" .br .ti -1c .RI "int \fBgetNumPointIndices\fP (void) const" .br .ti -1c .RI "const GLint * \fBgetPointIndices\fP (void) const" .br .ti -1c .RI "void \fBfit\fP (void)" .br .ti -1c .RI "void \fBdepthSortTriangles\fP (\fBSoState\fP *state)" .br .in -1c Public Member Functions inherited from \fBSoCache\fP .in +1c .ti -1c .RI "\fBSoCache\fP (\fBSoState\fP *const state)" .br .ti -1c .RI "void \fBref\fP (void)" .br .ti -1c .RI "void \fBunref\fP (\fBSoState\fP *state=NULL)" .br .ti -1c .RI "void \fBaddElement\fP (const \fBSoElement\fP *const elem)" .br .ti -1c .RI "virtual void \fBaddCacheDependency\fP (const \fBSoState\fP *state, \fBSoCache\fP *cache)" .br .ti -1c .RI "const \fBSoElement\fP * \fBgetInvalidElement\fP (const \fBSoState\fP *const state) const" .br .ti -1c .RI "void \fBinvalidate\fP (void)" .br .in -1c .SS "Additional Inherited Members" Protected Member Functions inherited from \fBSoCache\fP .in +1c .ti -1c .RI "virtual void \fBdestroy\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual \fB~SoCache\fP ()" .br .in -1c .SH "Detailed Description" .PP This cache contains an organized version of the geometry in vertex array form\&. The SoPrimitiveVertexClass is used to cache generated triangles\&. .PP \fBSince\fP .RS 4 Coin 3\&.0 .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoPrimitiveVertexCache::SoPrimitiveVertexCache (\fBSoState\fP * state)" Constructor\&. .SS "SoPrimitiveVertexCache::~SoPrimitiveVertexCache ()\fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "SbBool SoPrimitiveVertexCache::isValid (const \fBSoState\fP * state) const\fR [virtual]\fP" Return \fITRUE\fP if this cache is valid, \fIFALSE\fP otherwise\&. .PP Reimplemented from \fBSoCache\fP\&. .SS "void SoPrimitiveVertexCache::close (\fBSoState\fP * state)" Closes the cache after it is created\&. Takes care of \fBSoGLLazyElement\fP synchronization\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.