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

Teddy::Models::TriangleFan Class Reference

TriangleFan Element builds up a triangle fan from its vertices. More...

#include <TriangleFan.h>

Inheritance diagram for Teddy::Models::TriangleFan:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 TriangleFan ()
 Constructor. More...

virtual ~TriangleFan ()
 Destructor. More...

virtual void draw (Projection *p)
 Draw TriangleFan. More...

virtual void makeNormal ()
virtual unsigned long countCSGFaceElements ()

Protected Attributes

list< Vector * > normals

Detailed Description

TriangleFan Element builds up a triangle fan from its vertices.

Definition at line 41 of file TriangleFan.h.


Constructor & Destructor Documentation

Teddy::Models::TriangleFan::TriangleFan  
 

Constructor.

Definition at line 38 of file TriangleFan.cpp.

Teddy::Models::TriangleFan::~TriangleFan   [virtual]
 

Destructor.

Definition at line 44 of file TriangleFan.cpp.


Member Function Documentation

unsigned long Teddy::Models::TriangleFan::countCSGFaceElements   [virtual]
 

Definition at line 165 of file TriangleFan.cpp.

References Teddy::Models::Element::vertices.

void Teddy::Models::TriangleFan::draw Projection *    p [virtual]
 

Draw TriangleFan.

Implements Teddy::Models::Element.

Definition at line 50 of file TriangleFan.cpp.

References Teddy::SysSupport::dmsg, Teddy::Models::Element::EL_HAS_ELEMENT_NORMAL, Teddy::Models::Element::EL_USE_ELEMENT_NORMAL, Teddy::MixIn::Options::isEnabled, Teddy::SysSupport::M_INIT, Teddy::SysSupport::M_WARN, Teddy::Models::Element::normal, normals, Vector, and Teddy::Models::Element::vertices.

void Teddy::Models::TriangleFan::makeNormal   [virtual]
 

Calculate a normal for Element. This requires at least three vertices, and the vertices must not be on a single line.

Reimplemented from Teddy::Models::Element.

Definition at line 89 of file TriangleFan.cpp.

References Teddy::Models::Element::EL_HAS_ELEMENT_NORMAL, Teddy::Models::Element::EL_USE_ELEMENT_NORMAL, Teddy::SysSupport::emsg, Teddy::MixIn::Options::enable, Teddy::SysSupport::M_INIT, Teddy::SysSupport::M_MAT, Teddy::SysSupport::msg, Teddy::Models::Element::normal, normals, Vector, and Teddy::Models::Element::vertices.


Member Data Documentation

list<Vector*> Teddy::Models::TriangleFan::normals [protected]
 

Definition at line 54 of file TriangleFan.h.

Referenced by draw, and makeNormal.


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