65#ifndef _SB_SPHERE_SECTION_PROJECTOR_
66#define _SB_SPHERE_SECTION_PROJECTOR_
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
SbProjector()
Default constructor.
Class for representing a rotation.
SbSphereProjector(bool orientToEye)
Constructors The default sphere to use has a radius of 1.0 and is centered at (0,0,...
bool orientToEye
TRUE if always oriented to eye.
float planeDist
distance from sphere center
SbVec3f planePoint
Information about the plane used for intersection testing.
~SbSphereSectionProjector()
Destructor.
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.
float tolerance
Information about the slice tolerance.
void setRadialFactor(float rad=0.0)
virtual void setupTolerance()
Sets up the tolerance slice.
SbPlane tolPlane
the plane itself
bool isWithinTolerance(const SbVec3f &point)
Find whether this point on the sphere or tolerance plane is within tolerance.
float getRadialFactor() const
Set and get the radial rotation factor.
float tolDist
dist from planePoint to tolerance slice
SbSphereSectionProjector(float edgeTol=.9, bool orientToEye=TRUE)
Default constructor.
SbSphereSectionProjector(const SbSphere &sph, float edgeTol=.9, bool orientToEye=TRUE)
Constructor taking the sphere.
virtual SbVec3f project(const SbVec2f &point)
Apply the projector using the given point, returning the point in three dimensions that it projects t...
float getTolerance() const
Set and get the edge tolerance as a fraction of the radius of the sphere.
void setTolerance(float edgeTol)
SbVec3f planeDir
normal direction
Class for representing a sphere.