SOCUBEDETAIL(3iv)

πŸ’– SoCubeDetail β€” the vibe check on your cube hits πŸ’–

okay so bestie, this is SoCubeDetail(3IV), a lil' page from the 3IV manual, and it's genuinely one of the cutest lil' detail classes out there. no cap. it's giving "I know exactly which face of the cube you touched" energy and honestly? iconic. πŸŽ€


πŸ¦‹ NAME

SoCubeDetail β€” stores detail information about the SoCube node. periodt.


🌸 INHERITS FROM

SoDetail > SoCubeDetail

so it's a SoDetail at heart, but with cube-specific main character energy. πŸ’…


✨ SYNOPSIS

#include <Inventor/details/SoCubeDetail.h>

Methods from class SoCubeDetail:

                     SoCubeDetail()
virtual             ~SoCubeDetail()
int                 getPart() const
static SoType       getClassTypeId()

Methods from class SoDetail:

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

🫢 DESCRIPTION

This class contains detail information about a point on a cube. It contains the part of the cube that was hit. 🧊

like... you clicked on a cube, and this lil' guy is here to tell you which face you hit. no guessing, no "uhhh was that the top or the bottom", just facts. obsessed.

Part values are as follows:

  • 0 β€” Front
  • 1 β€” Back
  • 2 β€” Left
  • 3 β€” Right
  • 4 β€” Top
  • 5 β€” Bottom
six faces, six numbers, zero ambiguity. the way that 0 is Front and not Back? lowkey unhinged but we respect it. πŸ™ˆ

πŸ‘‘ METHODS

  • SoCubeDetail()
  • virtual ~SoCubeDetail()

Constructor and destructor. it's born, it does its job, it says bye. πŸ’–

  • int getPart() const

Returns the part in the detail. this is the method, fr fr β€” it hands you back the number that tells you which face got hit.

  • static SoType getClassTypeId()

Returns type identifier for this class. slay.


πŸ”₯ SEE ALSO

SoCube, SoDetail, SoPickedPoint, SoPrimitiveVertex


okay bestie that's the whole page, you ate it up πŸ’…βœ¨ this was SoCubeDetail(3IV)() β€” that's the source, the version, and the date, all wrapped up in the footer where it belongs. go forth and identify your cube faces. you're doing amazing sweetie. πŸ¦‹πŸŒΈπŸ’œ