SoIntersectingPrimitive(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

✨ SoIntersectingPrimitive ✨

okay bestie, welcome to SoIntersectingPrimitive(3) from the Library Functions Manual πŸ’– this is a lil struct page and it's lowkey iconic, let's get into it 🫢


🌸 NAME 🌸

SoIntersectingPrimitive β€” it's a struct, and it's holding collision information πŸ’₯ that's literally the whole job, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

#include <Inventor/collision/SoIntersectionDetectionAction.h>

✨ Public Types ✨

so there's this enum, and it's giving choices:

  • enum PrimitiveType { SEGMENT = 2, LINE_SEGMENT = 2, TRIANGLE = 3 }

note that SEGMENT and LINE_SEGMENT are both 2 β€” they're the same value, that's on purpose, not a typo, iykyk πŸ‘‘

πŸ’… Public Attributes πŸ’…

the actual data slots, periodt:

  • SoPath * path
  • enum SoIntersectingPrimitive::PrimitiveType type
  • SbVec3f vertex [3]
  • SbVec3f xf_vertex [3]

πŸ¦‹ Detailed Description πŸ¦‹

so. struct with collision information. that's the vibe 🌈

this struct gets passed to the collision callback that your application programmer registered, and it's carrying the tea about which primitives are intersecting each other πŸ‘€ it's literally the little messenger of "bestie these two things are touching" πŸ’«


🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. πŸ€–βœ¨ (yes the robots wrote it, and honestly? they ate.)


and that's a wrap, bestie πŸŽ€ this page came from Coin, Version 3.1.3 β€” mwah, slay, bye πŸ’œπŸ«Ά

πŸ“¦ where this page comes from