SbOctTreeFuncs(3)

๐Ÿ“ฆ version 3.1.3, in fedora 43, fedora 44

๐Ÿ’– SbOctTreeFuncs ๐Ÿ’–

okay bestie, buckle up, this one is from section 3 of the manual (library functions, the good stuff) and it's genuinely so chill. it's a lil struct that holds a bunch of callback function pointers, and it's how you tell an SbOctTree how to vibe-check its items. no cap. ๐Ÿซถ


โœจ NAME โœจ

SbOctTreeFuncs โ€” the callback squad for your oct tree ๐ŸŒณ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include <Inventor/SbOctTree.h>

๐Ÿ’œ Public Attributes ๐Ÿ’œ

  • SbBool(* ptinsidefunc )(void *const item, const SbVec3f &pt) โ€” the point-in-item checker ๐ŸŽฏ
  • SbBool(* insideboxfunc )(void *const item, const SbBox3f &box) โ€” the box checker ๐Ÿ“ฆ
  • SbBool(* insidespherefunc )(void *const item, const SbSphere &sphere) โ€” the sphere checker ๐Ÿ”ฎ
  • SbBool(* insideplanesfunc )(void *const item, const SbPlane *const planes, const int numplanes) โ€” the planes checker โœˆ๏ธ

๐Ÿ‘‘ DETAILED DESCRIPTION ๐Ÿ‘‘

so like. the SbOctTreeFuncs struct is literally just a lil container for callback functions, and its whole job is to let you work with items inside an SbOctTree. that's it. that's the gig. ๐Ÿ’…

here's the tea though, and this part is important: the only function pointer you're required to set up is insideboxfunc. the others? you set those if โ€” and only if โ€” you're actually planning to use the matching find methods over in SbOctTree. so don't set them for fun, set them because you need them. iykyk. ๐ŸŽ€


๐Ÿฆ‹ MEMBER DATA DOCUMENTATION ๐Ÿฆ‹

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

should return whether a point is inside item. that's the whole assignment bestie, just answer the question: is this point in there or not? โญ

๐Ÿ’ซ SbBool(* SbOctTreeFuncs::insideboxfunc) (void *const item, const SbBox3f &box)

should return whether item is either fully or partly inside a box. so partial credit totally counts here, it's not a strict all-or-nothing situation ๐Ÿ“ฆโœจ

๐Ÿ’ซ SbBool(* SbOctTreeFuncs::insidespherefunc) (void *const item, const SbSphere &sphere)

should return whether item is either fully or partly inside a sphere. same deal as the box one โ€” partial counts ๐Ÿ”ฎ

๐Ÿ’ซ SbBool(* SbOctTreeFuncs::insideplanesfunc) (void *const item, const SbPlane *const planes, const int numplanes)

should return whether item is either fully or partly inside a set of planes. yes, a whole set of them, that's what planes and numplanes are for. go off ๐Ÿ›ฉ๏ธ


๐ŸŽ€ AUTHOR ๐ŸŽ€

Generated automatically by Doxygen for Coin from the source code. (not a human, not a bestie, just doxygen doing its lil thing ๐Ÿ™ˆ)


okay that's the whole page, you ate that fr fr. this was Coin, Version 3.1.3, and yes this is the very last line so we're done here. mwah ๐Ÿ’‹๐ŸŒธ

๐Ÿ“ฆ where this page comes from