SoVRMLElevationGrid(3)
hey bestie π welcome to the SoVRMLElevationGrid(3) manual from Coin β¨. this class is literally the blueprint for elevation grids, and i'm about to spill all the tea. no cap, we're covering every single function, attribute, and vibe. let's go π«Ά
NAME β¨
SoVRMLElevationGrid β the class used to represent elevation grids. that's the whole point, bestie. π
SYNOPSIS πΈ
#include <Inventor/VRMLnodes/SoVRMLElevationGrid.h>
Inherits SoVRMLGeometry. so it's got that geometry lineage, iconic. π
Public Member Functions π
virtual SoType getTypeId (void) constSoVRMLElevationGrid (void)virtual void GLRender (SoGLRenderAction *action)virtual void rayPick (SoRayPickAction *action)virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
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) constvirtual void getBoundingBox (SoGetBoundingBoxAction *action)virtual void callback (SoCallbackAction *action)const SoBoundingBoxCache * getBoundingBoxCache (void) const
Public Member Functions inherited from SoNode π
void setOverride (const SbBool state)SbBool isOverride (void) constvoid setNodeType (const NodeType type)NodeType getNodeType (void) constvirtual SoNode * copy (SbBool copyconnections=FALSE) constvirtual void doAction (SoAction *action)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 pick (SoPickAction *action)virtual void write (SoWriteAction *action)virtual void audioRender (SoAudioRenderAction *action)virtual void grabEventsSetup (void)virtual void grabEventsCleanup (void)virtual void startNotify (void)SbUniqueId getNodeId (void) constvirtual void writeInstance (SoOutput *out)virtual SoNode * addToCopyDict (void) constvirtual SoFieldContainer * copyThroughConnection (void) const
Public Member Functions inherited from SoFieldContainer π
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *input)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)SbBool getIsBuiltIn (void) constvirtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
Public Member Functions inherited from SoBase π
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constβ returnsTRUEif the type of this object is either of the same type or inherited from type. πvirtual SbName getName (void) constvirtual 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) constSbBool 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)β sets up initialization for data common to all instances of this class, like submitting necessary info to the Coin type system. it's giving setup energy. β¨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)β sets up initialization for data common to all instances of this class, like submitting necessary info to the Coin type system. πstatic void initClasses (void)static SbUniqueId 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)β sets up initialization for data common to all instances of this class, like submitting necessary info to the Coin type system. πstatic SoType getClassTypeId (void)β this static method returns theSoTypeobject associated with objects of this class. iconic. πstatic void cleanupClass (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)β sets up initialization for data common to all instances of this class, like submitting necessary info to the Coin type system. πΈstatic SoType getClassTypeId (void)β this static method returns theSoTypeobject associated with objects of this class. π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 *input, SoBase *&base, SoType expectedtype)static void setInstancePrefix (const SbString &c)static void setTraceRefs (SbBool trace)static SbBool getTraceRefs (void)static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)static SbBool readRoute (SoInput *input)
Public Attributes π
SoSFBool ccwSoSFBool solidSoSFFloat creaseAngleSoSFInt32 zDimensionSoSFInt32 xDimensionSoSFFloat zSpacingSoSFFloat xSpacingSoMFFloat heightSoSFNode texCoordSoSFNode normalSoSFNode colorSoSFBool colorPerVertexSoSFBool normalPerVertex
Protected Member Functions π₯
virtual const SoFieldData * getFieldData (void) constvirtual ~SoVRMLElevationGrid (void)virtual void notify (SoNotList *list)virtual void generatePrimitives (SoAction *action)virtual void computeBBox (SoAction *action, SbBox3f &bbox, SbVec3f ¢er)
Protected Member Functions inherited from SoVRMLGeometry π¦
SoVRMLGeometry (void)virtual ~SoVRMLGeometry ()void setupShapeHints (SoState *state, const SbBool ccw, const SbBool solid)virtual SbBool shouldGLRender (SoGLRenderAction *action)virtual SoChildList * getChildren (void) const
π Protected Member Functions
Protected Member Functions inherited from SoShape
okay bestie, these are the family heirlooms β SoShape passed them down and SoVRMLElevationGrid gets to use them all, no cap π«Ά
SoShape(void)β the constructor, the birth of a shape β¨virtual ~SoShape()β the destructor, the goodbye kiss πfloat getComplexityValue(SoAction *action)β it's giving "how complex are we feeling today" πvoid beginSolidShape(SoGLRenderAction *action)β open up that solid shape momentvoid endSolidShape(SoGLRenderAction *action)β and close it, slayvoid GLRenderBoundingBox(SoGLRenderAction *action)β the bounding box gets its GL render glow-upSbBool shouldPrimitiveCount(SoGetPrimitiveCountAction *action)β should we be counting primitives rn? that's the question πSbBool shouldRayPick(SoRayPickAction *const action)β should we let the ray pick us? vibe check π¦void computeObjectSpaceRay(SoRayPickAction *const action)β math-ing the ray in object spacevoid computeObjectSpaceRay(SoRayPickAction *const action, const SbMatrix &matrix)β same energy, but now with a matrix, iconicvirtual SoDetail * createTriangleDetail(SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const SoPrimitiveVertex *v3, SoPickedPoint *pp)β building that triangle detail, three vertices deep πΊvirtual SoDetail * createLineSegmentDetail(SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, SoPickedPoint *pp)β line segment detail, two vertices, still cutevirtual SoDetail * createPointDetail(SoRayPickAction *action, const SoPrimitiveVertex *v, SoPickedPoint *pp)β one single vertex and it ate πvoid invokeTriangleCallbacks(SoAction *const action, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2, const SoPrimitiveVertex *const v3)β firing off the triangle callbacks, three at a timevoid invokeLineSegmentCallbacks(SoAction *const action, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2)β line segment callbacks, go offvoid invokePointCallbacks(SoAction *const action, const SoPrimitiveVertex *const v)β point callbacks, tiny but mighty β¨void beginShape(SoAction *const action, const TriangleShape shapetype, SoDetail *const detail=NULL)β start the shape, and heads up, thatdetaildefaults toNULLvoid shapeVertex(const SoPrimitiveVertex *const v)β one vertex of the shape, here she isvoid endShape(void)β wrap it up bestievoid generateVertex(SoPrimitiveVertex *const pv, const SbVec3f &point, const SbBool useTexFunc, const SoMultiTextureCoordinateElement *const tce, const float s, const float t, const SbVec3f &normal)β generating a vertex withsandt, the whole setupvoid generateVertex(SoPrimitiveVertex *const pv, const SbVec3f &point, const SbBool useTexFunc, const SoMultiTextureCoordinateElement *const tce, const float s, const float t, const float r, const SbVec3f &normal)β same but it also brought anralong, extra queen behavior πSbBool startVertexArray(SoGLRenderAction *action, const SoCoordinateElement *coords, const SbVec3f *pervertexnormals, const SbBool texpervertex, const SbBool colorpervertex)β kicking off the vertex array with per-vertex normals, tex, and colorvoid finishVertexArray(SoGLRenderAction *action, const SbBool vbo, const SbBool normpervertex, const SbBool texpervertex, const SbBool colorpervertex)β closing out the vertex array, vbo and all π
Protected Member Functions inherited from SoNode
SoNode(void)β constructor, the origin storyvirtual ~SoNode()β destructor, gone but not forgotten πvirtual SbBool readInstance(SoInput *in, unsigned short flags)β reading in an instance, flags included
Protected Member Functions inherited from SoFieldContainer
SoFieldContainer(void)β constructorvirtual ~SoFieldContainer()β destructor
Protected Member Functions inherited from SoBase
SoBase(void)β constructor, the blueprint of it allvirtual ~SoBase()β destructorvirtual void destroy(void)β destroy, periodt π₯SbBool hasMultipleWriteRefs(void) constβ do we have multiple write refs? asking for a friendSbBool writeHeader(SoOutput *out, SbBool isgroup, SbBool isengine) constβ writing that header withisgroupandisenginevoid writeFooter(SoOutput *out) constβ and the footer, balance β¨virtual const char * getFileFormatName(void) constβ name of the file format, plsvirtual SoNotRec createNotRec(void)β creating aSoNotRec, no notes
β¨ Static Protected Member Functions
static const SoFieldData ** getFieldDataPtr(void)β hand over the field data pointer, bestie
Static Protected Member Functions inherited from SoVRMLGeometry
static const SoFieldData ** getFieldDataPtr(void)β same one, inherited π
Static Protected Member Functions inherited from SoShape
static const SoFieldData ** getFieldDataPtr(void)β same again, the family trait
Static Protected Member Functions inherited from SoNode
static const SoFieldData ** getFieldDataPtr(void)β yes bestie, this one toostatic void setNextActionMethodIndex(int index)β set that next action method indexstatic int getNextActionMethodIndex(void)β get it back outstatic void incNextActionMethodIndex(void)β increment it, one at a time πstatic void setCompatibilityTypes(const SoType &nodetype, const uint32_t bitmask)β compatibility types, with anodetypeand abitmaskπ¦
Static Protected Member Functions inherited from SoBase
static uint32_t getCurrentWriteCounter(void)β the current write counter, returned as auint32_tstatic void staticDataLock(void)β lock the static data πstatic void staticDataUnlock(void)β unlock it, we're free π
πΈ Additional Inherited Members
Public Types inherited from SoShape
enum TriangleShape { TRIANGLE_STRIP, TRIANGLE_FAN, TRIANGLES, POLYGON, QUADS, QUAD_STRIP, POINTS, LINES, LINE_STRIP }β the whole triangle-shape lineup, iconic roster fr fr
Public Types inherited from SoNode
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, COIN_3_0 = 0x8000, INVENTOR_6_0 = 0x10000, COIN_4_0 = 0x20000 }β every node type with its hex value, a whole alphabet of vibes π
Protected Types inherited from SoBase
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }β just two flags,IS_ENGINEandIS_GROUP, short and sweet π
Protected Attributes inherited from SoNode
SbUniqueId uniqueIdβ her very ownuniqueId, main character energy β¨
Protected Attributes inherited from SoFieldContainer
SbBool isBuiltInβ is it built in? that's theisBuiltInflag π
Static Protected Attributes inherited from SoNode
static SbUniqueId nextUniqueId = 1β the next unique id, starting at1static int nextActionMethodIndex = 0β and the next action method index, starting at0π
π« DETAILED DESCRIPTION π«
okay bestie, so the SoVRMLElevationGrid class is the one that represents elevation grids ποΈβ¨ That's the whole vibe.
The detailed class documentation is taken verbatim from the VRML97 standard (ISO/IEC 14772-1:1997). It is copyright The Web3D Consortium, and is used by permission of the Consortium:
ElevationGrid {
eventIn MFFloat set_height
exposedField SFNode color NULL
exposedField SFNode normal NULL
exposedField SFNode texCoord NULL
field MFFloat height [] # (-inf,inf)
field SFBool ccw TRUE
field SFBool colorPerVertex TRUE
field SFFloat creaseAngle 0 # [0,inf]
field SFBool normalPerVertex TRUE
field SFBool solid TRUE
field SFInt32 xDimension 0 # [0,inf)
field SFFloat xSpacing 1.0 # (0,inf)
field SFInt32 zDimension 0 # [0,inf)
field SFFloat zSpacing 1.0 # (0,inf)
}
The ElevationGrid node specifies a uniform rectangular grid of varying height in the Y=0 plane of the local coordinate system. The geometry is described by a scalar array of height values that specify the height of a surface above each point of the grid. ποΈ
The xDimension and zDimension fields indicate the number of elements of the grid height array in the X and Z directions. Both xDimension and zDimension shall be greater than or equal to zero. If either the xDimension or the zDimension is less than two, the ElevationGrid contains no quadrilaterals. The vertex locations for the rectangles are defined by the height field and the xSpacing and zSpacing fields:
- The
heightfield is anxDimensionbyzDimensionarray of scalar values representing the height above the grid for each vertex. - The
xSpacingandzSpacingfields indicate the distance between vertices in the X and Z directions respectively, and shall be greater than zero.
Thus, the vertex corresponding to the point P[i, j] on the grid is placed at:
P[i,j].x = xSpacing Γ i
P[i,j].y = height[ i + j Γ xDimension]
P[i,j].z = zSpacing Γ j
where 0 <= i < xDimension and 0 <= j < zDimension, and
P[0,0] is height[0] units above/below the origin of the local
coordinate system
The set_height eventIn allows the height MFFloat field to be changed to support animated ElevationGrid nodes. β¨ (yes bestie, you can animate the terrain, it's giving main character energy)
The color field specifies per-vertex or per-quadrilateral colours for the ElevationGrid node depending on the value of colorPerVertex. If the color field is NULL, the ElevationGrid node is rendered with the overall attributes of the Shape node enclosing the ElevationGrid node (see 4.14, Lighting model). π¨
The colorPerVertex field determines whether colours specified in the color field are applied to each vertex or each quadrilateral of the ElevationGrid node. If colorPerVertex is FALSE and the color field is not NULL, the color field shall specify a Color node containing at least (xDimension-1)Γ(zDimension-1) colours; one for each quadrilateral, ordered as follows:
QuadColor[i,j] = Color[ i + j Γ (xDimension-1)]
where 0 <= i < xDimension-1 and 0 <= j < zDimension-1, and
QuadColor[i,j] is the colour for the quadrilateral defined by
height[i+jΓxDimension], height[(i+1)+jΓxDimension],
height[(i+1)+(j+1)ΓxDimension] and height[i+(j+1)ΓxDimension]
If colorPerVertex is TRUE and the color field is not NULL, the color field shall specify a Color node containing at least xDimension Γ zDimension colours, one for each vertex, ordered as follows:
VertexColor[i,j] = Color[ i + j Γ xDimension]
where 0 <= i < xDimension and 0 <= j < zDimension, and
VertexColor[i,j] is the colour for the vertex defined by
height[i+jΓxDimension]
The normal field specifies per-vertex or per-quadrilateral normals for the ElevationGrid node. If the normal field is NULL, the browser shall automatically generate normals, using the creaseAngle field to determine if and how normals are smoothed across the surface (see 4.6.3.5, Crease angle field). π
The normalPerVertex field determines whether normals are applied to each vertex or each quadrilateral of the ElevationGrid node depending on the value of normalPerVertex. If normalPerVertex is FALSE and the normal node is not NULL, the normal field shall specify a Normal node containing at least (xDimension-1)Γ(zDimension-1) normals; one for each quadrilateral, ordered as follows:
QuadNormal[i,j] = Normal[ i + j Γ (xDimension-1)]
where 0 <= i < xDimension-1 and 0 <= j < zDimension-1, and
QuadNormal[i,j] is the normal for the quadrilateral
defined by height[i+jΓxDimension], height[(i+1)+jΓxDimension],
height[(i+1)+(j+1)ΓxDimension] and height[i+(j+1)ΓxDimension]
If normalPerVertex is TRUE and the normal field is not NULL, the normal field shall specify a Normal node containing at least xDimension Γ zDimension normals; one for each vertex, ordered as follows:
VertexNormal[i,j] = Normal[ i + j Γ xDimension]
where 0 <= i < xDimension and 0 <= j < zDimension, and
VertexNormal[i,j] is the normal for the vertex defined by
height[i+jΓxDimension]
The texCoord field specifies per-vertex texture coordinates for the ElevationGrid node. If texCoord is NULL, default texture coordinates are applied to the geometry. The default texture coordinates range from (0,0) at the first vertex to (1,1) at the last vertex. The S texture coordinate is aligned with the positive X-axis, and the T texture coordinate with positive Z-axis. If texCoord is not NULL, it shall specify a TextureCoordinate node containing at least (xDimension)Γ(zDimension) texture coordinates; one for each vertex, ordered as follows: π§΅
VertexTexCoord[i,j] = TextureCoordinate[ i + j Γ xDimension]
where 0 <= i < xDimension and 0 <= j < zDimension, and
VertexTexCoord[i,j] is the texture coordinate for the vertex
defined by height[i+jΓxDimension]
The ccw, solid, and creaseAngle fields are described in 4.6.3, Shapes and geometry. By default, the quadrilaterals are defined with a counterclockwise ordering. Hence, the Y-component of the normal is positive. Setting the ccw field to FALSE reverses the normal direction. Backface culling is enabled when the solid field is TRUE. See Figure 6.5 for a depiction of the ElevationGrid node. π₯
Figure 6.5
π Constructor & Destructor Documentation π
SoVRMLElevationGrid::SoVRMLElevationGrid (void )
Constructor. π£ (the birth of your grid, iconic)
SoVRMLElevationGrid::~SoVRMLElevationGrid (void ) [protected], [virtual]
Destructor. π (it's over bestie, rip)
π Member Function Documentation π
SoType SoVRMLElevationGrid::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. π·οΈ
SoType SoVRMLElevationGrid::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.
Reimplemented from SoVRMLGeometry.
const SoFieldData ** SoVRMLElevationGrid::getFieldDataPtr (void ) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π
Returns the SoFieldData class which holds information about fields in this node.
const SoFieldData * SoVRMLElevationGrid::getFieldData (void ) const [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL. π«Ά
Reimplemented from SoVRMLGeometry.
void SoVRMLElevationGrid::initClass (void ) [static]
(yep, that's the whole thing, no notes π )
void SoVRMLElevationGrid::GLRender (SoGLRenderAction * action) [virtual]
Action method for the SoGLRenderAction. β¨
This is called during rendering traversals. Nodes influencing the rendering state in any way or want to throw geometry primitives at OpenGL override this method.
Reimplemented from SoShape.
void SoVRMLElevationGrid::rayPick (SoRayPickAction * action) [virtual]
Calculates picked point based on primitives generated by subclasses. π―
Reimplemented from SoShape.
void SoVRMLElevationGrid::getPrimitiveCount (SoGetPrimitiveCountAction * action) [virtual]
Action method for the SoGetPrimitiveCountAction. π’
Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action.
Nodes influencing how geometry nodes calculate their primitive count also override this method to change the relevant state variables.
Reimplemented from SoShape.
void SoVRMLElevationGrid::notify (SoNotList * l) [protected], [virtual]
Notifies all auditors for this instance when changes are made. π£
Reimplemented from SoVRMLGeometry.
void SoVRMLElevationGrid::generatePrimitives (SoAction * action) [protected], [virtual]
The method implements action behavior for shape nodes for SoCallbackAction. It is invoked from SoShape::callback(). (Subclasses should not override SoNode::callback().) π«
The subclass implementations uses the convenience methods SoShape::beginShape(), SoShape::shapeVertex(), and SoShape::endShape(), with SoDetail instances, to pass the primitives making up the shape back to the caller.
Implements SoShape.
void SoVRMLElevationGrid::computeBBox (SoAction * action, SbBox3f & box, SbVec3f & center) [protected], [virtual]
Implemented by SoShape subclasses to let the SoShape superclass know the exact size and weighted center point of the shape's bounding box. π¦
The bounding box and center point should be calculated and returned in the local coordinate system.
The method implements action behavior for shape nodes for SoGetBoundingBoxAction. It is invoked from SoShape::getBoundingBox(). (Subclasses should not override SoNode::getBoundingBox().)
The box parameter sent in is guaranteed to be an empty box, while center is undefined upon function entry. πΈ
Implements SoShape.
π Member Data Documentation π
okay bestie, this is the part where we meet the actual fields β the member variables you poke at to make your elevation grid do the thing. every single one, no skipping, we're being thorough girlies today β¨
SoSFBool ccwβ tells the scene whether the triangles it generates are counterclockwise. default isTRUE. lowkey iconic behavior tbh.SoSFBool solidβ decides if backface culling should happen or not. default isTRUE. so yeah, cull those backfaces, slay πSoSFFloat creaseAngleβ this one holds the crease angle used for normal calculation. that's the whole vibe. that's it.SoSFInt32 zDimensionβ the number of points along the z dimension. count them, bestie πSoSFInt32 xDimensionβ the number of points along the x dimension. same energy, other axis.SoSFFloat zSpacingβ how far apart the points sit in the z dimension. default is1.0.SoSFFloat xSpacingβ how far apart the points sit in the x dimension. default is1.0too. twins fr fr π«ΆSoMFFloat heightβ this is where the array of height values lives. all of them. the whole terrain, right there.SoSFNode texCoordβ can hold anSoVRMLTextureCoordinatenode, and that node carries one texture coordinate per grid point. per point!! precise queen πSoSFNode normalβ can hold anSoVRMLTextureCoordinatenode that contains normals for the grid. yes, that's literally what the docs say, we don't editorialize, we just report πSoSFNode colorβ can hold anSoVRMLColornode, which contains the grid colors. colorful moment, we love to see it πSoSFBool colorPerVertexβ says whether colors should be applied per vertex. default isTRUE.SoSFBool normalPerVertexβ says whether normals should be applied per vertex. default isTRUE. consistent queen β¨
and that's the whole roster bestie, every last field accounted for, not a single one left behind π¦
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. yes, a robot wrote it, and honestly? it ate. not a single typo. we stan an automated king π
and that's a wrap on SoVRMLElevationGrid(3)!! this page came from Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00, and the source/version/date footer is right there at the bottom of the page where it's always lived β go peek at it, it's giving official π
thanks for reading all four parts bestie, you're literally a Unix scholar now, no cap, go build something gorgeous with your elevation grid πΈπ¦π
π¦ 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