SbCylinder(3IV)NAMESbCylinder (SbCyl) - class for representing a cylinder
INHERITS FROMSbCylinderSYNOPSIS
#include <Inventor_c/SbLinear.h>
typedef SbCylinder SbCyl
Functions from class SbCylinder:
SbBool SbCylIntersect(const SbCyl *this, const SbLine *l,
SbVec3f *intersection)
SbBool SbCylIntersect2(const SbCyl *this, const SbLine *l,
SbVec3f *enter, SbVec3f *exit)
DESCRIPTION
This class defines a simple cylinder datatype. It is used by the Inventor
toolkit for arguments or return values. Note that there are no Create
and Delete functions for SbCylinder. C programmers should treat cylinders
as standard C structs (declare them locally or use malloc):
/* This is defined in Inventor_c/SbLinear.h: */
struct {
struct SbLine axis;
float radius;
}
typedef SbCylinder SbCyl;
/* Your code should look something like this: */
#include <Inventor_c/SbLinear.h>
SbCylinder c;
c.radius = 2.0;
SbV3fSetX_Y_Z( c.axis.pos, 0.0, 0.0, 0.0 );
SbV3fSetX_Y_Z( c.axis.dir, 0.0, 1.0, 0.0 );
FUNCTIONS
SbBool SbCylIntersect(const SbCyl *this, const SbLine *l,
SbVec3f *intersection)
SbBool SbCylIntersect2(const SbCyl *this, const SbLine *l,
SbVec3f *enter, SbVec3f *exit)
Intersect line and cylinder, returning TRUE if there is an
intersection.
Page 1SbCylinder(3IV)FILE FORMAT/DEFAULTS
Cylinder {
}
SEE ALSO
SbVec3f, SbLine, SbPlane, SbSphere, SoCylinder
Page 2