61#ifndef _SB_CYLINDER_SECTION_PROJECTOR_
62#define _SB_CYLINDER_SECTION_PROJECTOR_
101 bool orientToEye =
TRUE);
106 bool orientToEye =
TRUE);
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Cylinder-section projector.
SbLine planeLine
line parallel to axis, but in plane
float tolerance
Information about the ring tolerance.
SbPlane tolPlane
the plane itself
void setTolerance(float edgeTol)
virtual void setupTolerance()
Sets up the tolerance ring.
SbCylinderSectionProjector(float edgeTol=.9, bool orientToEye=TRUE)
Default constructor.
virtual SbRotation getRotation(const SbVec3f &point1, const SbVec3f &point2)
Computes a rotation based on two points on this projector.
virtual SbProjector * copy() const
Returns an instance that is a copy of this instance.
~SbCylinderSectionProjector()
Destructor.
SbCylinderSectionProjector(const SbCylinder &cyl, float edgeTol=.9, bool orientToEye=TRUE)
Constructor taking the cylinder.
bool isWithinTolerance(const SbVec3f &point)
Find whether this point on the cylinder or tolerance plane is within tolerance.
virtual SbVec3f project(const SbVec2f &point)
Apply the projector using the given point, returning the point in three dimensions that it projects t...
float tolDist
dist from planeLine to cylinder
float planeDist
distance from cylinder center
SbVec3f planeDir
Information about the plane used for intersection testing.
float getTolerance() const
Set and get the edge tolerance as a fraction of the radius of the cylinder.
Class for representing a cylinder.
Base class for representing projectors.
Class for representing a rotation.