SbCylinder(3IV)
SbCylinder (SbCyl) - class for representing a cylinder
Showing IRIX 6.5.30 (default release). Added in IRIX 6.5.22.
NAME SbCylinder (SbCyl) - class for representing a cylinder INHERITS FROM SbCylinder SYNOPSIS #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. FILE FORMAT/DEFAULTS Cylinder { } SEE ALSO SbVec3f, SbLine, SbPlane, SbSphere, SoCylinder