SBPLANE(3iv)
π SbPlane β oriented plane in 3D π
okay bestie, we're doing SbPlane(3IV) today, the manual page, and honestly? it's giving geometry royalty π
πΈ INHERITS FROM πΈ
SbPlane
(yes she's her own thing, no parent class drama, she's independent like that π )
β¨ SYNOPSIS β¨
first things first, you gotta let her in:
#include <Inventor/SbLinear.h>
then it's the methods from class SbPlane, and here's the whole roster, no gatekeeping:
SbPlane()
SbPlane(const SbVec3f &p0, const SbVec3f &p1, const
SbVec3f &p2)
SbPlane(const SbVec3f &normal, float distance)
SbPlane(const SbVec3f &normal, const SbVec3f &point)
void offset(float d)
SbBool intersect(const SbLine &l, SbVec3f &intersection)
const
void transform(const SbMatrix &matrix)
SbBool isInHalfSpace(const SbVec3f &point) const
const SbVec3f & getNormal() const
float getDistanceFromOrigin() const
int operator ==(const SbPlane &p1, const SbPlane &p2)
int operator !=(const SbPlane &p1, const SbPlane &p2)
look at that list. gorgeous. π
π¦ DESCRIPTION π¦
So. This class represents an oriented plane in 3D. π
That's it, that's the whole vibe. She's a lightweight class/datatype β not doing too much, not overcommitting β and she gets used for arguments to some Inventor objects. A little supporting character who's actually kind of essential, y'know? main character energy in a side-role package π«Ά
π METHODS π
the constructors π«
SbPlane()
SbPlane(const SbVec3f &p0, const SbVec3f &p1, const
SbVec3f &p2)
SbPlane(const SbVec3f &normal, float distance)
SbPlane(const SbVec3f &normal, const SbVec3f &point)
Constructors. Four ways to be born, pick your fave π
p0,p1, andp2represent three points in the plane.normalis a normal vector.distanceis distance from origin to plane alongnormalvector.pointis a point in 3-space for the plane to pass through.
so many options and every single one of them ate β¨
offset
void offset(float d)β Offset a plane by a given distance. just scoot her over a lil bit,damount πΆβοΈ
intersect
SbBool intersect(const SbLine &l, SbVec3f &intersection) constβ Intersect line and plane, returningTRUEif there is an intersection,FALSEif line is parallel to plane. the classic "do we meet or are we just two ships passing in the night" moment π parallel means no vibes exchanged, periodt.
transform
void transform(const SbMatrix &matrix)β Transforms the plane by the given matrix. glow-up viaSbMatrix, slay π
isInHalfSpace
SbBool isInHalfSpace(const SbVec3f &point) constβ ReturnsTRUEif the given point is within the half-space defined by the plane. are you in the zone or are you not in the zone, no in-between πΈ
getNormal
const SbVec3f &getNormal() constβ Returns normal vector to plane. the perpendicular bestie, the one who's always at a right angle to the drama πβ¨
getDistanceFromOrigin
float getDistanceFromOrigin() constβ Returns distance from origin to plane. how far is she from where it all started π₯Ί iconic.
the comparison operators
int operator ==(const SbPlane &p1, const SbPlane &p2)int operator !=(const SbPlane &p1, const SbPlane &p2)
Equality/inequality comparison operators. are y'all the same plane or not, we're finding out fr fr π
π SEE ALSO π
SbVec3f, SbLine
go read those next, they're part of the friend group, iykyk π¦
and that's the whole page, bestie!! π this was SbPlane(3IV) β manual name folded in, page footed out, all the details intact. the footer of the original just said SbPlane(3IV)() on its own, which is the source/version-and-date sign-off slot, so consider this your cute little wave goodbye: π SbPlane(3IV)() π
no cap, you're gonna build something gorgeous with her. go off ππΈβ¨
π¦ 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