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, and p2 represent three points in the plane.
  • normal is a normal vector.
  • distance is distance from origin to plane along normal vector.
  • point is 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, d amount πŸšΆβ™€οΈ

intersect

  • SbBool intersect(const SbLine &l, SbVec3f &intersection) const β€” Intersect line and plane, returning TRUE if there is an intersection, FALSE if 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 via SbMatrix, slay πŸ’œ

isInHalfSpace

  • SbBool isInHalfSpace(const SbVec3f &point) const β€” Returns TRUE if 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 πŸ’–πŸŒΈβœ¨