SbOctTreeFuncs(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– SbOctTreeFuncs(3) πŸ’–

okay bestie, so this is a page from the Coin manual β€” it's the SbOctTreeFuncs page, manual section 3. it's short, it's sweet, and it's lowkey the glue that makes SbOctTree actually know what's inside stuff. let's get into it 🫢


✨ NAME ✨

SbOctTreeFuncs β€” literally just the name, that's it, that's the whole vibe. it's a struct full of callback function pointers. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta pull it in:

#include <Inventor/SbOctTree.h>

πŸŽ€ Public Attributes πŸŽ€

these are the four function pointers living inside the struct, fr fr:

SbBool (*ptinsidefunc)(void *const item, const SbVec3f &pt)
SbBool (*insideboxfunc)(void *const item, const SbBox3f &box)
SbBool (*insidespherefunc)(void *const item, const SbSphere &sphere)
SbBool (*insideplanesfunc)(void *const item, const SbPlane *const planes, const int numplanes)

πŸ¦‹ Detailed Description πŸ¦‹

okay so the SbOctTreeFuncs struct is the thing you use to hand over your callback functions β€” the ones that do the actual work of dealing with items inside an SbOctTree. it's giving "you bring the logic, i'll bring the tree". ✨

🚨 the ONE function pointer you absolutely must set up is insideboxfunc. no cap. that one's mandatory.

the other three? they're optional β€” but you must set them if you plan on using the corresponding find methods in SbOctTree. so like, if you wanna call the sphere-finding method, insidespherefunc better be set. if it's not, that's on you bestie 😭


πŸ‘‘ Member Data Documentation πŸ‘‘

πŸ’œ SbBool (* SbOctTreeFuncs::ptinsidefunc) (void *const item, const SbVec3f &pt)

should return whether a point is inside item. that's the whole job. point in item? yes or no. iconic. ⭐

πŸ“ SbBool (* SbOctTreeFuncs::insideboxfunc) (void *const item, const SbBox3f &box)

should return whether item is either fully or partially inside a box. fully counts. partially counts. both slay. 🌸

🧚 SbBool (* SbOctTreeFuncs::insidespherefunc) (void *const item, const SbSphere &sphere)

should return whether item is either fully or partially inside a sphere. same energy as the box one, just rounder πŸ’«

🌈 SbBool (* SbOctTreeFuncs::insideplanesfunc) (void *const item, const SbPlane *const planes, const int numplanes)

should return whether item is either fully or partially inside a set of planes. yes, a whole set of them β€” that's what planes and numplanes are for, bestie 🫢


πŸŽ€ Author πŸŽ€

generated automatically by Doxygen for Coin, straight from the source code. not me being autogenerated and still serving πŸ’…


🌟 and that's the page!! tysm for reading, you're doing amazing, drink some water πŸ’–

Version 4.0.10 β€” Thu Jun 25 2026 00:00:00 β€” mwah, bye bestie! πŸ¦‹βœ¨

πŸ“¦ where this page comes from