SbCylinderPlaneProjector(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– SbCylinderPlaneProjector πŸ’–

okay bestie, so this is the manual page for SbCylinderPlaneProjector β€” that's a section 3 manpage, aka the "C++ library functions" shelf in the Coin docs, so you know it's giving developer realness 🫢. She lives in the Coin library and she is literally the class that projects 2D points to a half-cylinder and a plane. no cap.


🌸 NAME 🌸

SbCylinderPlaneProjector β€” the class that projects 2D points to a half-cylinder and a plane. periodt. πŸ’…


✨ SYNOPSIS ✨

#include <Inventor/projectors/SbCylinderPlaneProjector.h>

Inherits SbCylinderSectionProjector. so yes she's part of a whole little nepo-baby dynasty of projectors, and she earned it. πŸ‘‘

πŸŽ€ Public Member Functions

SbCylinderPlaneProjector (const float edgetol=0.9f, const SbBool orienttoeye=TRUE)
SbCylinderPlaneProjector (const SbCylinder &cyl, const float edgetol=0.9f, const SbBool orienttoeye=TRUE)
virtual SbProjector * copy (void) const
virtual SbVec3f project (const SbVec2f &point)
virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)

πŸ¦‹ Public Member Functions inherited from SbCylinderSectionProjector

SbCylinderSectionProjector (const float edgetol=0.9f, const SbBool orienttoeye=TRUE)
SbCylinderSectionProjector (const SbCylinder &cyl, const float edgetol=0.9f, const SbBool orienttoeye=TRUE)
void setTolerance (const float edgetol)
float getTolerance (void) const
SbBool isWithinTolerance (const SbVec3f &point)

🌈 Public Member Functions inherited from SbCylinderProjector

SbVec3f projectAndGetRotation (const SbVec2f &point, SbRotation &rot)
void setCylinder (const SbCylinder &cyl)
const SbCylinder & getCylinder (void) const
void setOrientToEye (const SbBool orienttoeye)
SbBool isOrientToEye (void) const
void setFront (const SbBool infront)
SbBool isFront (void) const
SbBool isPointInFront (const SbVec3f &point) const
virtual void setWorkingSpace (const SbMatrix &space)

⭐ Public Member Functions inherited from SbProjector

virtual void setViewVolume (const SbViewVolume &vol)
const SbViewVolume & getViewVolume (void) const
const SbMatrix & getWorkingSpace (void) const
virtual SbBool tryProject (const SbVec2f &point, const float epsilon, SbVec3f &result)

πŸ’œ Protected Member Functions

SbRotation getRotation (const SbVec3f &point1, const SbBool tol1, const SbVec3f &point2, const SbBool tol2)

🌸 Protected Member Functions inherited from SbCylinderSectionProjector

virtual void setupTolerance (void)

πŸŽ€ Protected Member Functions inherited from SbCylinderProjector

SbCylinderProjector (const SbBool orienttoeye)
SbCylinderProjector (const SbCylinder &cylinder, const SbBool orienttoeye)
SbBool intersectCylinderFront (const SbLine &line, SbVec3f &result)

🧚 Protected Member Functions inherited from SbProjector

SbProjector (void)
virtual ~SbProjector ()
SbLine getWorkingLine (const SbVec2f &point) const
float findVanishingDistance (void) const
SbBool verifyProjection (const SbVec3f &projpt) const

πŸ‘‘ Additional Inherited Members

πŸ“ Protected Attributes inherited from SbCylinderSectionProjector

float tolerance
float tolDist
SbVec3f planeDir
SbLine planeLine
float planeDist
SbPlane tolPlane

πŸ’… Protected Attributes inherited from SbCylinderProjector

SbBool intersectFront
SbCylinder cylinder
SbBool orientToEye
SbBool needSetup
SbVec3f lastPoint

✨ Protected Attributes inherited from SbProjector

SbViewVolume viewVol
SbMatrix worldToWorking
SbMatrix workingToWorld

πŸ¦‹ Detailed Description πŸ¦‹

The SbCylinderPlaneProjector class projects 2D points to a half-cylinder and a plane. yes bestie, two surfaces, she's versatile like that. 😌

This projector uses a plane along with the half-cylinder of SbCylinderSectionProjector for projections. And here's the little plot twist: if the 2D point mapping "misses" the cylinder section, the 3D point will be projected onto the plane instead. it's giving "backup plan but make it geometry" πŸ’€

See also

  • SbSpherePlaneProjector

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

SbCylinderPlaneProjector::SbCylinderPlaneProjector (const float edgetol = 0.9f, const SbBool orienttoeye = TRUE)

Default constructor, the no-argument-basically one. See SbCylinderSectionProjector::SbCylinderSectionProjector(). 🫢

SbCylinderPlaneProjector::SbCylinderPlaneProjector (const SbCylinder & cyl, const float edgetol = 0.9f, const SbBool orienttoeye = TRUE)

Constructor with explicit specification of projection cylinder β€” so like, you tell her which cylinder to use instead of letting her pick. main character energy fr fr. 🌈


πŸ’œ Member Function Documentation πŸ’œ

SbProjector * SbCylinderPlaneProjector::copy (void ) const [virtual]

Construct and return a copy of this projector. The caller is responsible for destructing the new instance β€” so bestie, that returned pointer is yours to clean up, don't just leave it out there. 🫣

⚠️ Note that if the Coin library has been built as a DLL under Microsoft Windows and you use this method from application code, you must make sure that both the Coin DLL and the application executable are using the same instance of a C Run-Time (CRT) library. Otherwise, you will get memory heap corruption upon deallocating the returned instances, eventually leading to mysterious crashes. no seriously, "mysterious crashes" is the exact vibe here and it is NOT cute. πŸ’€ handle your CRT, queen.

Reimplemented from SbCylinderSectionProjector.

SbVec3f SbCylinderPlaneProjector::project (const SbVec2f & point) [virtual]

Project the 2D point from normalized viewport coordinates to a 3D point. The mapping will be done in accordance with the type of the projector. iykyk β€” different projector, different mapping rules. πŸ”₯

Reimplemented from SbCylinderSectionProjector.

SbRotation SbCylinderPlaneProjector::getRotation (const SbVec3f & point1, const SbVec3f & point2) [virtual]

Returns rotation on the projection surface which reorients point1 to point2. spin spin spin ✨

Reimplemented from SbCylinderSectionProjector.

SbRotation SbCylinderPlaneProjector::getRotation (const SbVec3f & point1, const SbBool tol1, const SbVec3f & point2, const SbBool tol2) [protected]

Calculates rotation from point1 to point2, with tol1 and tol2 deciding whether or not to use the tolerance setting. two little yes/no switches for tolerance, very "do we care or do we not" 🌸


🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. yeah she wasn't hand-written by a human, she was generated, and honestly? she ate. πŸ’…


Version 4.0.10 Β· Thu Jun 25 2026 00:00:00 β€” that's the version and the timestamp stamping this whole page, so if you cite her, cite her right. k bye bestie, go project something gorgeous πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from