MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
Public Member Functions | Public Attributes
Torus Class Reference

#include <torus.h>

List of all members.

Public Member Functions

 Torus (Vec3_t const *X0, Vec3_t const *X1, Vec3_t const *X2)
 X0: Center of the torus Xi: endpoints of edge.
 Torus (Vec3_t const &X0, Vec3_t const &X1, Vec3_t const &X2)
 X0: Center of the torus Xi: endpoints of edge.
void Draw (std::ostream &os, double Radius=1.0, char const *Color="Blue", bool BPY=false)

Public Attributes

Vec3_t const * X0
 Center of the Torus.
Vec3_t const * X1
 Right vector of the torus.
Vec3_t const * X2
 Left vector of the torus.
double R
 Internal radius of the torus.

Constructor & Destructor Documentation

Torus::Torus ( Vec3_t const *  X0,
Vec3_t const *  X1,
Vec3_t const *  X2 
) [inline]

X0: Center of the torus Xi: endpoints of edge.

Torus::Torus ( Vec3_t const &  X0,
Vec3_t const &  X1,
Vec3_t const &  X2 
) [inline]

X0: Center of the torus Xi: endpoints of edge.


Member Function Documentation

void Torus::Draw ( std::ostream &  os,
double  Radius = 1.0,
char const *  Color = "Blue",
bool  BPY = false 
) [inline]

Member Data Documentation

double Torus::R

Internal radius of the torus.

Vec3_t const* Torus::X0

Center of the Torus.

Vec3_t const* Torus::X1

Right vector of the torus.

Vec3_t const* Torus::X2

Left vector of the torus.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines