SoPrimitiveVertexCache(3)
π SoPrimitiveVertexCache π
okay bestie, so this is a page from the Coin manual, and we're talking about SoPrimitiveVertexCache(3). Buckle up, she's a little niche but she's iconic. π
β¨ NAME β¨
SoPrimitiveVertexCache β this cache contains an organized version of the geometry in vertex array form. periodt. π
πΈ SYNOPSIS πΈ
#include <Inherits SoCache./caches/SoPrimitiveVertexCache.h>
no wait bestie, let me do that properly, my bad π
#include <Inventor/caches/SoPrimitiveVertexCache.h>
Inherits SoCache. yes she's a nepo baby, she inherits from SoCache, and honestly? good for her. π
π¦ Public Types π¦
enum Arraysβ the little bitfield menu of what arrays you can get. here's the whole lineup:NORMAL = 0x01TEXCOORD = 0x02COLOR = 0x04ALL = (NORMAL|TEXCOORD|COLOR)
β Public Member Functions β
no cap, here's every single one of them, i'm not skipping a single thing because that's not the vibe:
SoPrimitiveVertexCache(SoState *state)β the constructor β¨virtual ~SoPrimitiveVertexCache()β the destructor πvirtual SbBool isValid(const SoState *state) constvoid close(SoState *state)void renderTriangles(SoState *state, const int arrays=ALL) constvoid renderLines(SoState *state, const int arrays=ALL) constvoid renderPoints(SoState *state, const int array=ALL) constvoid addTriangle(const SoPrimitiveVertex *v0, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const int *pointdetailidx=NULL)void addLine(const SoPrimitiveVertex *v0, const SoPrimitiveVertex *v1)void addPoint(const SoPrimitiveVertex *v)int getNumVertices(void) constconst SbVec3f * getVertexArray(void) constconst SbVec3f * getNormalArray(void) constconst SbVec4f * getTexCoordArray(void) constconst SbVec2f * getBumpCoordArray(void) constconst uint8_t * getColorArray(void) constint getNumTriangleIndices(void) constconst GLint * getTriangleIndices(void) constint32_t getTriangleIndex(const int idx) constSbBool colorPerVertex(void) constconst SbVec4f * getMultiTextureCoordinateArray(const int unit) constint getNumLineIndices(void) constconst GLint * getLineIndices(void) constint getNumPointIndices(void) constconst GLint * getPointIndices(void) constvoid fit(void)void depthSortTriangles(SoState *state)
π Public Member Functions inherited from SoCache π
the family she got it from, so to speak:
SoCache(SoState *const state)void ref(void)void unref(SoState *state=NULL)void addElement(const SoElement *const elem)virtual void addCacheDependency(const SoState *state, SoCache *cache)const SoElement * getInvalidElement(const SoState *const state) constvoid invalidate(void)
π«Ά Additional Inherited Members π«Ά
π Protected Member Functions inherited from SoCache π
virtual void destroy(SoState *state)virtual ~SoCache()
π Detailed Description π
okay so basically: this cache contains an organized version of the geometry in vertex array form. it's giving "i took your messy geometry and i organized it, you're welcome." π§
The SoPrimitiveVertexClass is used to cache generated triangles. (that's the literal text, bestie, i'm just relaying the lore.)
Since: Coin 3.0 β she's been around a minute, a true veteran. π
π Constructor & Destructor Documentation π
πΈ SoPrimitiveVertexCache::SoPrimitiveVertexCache(SoState *state) πΈ
Constructor. β¨ that's it, that's the whole description. she's mysterious.
π SoPrimitiveVertexCache::~SoPrimitiveVertexCache() [virtual] π
Destructor. π rip bestie, she's gone.
β Member Function Documentation β
π¦ SbBool SoPrimitiveVertexCache::isValid(const SoState *state) const [virtual] π¦
Return TRUE if this cache is valid, FALSE otherwise. simple as that, no notes. π
Reimplemented from SoCache.
π void SoPrimitiveVertexCache::close(SoState *state) π
Closes the cache after it is created. takes care of SoGLLazyElement synchronization. lowkey doing the most so you don't have to. π
heads up bestie, the rest of those member functions up in the list? the docs don't say anything else about them. not me making up behaviour, no ma'am. π
π Author π
Generated automatically by Doxygen for Coin from the source code. she's a Doxygen baby, born from the source itself. iconic honestly.
okay and finally, the cute little sign-off: this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it lives at page SoPrimitiveVertexCache(3). love that for her. π«Άβ¨π
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms