SbOctTreeFuncs(3)
π 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
- 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