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

Teddy::Models::Cone Class Reference

Cone shaped Model. More...

#include <Cone.h>

Inheritance diagram for Teddy::Models::Cone:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 Cone (const std::string &name, const double base_radius, const double top_radius, const double height, int slices, int stacks, bool use_bottom=true, bool use_top=true)
 Cone constructor. More...


Detailed Description

Cone shaped Model.

Todo:
Add subdivision to ends

Definition at line 40 of file Cone.h.


Constructor & Destructor Documentation

Teddy::Models::Cone::Cone const std::string &    name,
const double    base_radius,
const double    top_radius,
const double    height,
int    slices,
int    stacks,
bool    use_bottom = true,
bool    use_top = true
 

Cone constructor.

Parameters:
name  Name for new Cone Model
base_radius  Bottom radius of Cone
top_radius  Top radius of Cone
height  Height of Cone
slices  Number of slice subdivisions
stacks  Numebr of stack subdivisions

Definition at line 47 of file Cone.cpp.

References Teddy::Models::Model::add, M_2_PI, Teddy::Models::Model::setupClipRadius, and Vector.


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