SoVRMLVertexShape(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– SoVRMLVertexShape πŸ’–

okay bestie, welcome to SoVRMLVertexShape(3) β€” it's a Library Functions Manual page and it's a whole vibe, so grab a boba and let's go πŸ§‹βœ¨

🌸 NAME 🌸

SoVRMLVertexShape β€” the class that's the superclass for vertex based shapes. it's giving "parent energy", it's the blueprint all the vertex-y shapes look up to πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/VRMLnodes/SoVRMLVertexShape.h>

Inherits SoVRMLGeometry.

Inherited by SoVRMLIndexedShape.


✨ Public Types ✨

this lil enum right here, Binding, is lowkey just repping the material binding element constants fr fr:

enum Binding {
    OVERALL = SoMaterialBindingElement::OVERALL,
    PER_PART = SoMaterialBindingElement::PER_PART,
    PER_PART_INDEXED = SoMaterialBindingElement::PER_PART_INDEXED,
    PER_FACE = SoMaterialBindingElement::PER_FACE,
    PER_FACE_INDEXED = SoMaterialBindingElement::PER_FACE_INDEXED,
    PER_VERTEX = SoMaterialBindingElement::PER_VERTEX,
    PER_VERTEX_INDEXED = SoMaterialBindingElement::PER_VERTEX_INDEXED
}

πŸŽ€ Public Types inherited from SoShape

SoShape came through with its own enum, TriangleShape, and honestly? iconic:

enum TriangleShape {
    TRIANGLE_STRIP, TRIANGLE_FAN, TRIANGLES, POLYGON,
    QUADS, QUAD_STRIP, POINTS, LINES, LINE_STRIP
}

πŸŽ€ Public Types inherited from SoNode

and SoNode brought NodeType to the party, a whole bouquet of hex values πŸ’:

enum NodeType {
    INVENTOR = 0x0000, VRML1 = 0x0001, VRML2 = 0x0002,
    INVENTOR_1 = 0x0004, INVENTOR_2_0 = 0x0008, INVENTOR_2_1 = 0x0010,
    INVENTOR_2_5 = 0x0020, INVENTOR_2_6 = 0x0040, COIN_1_0 = 0x0080,
    COIN_2_0 = 0x0100, EXTENSION = 0x0200, COIN_2_2 = 0x0400, COIN_2_3 =
    0x0800, COIN_2_4 = 0x1000, INVENTOR_5_0 = 0x2000, COIN_2_5 = 0x4000
}

πŸ’… Public Member Functions πŸ’…

the main character functions, periodt:

  • virtual SoType getTypeId (void) const
  • virtual SbBool generateDefaultNormals (SoState *s, SoNormalBundle *nb)
  • virtual SbBool generateDefaultNormals (SoState *s, SoNormalCache *nc)
  • virtual void doAction (SoAction *action)
  • virtual void GLRender (SoGLRenderAction *action)
  • virtual void getBoundingBox (SoGetBoundingBoxAction *action)
  • virtual void callback (SoCallbackAction *action)
  • virtual void pick (SoPickAction *action)
  • virtual void notify (SoNotList *list)

🌈 Public Member Functions inherited from SoVRMLGeometry

  • virtual void search (SoSearchAction *action)
  • virtual void copyContents (const SoFieldContainer *from, SbBool copyConn)

🌈 Public Member Functions inherited from SoShape

  • virtual SbBool affectsState (void) const
  • virtual void rayPick (SoRayPickAction *action)
  • virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)=0
  • virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
  • const SoBoundingBoxCache * getBoundingBoxCache (void) const

🌈 Public Member Functions inherited from SoNode

  • void setOverride (const SbBool state)
  • SbBool isOverride (void) const
  • void setNodeType (const NodeType type)
  • NodeType getNodeType (void) const
  • virtual SoNode * copy (SbBool copyconnections=0) const
  • virtual void GLRenderBelowPath (SoGLRenderAction *action)
  • virtual void GLRenderInPath (SoGLRenderAction *action)
  • virtual void GLRenderOffPath (SoGLRenderAction *action)
  • virtual void getMatrix (SoGetMatrixAction *action)
  • virtual void handleEvent (SoHandleEventAction *action)
  • virtual void write (SoWriteAction *action)
  • virtual void audioRender (SoAudioRenderAction *action)
  • virtual void grabEventsSetup (void)
  • virtual void grabEventsCleanup (void)
  • virtual void startNotify (void)
  • uint32_t getNodeId (void) const
  • virtual void writeInstance (SoOutput *out)
  • virtual SoNode * addToCopyDict (void) const
  • virtual SoFieldContainer * copyThroughConnection (void) const

🌈 Public Member Functions inherited from SoFieldContainer

  • void setToDefaults (void)
  • SbBool hasDefaultValues (void) const
  • SbBool fieldsAreEqual (const SoFieldContainer *container) const
  • void copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=0)
  • SbBool set (const char *const fielddata)
  • void get (SbString &fielddata)
  • virtual int getFields (SoFieldList &l) const
  • virtual int getAllFields (SoFieldList &l) const
  • virtual SoField * getField (const SbName &name) const
  • virtual SoField * getEventIn (const SbName &name) const
  • virtual SoField * getEventOut (const SbName &name) const
  • SbBool getFieldName (const SoField *const field, SbName &name) const
  • SbBool enableNotify (const SbBool flag)
  • SbBool isNotifyEnabled (void) const
  • SbBool set (const char *fielddata, SoInput *in)
  • void get (SbString &fielddata, SoOutput *out)
  • virtual SbBool validateNewFieldValue (SoField *field, void *newval)
  • virtual void addWriteReference (SoOutput *out, SbBool isfromfield=0)
  • SbBool getIsBuiltIn (void) const
  • void setUserData (void *userdata) const
  • void * getUserData (void) const

🌈 Public Member Functions inherited from SoBase

  • void ref (void) const
  • void unref (void) const
  • void unrefNoDelete (void) const
  • int32_t getRefCount (void) const
  • void touch (void)
  • SbBool isOfType (SoType type) const
  • virtual SbName getName (void) const
  • virtual void setName (const SbName &newname)
  • void addAuditor (void *const auditor, const SoNotRec::Type type)
  • void removeAuditor (void *const auditor, const SoNotRec::Type type)
  • const SoAuditorList & getAuditors (void) const
  • SbBool shouldWrite (void)
  • void assertAlive (void) const

πŸ‘‘ Static Public Member Functions πŸ‘‘

  • static SoType getClassTypeId (void)
  • static void initClass (void)

🫢 Static Public Member Functions inherited from SoVRMLGeometry

  • static SoType getClassTypeId (void)
  • static void initClass (void)

🫢 Static Public Member Functions inherited from SoShape

  • static SoType getClassTypeId (void)
  • static void initClass (void)
  • static void getScreenSize (SoState *const state, const SbBox3f &boundingbox, SbVec2s &rectsize)
  • static float getDecimatedComplexity (SoState *state, float complexity)

🫢 Static Public Member Functions inherited from SoNode

  • static uint32_t getCompatibilityTypes (const SoType &nodetype)
  • static SoType getClassTypeId (void)
  • static SoNode * getByName (const SbName &name)
  • static int getByName (const SbName &name, SoNodeList &l)
  • static void initClass (void)
  • static void initClasses (void)
  • static uint32_t getNextNodeId (void)
  • static int getActionMethodIndex (const SoType type)
  • static void getBoundingBoxS (SoAction *action, SoNode *node)
  • static void GLRenderS (SoAction *action, SoNode *node)
  • static void callbackS (SoAction *action, SoNode *node)
  • static void getMatrixS (SoAction *action, SoNode *node)
  • static void handleEventS (SoAction *action, SoNode *node)
  • static void pickS (SoAction *action, SoNode *node)
  • static void rayPickS (SoAction *action, SoNode *node)
  • static void searchS (SoAction *action, SoNode *node)
  • static void writeS (SoAction *action, SoNode *node)
  • static void audioRenderS (SoAction *action, SoNode *node)
  • static void getPrimitiveCountS (SoAction *action, SoNode *node)

🫢 Static Public Member Functions inherited from SoFieldContainer

  • static void initClass (void)
  • static SoType getClassTypeId (void)
  • static void initCopyDict (void)
  • static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)
  • static SoFieldContainer * checkCopy (const SoFieldContainer *orig)
  • static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)
  • static void copyDone (void)

🫢 Static Public Member Functions inherited from SoBase

  • static void initClass (void)
  • static SoType getClassTypeId (void)
  • static void addName (SoBase *const base, const char *const name)
  • static void removeName (SoBase *const base, const char *const name)
  • static void incrementCurrentWriteCounter (void)
  • static void decrementCurrentWriteCounter (void)
  • static SoBase * getNamedBase (const SbName &name, SoType type)
  • static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)
  • static SbBool read (SoInput *in, SoBase *&base, SoType expectedtype)
  • static void setInstancePrefix (const SbString &c)
  • static void setTraceRefs (SbBool trace)
  • static SbBool getTraceRefs (void)
  • static SbBool connectRoute (SoInput *in, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)
  • static SbBool readRoute (SoInput *in)

πŸ“ Public Attributes πŸ“

these are the fields, bestie, the public ones everybody can touch:

  • SoSFNode coord
  • SoSFNode texCoord
  • SoSFNode normal
  • SoSFNode color
  • SoSFBool colorPerVertex
  • SoSFBool normalPerVertex

🧚 Protected Member Functions 🧚

the protected ones β€” not for just anyone, only the chosen ones (subclasses) get in πŸ”:

  • virtual const SoFieldData * getFieldData (void) const
  • SoVRMLVertexShape (void)
  • virtual ~SoVRMLVertexShape ()
  • virtual SbBool shouldGLRender (SoGLRenderAction *action)
  • void setNormalCache (SoState *s, int numNormals, SbVec3f *normals)
  • SoNormalCache * getNormalCache (void) const
  • SoNormalCache * generateAndReadLockNormalCache (SoState *const state)
  • void getVertexData (SoState *state, const SoCoordinateElement *&coords, const SbVec3f *&normals, const SbBool neednormals)
  • void readLockNormalCache (void)
  • void readUnlockNormalCache (void)

πŸŽ€ Protected Member Functions inherited from SoVRMLGeometry

  • SoVRMLGeometry (void)
  • virtual ~SoVRMLGeometry ()
  • void setupShapeHints (SoState *state, const SbBool ccw, const SbBool solid)
  • virtual SoChildList * getChildren (void) const

that's part 1, bestie β€” and there's more coming, so don't go anywhere πŸ’œ

πŸ›‘οΈ Protected Member Functions β€” inherited from SoShape πŸ›‘οΈ

okay bestie, these are all the protected little gifts SoShape hands down to its subclasses, and SoVRMLVertexShape is absolutely allowed to use them πŸ’–

  • SoShape (void) β€” constructor, protected, just doing its constructor thing πŸŽ€
  • virtual ~SoShape () β€” destructor, virtual so the cleanup vibes cascade properly ✨
  • float getComplexityValue (SoAction *action) β€” returns a float, takes an SoAction *action
  • virtual void generatePrimitives (SoAction *action)=0 β€” pure virtual (= 0), so it's abstract energy and subclasses have to bring their own 🫢
  • void beginSolidShape (SoGLRenderAction *action) β€” takes an SoGLRenderAction *action
  • void endSolidShape (SoGLRenderAction *action) β€” the matching end one, also SoGLRenderAction *action
  • void GLRenderBoundingBox (SoGLRenderAction *action) β€” takes an SoGLRenderAction *action
  • SbBool shouldPrimitiveCount (SoGetPrimitiveCountAction *action) β€” returns SbBool, takes an SoGetPrimitiveCountAction *action
  • SbBool shouldRayPick (SoRayPickAction *const action) β€” returns SbBool, takes an SoRayPickAction *const action
  • void computeObjectSpaceRay (SoRayPickAction *const action) β€” takes an SoRayPickAction *const action
  • void computeObjectSpaceRay (SoRayPickAction *const action, const SbMatrix &matrix) β€” the overload, same action plus a const SbMatrix &matrix πŸ’…
  • virtual SoDetail * createTriangleDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const SoPrimitiveVertex *v3, SoPickedPoint *pp) β€” returns an SoDetail *, virtual, with three const SoPrimitiveVertex * and an SoPickedPoint *pp
  • virtual SoDetail * createLineSegmentDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, SoPickedPoint *pp) β€” returns SoDetail *, virtual, two vertices plus pp
  • virtual SoDetail * createPointDetail (SoRayPickAction *action, const SoPrimitiveVertex *v, SoPickedPoint *pp) β€” returns SoDetail *, virtual, one vertex plus pp
  • void invokeTriangleCallbacks (SoAction *const action, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2, const SoPrimitiveVertex *const v3) β€” three const SoPrimitiveVertex *const besties walk in…
  • void invokeLineSegmentCallbacks (SoAction *const action, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2) β€” two const SoPrimitiveVertex *const
  • void invokePointCallbacks (SoAction *const action, const SoPrimitiveVertex *const v) β€” just the one const SoPrimitiveVertex *const
  • void beginShape (SoAction *const action, const TriangleShape shapetype, SoDetail *const detail=NULL) β€” note the detail=NULL default, we love a default 😌
  • void shapeVertex (const SoPrimitiveVertex *const v) β€” takes a const SoPrimitiveVertex *const v
  • void endShape (void) β€” takes nothing, returns nothing, iconic
  • void generateVertex (SoPrimitiveVertex *const pv, const SbVec3f &point, const SbBool useTexFunc, const SoTextureCoordinateElement *const tce, const float s, const float t, const SbVec3f &normal) β€” the whole squad: pv, point, useTexFunc, tce, s, t, normal πŸ”₯
  • void generateVertex (SoPrimitiveVertex *const pv, const SbVec3f &point, const SbBool useTexFunc, const SoTextureCoordinateElement *const tce, const float s, const float t, const float r, const SbVec3f &normal) β€” the overload, now with an extra const float r in the mix
  • SbBool startVertexArray (SoGLRenderAction *action, const SoCoordinateElement *coords, const SbVec3f *pervertexnormals, const SbBool texpervertex, const SbBool colorpervertex) β€” returns SbBool, and yes texpervertex and colorpervertex are spelled exactly like that
  • void finishVertexArray (SoGLRenderAction *action, const SbBool vbo, const SbBool normpervertex, const SbBool texpervertex, const SbBool colorpervertex) β€” returns nothing, takes vbo, normpervertex, texpervertex, colorpervertex

🧬 Protected Member Functions inherited from SoNode 🧬

  • SoNode (void) β€” constructor πŸŽ€
  • virtual ~SoNode () β€” virtual destructor ✨
  • virtual SbBool readInstance (SoInput *in, unsigned short flags) β€” virtual, returns SbBool, takes SoInput *in and unsigned short flags

🧺 Protected Member Functions inherited from SoFieldContainer 🧺

  • SoFieldContainer (void) β€” constructor πŸ’œ
  • ~SoFieldContainer () β€” destructor

🌸 Protected Member Functions inherited from SoBase 🌸

  • SoBase (void) β€” constructor πŸŽ€
  • virtual ~SoBase () β€” virtual destructor
  • virtual void destroy (void) β€” virtual, returns nothing, takes nothing
  • SbBool hasMultipleWriteRefs (void) const β€” returns SbBool, it's a const girlie
  • SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const β€” returns SbBool, takes out, isgroup, isengine, and it's const
  • void writeFooter (SoOutput *out) const β€” const, takes an SoOutput *out
  • virtual const char * getFileFormatName (void) const β€” virtual, returns a const char *, const too

🧊 Static Protected Member Functions 🧊

  • static const SoFieldData ** getFieldDataPtr (void) β€” static, returns const SoFieldData **, takes void

Static Protected Member Functions inherited from SoVRMLGeometry

  • static const SoFieldData ** getFieldDataPtr (void) β€” same energy, different class πŸ¦‹

Static Protected Member Functions inherited from SoShape

  • static const SoFieldData ** getFieldDataPtr (void) β€” yes bestie, it's here again

Static Protected Member Functions inherited from SoNode

  • static const SoFieldData ** getFieldDataPtr (void) β€” and again πŸ’…
  • static void setNextActionMethodIndex (int index) β€” takes an int index
  • static int getNextActionMethodIndex (void) β€” returns an int
  • static void incNextActionMethodIndex (void) β€” takes nothing
  • static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask) β€” takes a const SoType &nodetype and a const uint32_t bitmask

Static Protected Member Functions inherited from SoBase

  • static uint32_t getCurrentWriteCounter (void) β€” returns a uint32_t
  • static void staticDataLock (void) β€” takes nothing πŸ”’
  • static void staticDataUnlock (void) β€” and its unlock counterpart πŸ”“

🎁 Additional Inherited Members 🎁

Protected Types inherited from SoBase

  • enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 } β€” two flags, exact values, no cap

Protected Attributes inherited from SoNode

  • uint32_t uniqueId β€” a uint32_t called uniqueId

Protected Attributes inherited from SoFieldContainer

  • SbBool isBuiltIn β€” an SbBool called isBuiltIn

Static Protected Attributes inherited from SoNode

  • static uint32_t nextUniqueId = 0 β€” initialized to 0
  • static int nextActionMethodIndex = 0 β€” also initialized to 0

πŸ“– Detailed Description πŸ“–

The SoVRMLVertexShape class is a superclass for vertex based shapes. ✨ that's the whole plot bestie, it's giving parent class energy πŸ’…


🧡 Constructor & Destructor Documentation 🧡

SoVRMLVertexShape::SoVRMLVertexShape (void ) [protected]

Constructor. πŸŽ€

References color, colorPerVertex, coord, normal, normalPerVertex, SoVRMLVertexShape(), and texCoord.

Referenced by getFieldData(), and SoVRMLVertexShape().

SoVRMLVertexShape::~SoVRMLVertexShape () [protected], [virtual]

Destructor. 🫢

πŸ’– Member Function Documentation πŸ’–

SoType SoVRMLVertexShape::getTypeId (void ) const [virtual]

okay so this one hands you back the type identification of any object that derives from SoBase. it's the whole reason run-time type checking and "downward" casting work at all, no cap.

Usage example, and yes bestie, copy it character for character:

void foo(SoNode * node)
{
  if (node->getTypeId() == SoFile::getClassTypeId()) {
    SoFile * filenode = (SoFile *)node;  // safe downward cast, knows the type
  }
  else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) {
    SoGroup * group = (SoGroup *)node;  // safe downward cast, knows the type
  }
}

So like, if you're an application programmer and you wanna extend the library with new nodes, engines, nodekits, draggers or whatever else β€” you MUST override this method in all your subclasses. it's giving mandatory. normally you do this as part of setting up the full type system for your extension classes, which is usually accomplished with the pre-defined macros you get through, for instance, Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on. ✨

if you want more info on writing Coin extensions, go read the class documentation of the toplevel superclasses for the various class groups. 🫢

Reimplemented from SoVRMLGeometry.

Reimplemented in SoVRMLIndexedFaceSet, and SoVRMLIndexedShape.


const SoFieldData * SoVRMLVertexShape::getFieldData (void ) const [protected], [virtual]

gives you back a pointer to the class-wide field data storage object for this instance. and if there are literally no fields present? it returns NULL. that's it, that's the whole vibe. 🌸

Reimplemented from SoVRMLGeometry.

Reimplemented in SoVRMLIndexedFaceSet, and SoVRMLIndexedShape.

References SoVRMLVertexShape().


SbBool SoVRMLVertexShape::generateDefaultNormals (SoState * s, SoNormalBundle * nb) [virtual]

heads up bestie, this API member is considered internal to the library, since it's not likely to be of interest to the application programmer.

Subclasses should override this method to generate default normals using the SoNormalBundle class. return TRUE if normals were generated, FALSE otherwise. πŸ’…

Default method returns FALSE.

this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.

Reimplemented in SoVRMLIndexedFaceSet.

Referenced by generateAndReadLockNormalCache().


SbBool SoVRMLVertexShape::generateDefaultNormals (SoState * s, SoNormalCache * nc) [virtual]

again: internal library business, not likely to be interesting to the application programmer. πŸ™ˆ

Subclasses should override this method to generate default normals using the SoNormalCache class. this one is more effective than using SoNormalGenerator. return TRUE if normals were generated, FALSE otherwise.

Default method just returns FALSE.

also a Coin extension, and also not available in the original SGI Open Inventor v2.1 API.

Reimplemented in SoVRMLIndexedFaceSet.


void SoVRMLVertexShape::doAction (SoAction * action) [virtual]

this function performs the typical operation of a node for any action. main character energy fr fr. πŸ‘‘

Reimplemented from SoNode.

References color, coord, SoNode::doAction(), normal, SoNode::SoNode(), and texCoord.

Referenced by SoVRMLIndexedFaceSet::generatePrimitives().


void SoVRMLVertexShape::GLRender (SoGLRenderAction * action) [virtual]

action method for the SoGLRenderAction. πŸ”₯

this gets called during rendering traversals. nodes that influence the rendering state in any way, or that wanna throw geometry primitives at OpenGL, override this method.

Reimplemented from SoShape.

Reimplemented in SoVRMLIndexedFaceSet.

References color, coord, SoNode::GLRender(), normal, SoNode::SoNode(), and texCoord.

Referenced by SoVRMLIndexedFaceSet::GLRender().


void SoVRMLVertexShape::getBoundingBox (SoGetBoundingBoxAction * action) [virtual]

action method for the SoGetBoundingBoxAction.

it calculates the bounding box and center coordinates for the node, and modifies the values of the action so it encompasses the bounding box for this node, and shifts the center point for the scene more towards the one for this node. πŸ“¦βœ¨

nodes that influence how geometry nodes calculate their bounding box also override this method to change the relevant state variables.

Reimplemented from SoShape.

References SoNode::getBoundingBox().


void SoVRMLVertexShape::callback (SoCallbackAction * action) [virtual]

action method for SoCallbackAction.

it simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph. iykyk. πŸ¦‹

Reimplemented from SoShape.

References SoNode::callback().


void SoVRMLVertexShape::pick (SoPickAction * action) [virtual]

action method for SoPickAction.

does the common processing for SoPickAction action instances. that's the whole job, periodt.

Reimplemented from SoNode.

References SoNode::pick().


void SoVRMLVertexShape::notify (SoNotList * l) [virtual]

notifies all auditors for this instance whenever changes are made. πŸ“£

Reimplemented from SoVRMLGeometry.

Reimplemented in SoVRMLIndexedShape.

References coord, SoNotList::getLastField(), SoVRMLGeometry::notify(), readLockNormalCache(), and readUnlockNormalCache().

Referenced by SoVRMLIndexedShape::notify().


SbBool SoVRMLVertexShape::shouldGLRender (SoGLRenderAction * action) [protected], [virtual]

yep, another one that's considered internal to the library and not likely to be of interest to the application programmer. shrug. 🀷

Reimplemented from SoVRMLGeometry.

References SoShape::shouldGLRender().

Referenced by SoVRMLIndexedFaceSet::GLRender().


SoNormalCache * SoVRMLVertexShape::generateAndReadLockNormalCache (SoState *const state) [protected]

a convenience method that subclasses can use to return or create a normal cache. if the current cache isn't valid, it takes care of unrefing the old cache, plus pushing and popping the state, to create element dependencies when creating the new cache. πŸŽ€

when you return from this method, the normal cache will be read locked, and the caller should call readUnlockNormalCache() once the normals in the cache are no longer needed.

Coin extension alert: this function is not available in the original SGI Open Inventor v2.1 API.

Since

Coin 2.0

References generateDefaultNormals(), SoState::pop(), SoState::push(), readLockNormalCache(), and readUnlockNormalCache().

Referenced by SoVRMLIndexedShape::getVertexData().


void SoVRMLVertexShape::getVertexData (SoState * state, const SoCoordinateElement *& coords, const SbVec3f *& normals, const SbBool neednormals) [protected]

convenience method that returns the current coordinate and normal element. and jsyk, this method is not part of the OIV API.

References SoMField::getNum(), SoMFVec3f::getValues(), normal, and SoVRMLNormal::vector.

Referenced by SoVRMLIndexedShape::getVertexData().


void SoVRMLVertexShape::readLockNormalCache (void ) [protected]

read lock the normal cache. 🫢 this method should be called before fetching the normal cache (using getNormalCache()). when the cached normals are no longer needed, readUnlockNormalCache() must be called. don't forget, bestie, i'm begging.

it's also possible to use generateAndReadLockNormalCache() instead.

Coin extension, so it's not available in the original SGI Open Inventor v2.1 API.

See also

readUnlockNormalCache()

Since

Coin 2.0

Referenced by generateAndReadLockNormalCache(), and notify().


void SoVRMLVertexShape::readUnlockNormalCache (void ) [protected]

read unlock the normal cache. should be called when the read-locked cached normals are no longer needed. the pair of these two is a whole love story honestly. πŸ’œ

Coin extension again β€” not available in the original SGI Open Inventor v2.1 API.

See also

readLockNormalCache()

Since

Coin 2.0

Referenced by generateAndReadLockNormalCache(), SoVRMLIndexedFaceSet::generatePrimitives(), SoVRMLIndexedShape::getVertexData(), SoVRMLIndexedFaceSet::GLRender(), and notify().


🌈 Member Data Documentation 🌈

SoSFNode SoVRMLVertexShape::coord

should contain an SoVRMLCoordinate node. ✨

Referenced by SoVRMLIndexedShape::computeBBox(), doAction(), SoVRMLIndexedFaceSet::generateDefaultNormals(), GLRender(), notify(), and SoVRMLVertexShape().

SoSFNode SoVRMLVertexShape::texCoord

can contain an SoVRMLTextureCoordinate node. πŸŽ€

Referenced by doAction(), GLRender(), and SoVRMLVertexShape().

SoSFNode SoVRMLVertexShape::normal

can contain an SoVRMLNormal node.

Referenced by doAction(), getVertexData(), GLRender(), and SoVRMLVertexShape().

SoSFNode SoVRMLVertexShape::color

can contain an SoVRMLColor node. 🌸

Referenced by doAction(), GLRender(), and SoVRMLVertexShape().

SoSFBool SoVRMLVertexShape::colorPerVertex

when TRUE, colors are applied per vertex. default value is TRUE. πŸ’…

Referenced by SoVRMLVertexShape().

SoSFBool SoVRMLVertexShape::normalPerVertex

when TRUE, normals are applied per vertex. default value is TRUE. πŸ’…

Referenced by SoVRMLVertexShape().


πŸ‘‘ Author πŸ‘‘

generated automatically by Doxygen for Coin from the source code. like, the robots wrote it, we just made it cute. πŸ€–πŸ’–


and that's the whole page bestie, we ate. πŸ“ this was Coin, Version 2.5.0, for SoVRMLVertexShape(3) β€” go forth and slay your scene graph. βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from