SOLINEDETAIL(3iv)

🌸 NAME 🌸

ok so bestie, meet SoLineDetail β€” the lil class that stores detail information about vertex-based shapes made of line segments. it's giving backstage-pass energy for your lines πŸ’…


πŸ¦‹ INHERITS FROM πŸ¦‹

SoDetail > SoLineDetail

so it's a SoDetail girlie first, and everything SoDetail can do, she can do too. inheritance slay ✨


✨ SYNOPSIS ✨

include it like this, no cap:

#include <Inventor/details/SoLineDetail.h>

Methods from class SoLineDetail:

                     SoLineDetail()
virtual                ~SoLineDetail()
const SoPointDetail *  getPoint0() const
const SoPointDetail *  getPoint1() const
int32_t                getLineIndex() const
int32_t                getPartIndex() const
static SoType          getClassTypeId()

Methods from class SoDetail:

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

πŸ’– DESCRIPTION πŸ’–

ok so picture this: you got a vertex-based shape that's literally just line segments strung together. SoLineDetail is the class that holds the detail information about a point on one of those line segments. what's inside? the points at the ends of the segment, plus the index of the segment within the shape. that's it, that's the vibe. lowkey essential, highkey underrated 🫢


πŸŽ€ METHODS πŸŽ€

  • SoLineDetail() β€” the constructor ✨
  • virtual ~SoLineDetail() β€” the destructor πŸ’€
    • yeah these two are just constructor and destructor. they do exactly what it says on the tin, bestie.
  • const SoPointDetail * getPoint0() const β€” returns info about one of the two points that form the end vertices of the line segment 🌸
  • const SoPointDetail * getPoint1() const β€” same deal for the other end vertex πŸ’œ
    • both of these hand you the end-vertex points, and they come represented as an SoPointDetail. two points, one segment, iconic.
  • int32_t getLineIndex() const β€” returns the index of the line that the segment is part of, within a shape 🧚
    • like, say, the third line within an SoLineSet. iykyk.
  • int32_t getPartIndex() const β€” returns the index of the part containing the line segment, within the shape πŸ‘‘
    • heads up: usually the part index is the same as the line segment index β€” like the fifth segment overall within an SoLineSet. so don't be shocked when they match, that's normal fr fr.
  • static SoType getClassTypeId() β€” returns the type identifier for this class ⭐

🌈 SEE ALSO 🌈

  • SoDetail
  • SoPickedPoint
  • SoPrimitiveVertex
  • SoVertexShape

and that's the whole page, bestie πŸ₯° this one signs off as SoLineDetail(3IV)() β€” that's the source/version stamp at the bottom, and there's no date on it, so don't come for me. periodt πŸ’…πŸŽ€βœ¨