SbCylinderSectionProjector(3)
π NAME π
SbCylinderSectionProjector β the projector that takes 2D points and lands them on a sliced cylinder, bestie. That's the whole vibe. π₯β¨
This page lives in the Coin manual, section 3 (library functions, iykyk).
β¨ SYNOPSIS β¨
#include <Inventor/projectors/SbCylinderSectionProjector.h>
Inherits SbCylinderProjector.
Inherited by SbCylinderPlaneProjector.
π Public Member Functions π
SbCylinderSectionProjector (const float edgetol=0.9f, const SbBool orienttoeye=TRUE)β the default constructor, no args required, she just shows up.SbCylinderSectionProjector (const SbCylinder &cyl, const float edgetol=0.9f, const SbBool orienttoeye=TRUE)β same energy but you hand her the cylinder yourself.virtual SbProjector * copy (void) constβ clone her, and the clone is your responsibility now.virtual SbVec3f project (const SbVec2f &point)β 2D in, 3D out. The main character move.virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)β the spin that carriespoint1over topoint2.void setTolerance (const float edgetol)β how much of the cylinder counts as fair game.float getTolerance (void) constβ read that tolerance back out.SbBool isWithinTolerance (const SbVec3f &point)β is this point inside the usable slice or nah?
π¦ Public Member Functions inherited from SbCylinderProjector π¦
SbVec3f projectAndGetRotation (const SbVec2f &point, SbRotation &rot)void setCylinder (const SbCylinder &cyl)const SbCylinder & getCylinder (void) constvoid setOrientToEye (const SbBool orienttoeye)SbBool isOrientToEye (void) constvoid setFront (const SbBool infront)SbBool isFront (void) constSbBool isPointInFront (const SbVec3f &point) constvirtual void setWorkingSpace (const SbMatrix &space)
π Public Member Functions inherited from SbProjector π
virtual void setViewVolume (const SbViewVolume &vol)const SbViewVolume & getViewVolume (void) constconst SbMatrix & getWorkingSpace (void) constvirtual SbBool tryProject (const SbVec2f &point, const float epsilon, SbVec3f &result)
π§ Protected Member Functions π§
virtual void setupTolerance (void)β she recalculates her whole internal projection setup. Iconic but lowkey needy.
πΈ 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) constfloat findVanishingDistance (void) constSbBool verifyProjection (const SbVec3f &projpt) const
β Protected Attributes β
float tolerancefloat tolDistSbVec3f planeDirSbLine planeLinefloat planeDistSbPlane tolPlane
π Protected Attributes inherited from SbCylinderProjector π
SbBool intersectFrontSbCylinder cylinderSbBool orientToEyeSbBool needSetupSbVec3f lastPoint
π Protected Attributes inherited from SbProjector π
SbViewVolume viewVolSbMatrix worldToWorkingSbMatrix workingToWorld
πΊ Detailed Description πΊ
The SbCylinderSectionProjector projects 2D points to a sliced cylinder. Not a whole cylinder. A sliced one. The drama. π
The projection cylinder for this class is sliced by a clipping plane parallel to its height axis. Projections will be mapped to the remaining cylinder part.
So: plane goes snip, part of the cylinder is off-limits, and all your points land on whatever's left. It's giving "bouncer at the club but for geometry." πͺ
See also
SbSphereSectionProjector
π Constructor & Destructor Documentation π
SbCylinderSectionProjector::SbCylinderSectionProjector (const float edgetol = 0.9f, const SbBool orienttoeye = TRUE)
Default constructor. See SbCylinderProjector::SbCylinderProjector().
The edgetol value should be within <0, 1], and specifies how much of the cylinder is used as a projection surface. 1.0 means the full front half is used.
Bestie, mind the interval β <0, 1]. Zero is not invited to this party. π«
SbCylinderSectionProjector::SbCylinderSectionProjector (const SbCylinder & cyl, const float edgetol = 0.9f, const SbBool orienttoeye = TRUE)
Constructor with explicit setting of the projection cylinder. You bring the cylinder, she brings the slicing. π«Ά
π¦ Member Function Documentation π¦
SbProjector * SbCylinderSectionProjector::copy (void ) const [virtual]
Construct and return a copy of this projector. The caller is responsible for destructing the new instance.
β οΈ Real talk, no cap: 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. π Same CRT instance or chaos. That's the rule.
Implements SbProjector.
Reimplemented in SbCylinderPlaneProjector.
SbVec3f SbCylinderSectionProjector::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. She's a projector, she projects, it's her whole personality. β¨
Implements SbCylinderProjector.
Reimplemented in SbCylinderPlaneProjector.
SbRotation SbCylinderSectionProjector::getRotation (const SbVec3f & point1, const SbVec3f & point2) [virtual]
Returns rotation on the projection surface which reorients point1 to point2. Basically "how do I spin this so that becomes this." π
Implements SbCylinderProjector.
Reimplemented in SbCylinderPlaneProjector.
void SbCylinderSectionProjector::setTolerance (const float edgetol)
The edgetol value decides how much of the surface of the cylinder is used for projection. 1.0 means the full cylinder half is used. Crank it to 1.0 and she's using the entire front half. Periodt. π₯
float SbCylinderSectionProjector::getTolerance (void ) const
Returns edge tolerance for the cylinder half.
SbBool SbCylinderSectionProjector::isWithinTolerance (const SbVec3f & point)
Check if point is within the part of the cylinder used for projections. Vibe check, but for geometry. β
β
void SbCylinderSectionProjector::setupTolerance (void ) [protected], [virtual]
Recalculate the internal projection surface settings. Needs to be done if any of the parameters influencing the projection surface have been changed from subclasses without using the access methods.
Translation: if a subclass went behind her back and poked the internals directly instead of using the proper access methods, she has no idea anything changed, so you have to make her recalculate. π
π Member Data Documentation π
float SbCylinderSectionProjector::tolerance [protected]
Tolerance value, deciding how much of the half-cylinder to do projections against.
float SbCylinderSectionProjector::tolDist [protected]
Tolerance value multiplied with the cylinder radius.
SbVec3f SbCylinderSectionProjector::planeDir [protected]
Direction of cutting plane.
SbLine SbCylinderSectionProjector::planeLine [protected]
A line within the plane which is parallel to the cylinder axis.
float SbCylinderSectionProjector::planeDist [protected]
Distance from plane to cylinder axis.
SbPlane SbCylinderSectionProjector::tolPlane [protected]
Defines the plane cutting the cylinder into a projection part. She's the one holding the knife. πͺβ¨
π Author π
Generated automatically by Doxygen for Coin from the source code. (Not a human, not a girlie, just Doxygen doing her thing. π€π )
Okay that's the whole page, bestie, you ate. This was Version 4.0.10, dated Thu Jun 25 2026, and the clock on it read 00:00. Generated automatically by Doxygen for Coin from the source code. Now go project something cute. π¦π
π¦ 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