SBCYLINDER(3iv)
π SbCylinder β the manual page, but make it make sense π
okay so bestie, welcome to the SbCylinder page from the 3IV manual. yes, 3IV. that's the manual section. we're in the Inventor-verse today and it's genuinely so cozy here. grab a strawberry π and let's get into it.
π NAME π
SbCylinder</purpose> β a whole entire class for representing a cylinder π₯«β¨
like. that's it. that's the job. a cylinder. and honestly? iconic.
𧬠INHERITS FROM π§¬
SbCylinder
yes bestie. it inherits from SbCylinder. it's giving self-made, self-inherited, main character energy π. that's literally what the page says, so that's what I'm telling you. no notes. periodt.
π SYNOPSIS π
so you wanna use it? you gotta pull in the header first:
#include <Inventor/SbLinear.h>
then here's every single method hanging out in this class, in order, exactly as listed:
SbCylinder()
SbCylinder(const SbLine &a, float r)
void setValue(const SbLine &a, float r)
void setAxis(const SbLine &a)
void setRadius(float r)
const SbLine & getAxis() const
float getRadius() const
SbBool intersect(const SbLine &l, SbVec3f &intersection)
const
SbBool intersect(const SbLine &l, SbVec3f &enter, SbVec3f
&exit) const
look at that little overloaded intersect duo. obsessed. π
π¦ DESCRIPTION π¦
SbCylinder is a simple cylinder datatype. that's the whole vibe. it just... is a cylinder. it defines one. π§
and the way that the Inventor toolkit uses it?? for arguments and return values. yes bestie, it's a supporting character that carries the plot. we love a reliable sidekick π«Ά
β¨ METHODS β¨
the constructors π
SbCylinder()SbCylinder(const SbLine &a, float r)
two constructors, bestie. and here's the thing β one takes an axis and radius. that's the one with the arguments. the other one just shows up with nothing and we respect that too π
setValue πΈ
void setValue(const SbLine &a, float r)β change the axis and the radius. both of them. together. matching set energy π
setAxis / setRadius π
void setAxis(const SbLine &a)void setRadius(float r)
set just the axis, or just the radius. pick one, queen, you don't have to do both.
getAxis / getRadius β
const SbLine & getAxis() constfloat getRadius() const
return the axis and the radius. the classic getter duo. no cap, they just hand you the info.
intersect π₯
SbBool intersect(const SbLine &l, SbVec3f &intersection) constSbBool intersect(const SbLine &l, SbVec3f &enter, SbVec3f &exit) const
intersect a line and a cylinder, returning TRUE if there is an intersection. that's the whole deal β one overload gives you the single intersection, the other gives you enter and exit like a little arrival-and-departure moment π¦β¨
not me being emotionally invested in a boolean return value. it's TRUE or it's nothing, bestie. high stakes.
π SEE ALSO π
go read these next, they're all in the same friend group:
SbVec3fSbLineSbPlaneSbSphereSoCylinder
that's the whole page, and yes, I read all of it. every option, every signature, every vibe. π
so this has been the SbCylinder page, manual section 3IV, and the footer just says SbCylinder(3IV)() β no date, no version, nothing extra, she's mysterious like that π stay hydrated, go intersect something responsibly, mwah π
πβ
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms