Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Models::Torus Class Reference

Torus (donought) shape. More...

#include <Torus.h>

Inheritance diagram for Teddy::Models::Torus:

Inheritance graph
[legend]
Collaboration diagram for Teddy::Models::Torus:

Collaboration graph
[legend]
List of all members.

Public Methods

 Torus (const std::string &name, const double major_radius, const double minor_radius, const int stacks, const int slices)
 Torus constructor. More...


Protected Attributes

double major_radius
double minor_radius
int stacks
int slices

Detailed Description

Torus (donought) shape.

Definition at line 37 of file Torus.h.


Constructor & Destructor Documentation

Teddy::Models::Torus::Torus const std::string &    name,
const double    major_radius,
const double    minor_radius,
const int    stacks,
const int    slices
 

Torus constructor.

Parameters:
name  Name for new Torus mesh
rt  Torus major axis
rc  Torus minor axis
numt  Number of stack subdivisions
numc  Number of slice subdivisions

Definition at line 44 of file Torus.cpp.

References Teddy::Models::Model::add, M_2_PI, major_radius, minor_radius, Teddy::Models::Model::setupClipRadius, slices, stacks, and Vector.


Member Data Documentation

double Teddy::Models::Torus::major_radius [protected]
 

Definition at line 48 of file Torus.h.

Referenced by Torus.

double Teddy::Models::Torus::minor_radius [protected]
 

Definition at line 49 of file Torus.h.

Referenced by Torus.

int Teddy::Models::Torus::slices [protected]
 

Definition at line 51 of file Torus.h.

Referenced by Torus.

int Teddy::Models::Torus::stacks [protected]
 

Definition at line 50 of file Torus.h.

Referenced by Torus.


The documentation for this class was generated from the following files: