SbCylinderPlaneProjector(3)
π 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
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms