#include <CylinderInt.h>
Inheritance diagram for Go::CylinderInt:
Public Member Functions | |
CylinderInt () | |
Constructor. | |
CylinderInt (Point ax_pt, Point ax_dir, double radius) | |
Constructor. | |
virtual | ~CylinderInt () |
Destructor. | |
void | read (std::istream &is) |
Read a cylinder description from file. | |
Point | ax_pt () const |
Get the axis reference point. | |
Point | ax_dir () const |
Get the axis direction vector. | |
double | radius () const |
Get the radius of the cylinder. | |
SplineSurface * | surface (Point bottom_pos, double height) const |
Get a SplineSurface representing the cylinder. |
Definition at line 52 of file CylinderInt.h.
Go::CylinderInt::CylinderInt | ( | ) |
Constructor.
Used when reading from file.
Go::CylinderInt::CylinderInt | ( | Point | ax_pt, | |
Point | ax_dir, | |||
double | radius | |||
) |
Constructor.
ax_pt | reference point on the center axis of the cylinder. | |
ax_dir | direction vector of the center axis of the cylinder. | |
radius | the radius of the cylinder. |
void Go::CylinderInt::read | ( | std::istream & | is | ) |
Read a cylinder description from file.
is | the stream containing the cylinder description. |
Point Go::CylinderInt::ax_pt | ( | ) | const |
Get the axis reference point.
Point Go::CylinderInt::ax_dir | ( | ) | const |
Get the axis direction vector.
double Go::CylinderInt::radius | ( | ) | const |
Get the radius of the cylinder.
SplineSurface* Go::CylinderInt::surface | ( | Point | bottom_pos, | |
double | height | |||
) | const |
Get a SplineSurface representing the cylinder.
This can be used to visualize the object. Since the object is to be tesselated we make sure it is bounded.
bottom_pos | the lowest point on the direction axis. | |
height | the height of the cylinder. |