SOPOINTDETAIL(3iv)

πŸ’– SoPointDetail β€” the manual page, but make it cute

okay so bestie, welcome to SoPointDetail(3IV), which is the manual page for this lil' class. grab a strawberry πŸ“ and let's go, because this one is short but it is load-bearing, trust.


✨ NAME ✨

SoPointDetail</puruple> β€” stores detail information about vertex-based shapes made of points

like. that's it. that's the job. it holds the ✨deets✨ about a point. πŸ’…


🌸 INHERITS FROM 🌸

SoDetail > SoPointDetail

so it's a SoDetail girlie first and a point-detail girlie second. the lineage is real, the family tree is slaying. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

first of all, the include. no cap, you need it:

#include <Inventor/details/SoPointDetail.h>

then here's everything it brings to the table, split by which ancestor it came from πŸ’œ

Methods from class SoPointDetail:

                     SoPointDetail()
virtual              ~SoPointDetail()
int32_t              getCoordinateIndex() const
int32_t              getMaterialIndex() const
int32_t              getNormalIndex() const
int32_t              getTextureCoordIndex() const

Methods from class SoDetail:

SoDetail *           copy() const
static SoType        getClassTypeId()
virtual SoType       getTypeId() const
SbBool               isOfType(SoType type) const

periodt. that's the whole roster. ✨


πŸŽ€ DESCRIPTION πŸŽ€

so SoPointDetail contains detail information about a point in a vertex-based shape made of points. it's the class that gets called in when you need the receipts πŸ“ about an intersection with β€” or about primitives generated by β€” a set of points.

and it's not just a solo act! it also gets used by SoFaceDetail and SoLineDetail to return information about the vertices of faces and line segments. so it's like, the shared detail-source for the whole friend group. iconic behavior honestly. 🫢


πŸ’… METHODS πŸ’…

SoPointDetail()

virtual ~SoPointDetail()

constructor and destructor, bestie. the hello and the bye. πŸ‘‹


int32_t getCoordinateIndex() const

returns the index of the point within the relevant coordinate node. that's the vibe check on where the point lives. πŸ“


int32_t getMaterialIndex() const

returns the index of the material for the point within the relevant material node. it's giving "what's the fit" energy. πŸŽ€


int32_t getNormalIndex() const

returns the index of the surface normal at the point within the relevant normal node.

⚠️ okay important, don't skip this: note that if normals have been generated for a shape, the index may not be into an existing normal node. so don't just assume, bestie. read the note. 😭

int32_t getTextureCoordIndex() const

returns the index of the texture coordinates for the point within the relevant normal node.

⚠️ and same energy here: note that if texture coordinates have been generated for a shape, the index may not be into an existing texture coordinate node. lowkey a trap if you don't read the fine print. πŸ’€

🌈 SEE ALSO 🌈

go read these next, they're all in the group chat:

  • SoDetail
  • SoPickedPoint
  • SoPrimitiveVertex
  • SoVertexShape
  • SoFaceDetail
  • SoLineDetail

and that's the whole page!! 🧚 the footer says it's SoPointDetail(3IV)(), so like, that's the source/version and the date situation β€” no extra date given, just the classic manual name-and-empty-parens combo. slay. now go index some points, bestie. πŸ’–βœ¨πŸŒΈ