SoPointDetail(3)
π SoPointDetail β from the Library Functions Manual β¨
okay bestie, sit down, hydrate, and let me tell you about SoPointDetail π
πΈ NAME πΈ
SoPointDetail β the class that's literally just here to store detailed info for one single 3D point. one point. that's her whole job. and she does it flawlessly π
β¨ SYNOPSIS β¨
#include <Inventor/details/SoPointDetail.h>
Inherits SoDetail.
π¦ Public Member Functions π¦
virtual SoType getTypeId (void) const
SoPointDetail (void)
virtual ~SoPointDetail ()
virtual SoDetail * copy (void) const
int getCoordinateIndex (void) const
int getMaterialIndex (void) const
int getNormalIndex (void) const
int getTextureCoordIndex (void) const
void setCoordinateIndex (const int idx)
void setMaterialIndex (const int idx)
void setNormalIndex (const int idx)
void setTextureCoordIndex (const int idx)
π Public Member Functions inherited from SoDetail
virtual ~SoDetail ()
SbBool isOfType (const SoType type) const
π Static Public Member Functions π
static SoType getClassTypeId (void)
static void cleanupClass (void)
static void initClass (void)
π Static Public Member Functions inherited from SoDetail
static void initClass (void)
static void initClasses (void)
static SoType getClassTypeId (void)
π Additional Inherited Members π
π Protected Member Functions inherited from SoDetail
SoDetail (void)
π Detailed Description π
SoPointDetail is for storing detailed information for a single 3D point. that's the vibe. that's the assignment. she ate π
Instances of this class get used for, like, a bunch of things β among them storing info about the vertices of lines and polygons after pick operations, and storing info that gets handed back to tessellation callbacks. she's popular, she's booked, she's everywhere π¦
What's actually inside her? Indices into the vertex coordinate sets, plus indices into material, texture and normal coordinates for the point. so basically a little index girlie with range π
π Constructor & Destructor Documentation π
β¨ SoPointDetail::SoPointDetail (void )
Sets up an empty detail instance β and by "empty" I mean all indices are equal to 0. blank slate, fresh start, main character origin story πΈ
β¨ SoPointDetail::~SoPointDetail () [virtual]
Destructor. she's logging off, no cap π
π Member Function Documentation π
β¨ SoType SoPointDetail::getTypeId (void ) const [virtual]
Returns the type identification of a detail derived from a class inheriting SoDetail. This is what you use for run-time type checking and "downward" casting. iykyk π₯
Usage example:
void fuhbear(SoDetail * detail)
{
if (detail->getTypeId() == SoFaceDetail::getClassTypeId()) {
// safe downward cast, know the type
SoFaceDetail * facedetail = (SoFaceDetail *)detail;
}
return; // ignore if not a SoFaceDetail
}
For application programmers wanting to extend the library with new detail classes: this method needs to be overridden in all subclasses. not optional bestie, it's giving mandatory π«Ά This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through Inventor/nodes/SoSubDetail.h: SO_DETAIL_SOURCE and SO_DETAIL_INIT_CLASS.
Implements SoDetail.
β¨ SoDetail * SoPointDetail::copy (void ) const [virtual]
Return a deep copy of ourself. clone her, she's iconic π
β οΈ Note that if the Coin library has been built as a DLL under Microsoft Windows and you use this method from application code, you must make sure that both the Coin DLL and the application executable is using the same instance of a C Run-Time (CRT) library. Otherwise, you will get memory heap corruption upon deallocating the returned instances, eventually leading to mysterious crashes. π no fr fr this one is not a drill, respect the CRT rule.
Implements SoDetail.
β¨ int SoPointDetail::getCoordinateIndex (void ) const
Returns the index into the coordinate set for the point's 3D coordinates β¨
β¨ int SoPointDetail::getMaterialIndex (void ) const
Returns the point's index into the set of materials π¨
β¨ int SoPointDetail::getNormalIndex (void ) const
Returns the point's index into the set of normals π
β¨ int SoPointDetail::getTextureCoordIndex (void ) const
Returns the point's index into the set of texture coordinates π§
β¨ void SoPointDetail::setCoordinateIndex (const int idx)
Used by client code for initializing the point detail instance. you're setting it, bestie, own it π
β¨ void SoPointDetail::setMaterialIndex (const int idx)
Used by client code for initializing the point detail instance. same energy, different index π
β¨ void SoPointDetail::setNormalIndex (const int idx)
Used by client code for initializing the point detail instance. normal behaviour, actually π
β¨ void SoPointDetail::setTextureCoordIndex (const int idx)
Used by client code for initializing the point detail instance. last one, and she slayed β
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code. not a human author, just a very efficient robot doing her thing π€π
and that's the whole page, bestie β thanks for reading all the way to the end, you're a real one π this iconic little manual page ships with Coin, Version 3.1.3, and yes, the page itself is called SoPointDetail(3). go forth and index some points β¨π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms