SoIntersectingPrimitive(3)

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

πŸ’₯ SoIntersectingPrimitive(3) πŸ’₯

okay bestie, welcome to the Library Functions Manual β€” this is the SoIntersectingPrimitive page and it's literally the lil struct that shows up when two things bonk into each other 🫢


✨ NAME ✨

SoIntersectingPrimitive β€” it's giving struct with collision information πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta pull it in like this:

#include <Inventor/collision/SoIntersectionDetectionAction.h>

πŸŽ€ Public Types πŸŽ€

  • enum PrimitiveType { SEGMENT = 2, LINE_SEGMENT = 2, TRIANGLE = 3 } β€” the lil menu of shapes this struct knows how to talk about, no cap

πŸ¦‹ Public Attributes πŸ¦‹

  • SoPath * path β€” the path, bestie, it's right there
  • enum SoIntersectingPrimitive::PrimitiveType type β€” which kind of primitive we're dealing with (see the enum above πŸ‘†)
  • SbVec3f vertex [3] β€” three whole vertices, in the original coordinate space
  • SbVec3f xf_vertex [3] β€” same three vertices but transformed, iykyk ✨

πŸ’– Detailed Description πŸ’–

so like, this is a struct with collision information. periodt.

This struct gets passed to the collision callback that the application programmer registered. It's basically the tea β˜• β€” it holds all the info about which primitives are intersecting each other. main character energy fr fr 🌟


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. not me getting auto-generated 😭 iconic behavior honestly


okay that's the whole page, bestie!! πŸŽ€ this was Coin Version 2.5.0 of the manual, and yeah, we're literally at SoIntersectingPrimitive(3) β€” slay, go collide some primitives responsibly πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from