SoCubeDetail(3)
β¨ SoCubeDetail π β like, the manual page, bestie
okay so this is SoCubeDetail(3), part of the Coin manual, and it's genuinely one of the cutest little detail classes you'll ever meet. no cap.
πΈ NAME πΈ
SoCubeDetail β the class that holds all the tea about which part of a SoCube shape got hit. π
π SYNOPSIS π
#include <Inventor/details/SoCubeDetail.h>
It inherits from SoDetail, periodt. That's the whole family tree, she's a nepo baby but in a good way. π
π«Ά Public Member Functions π«Ά
virtual SoType getTypeId (void) constSoCubeDetail (void)virtual ~SoCubeDetail ()virtual SoDetail * copy (void) constvoid setPart (const int part)int getPart (void) const
π 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)
π¦ Protected Attributes π¦
int part
π Additional Inherited Members π
Protected Member Functions inherited from SoDetail
SoDetail (void)
π Detailed Description π
So like, the SoCubeDetail class contains information about the parts of a SoCube shape. that's it. that's her whole job and she does it flawlessly.
You'll find instances of this class storing info about hit points on cone geometry after pick operations, and also storing info that gets handed back to tessellation callbacks. yes, the original docs literally say "cone geometry" here even though this is the cube detail class β we don't make the rules, we just report them faithfully. π
The part indices run from 0 to 5, ordered like this:
[ front, back, left, right, top, bottom ]
six parts, six vibes, all accounted for. π₯
See also
SoCube, SoRayPickAction, SoCallbackAction β the friend group. go say hi.
π§ Constructor & Destructor Documentation π§
SoCubeDetail::SoCubeDetail (void )
Constructor. she's born. πΌβ¨
SoCubeDetail::~SoCubeDetail () [virtual]
Destructor. she's leaving, but gracefully, and she's virtual about it. π
π Member Function Documentation π
SoType SoCubeDetail::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoDetail. This is what you use for runtime type checking and "downward" casting β iykyk. π«Ά
Implements SoDetail.
SoType SoCubeDetail::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. static. class-level. no instance needed, she doesn't need a plus-one. β¨
void SoCubeDetail::cleanupClass (void ) [inline], [static]
This static method cleans up static data of the class. tidying up, closing tabs, deleting the screenshots. π
SoDetail * SoCubeDetail::copy (void ) const [virtual]
Return a deep copy of ourself. not a shallow one, a deep one β she's giving full clone energy, no shared references, no situationships. π
β οΈ okay listen, this note is important: 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 are 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. not mysterious in a cute way. mysterious in a "why is my program dead" way. π be careful fr fr.
Implements SoDetail.
void SoCubeDetail::setPart (const int partarg)
Set the part of a cube which was selected. A cube has, of course, six different conceptual parts β its sides. six. not five. not seven. six. π²
int SoCubeDetail::getPart (void ) const
Returns selected cube part. that's it, that's the function, she's simple and she's iconic. π
π Member Data Documentation π
int SoCubeDetail::part [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. so like, mind your business bestie, it's not for you. π
π Author π
Generated automatically by Doxygen for Coin from the source code. the robots wrote it, we just added the sparkle. β¨
Version 4.0.10 β Thu Jun 25 2026 00:00:00 π¦
and that's the whole page, bestie!! you understood it, you ate, no crumbs left. go forth and pick some cubes. π ππ
π¦ 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