Main Page | Class Hierarchy | Class List | File List | Class Members

Smooth_Triangle Class Reference

#include <smooth_triangle.h>

Inheritance diagram for Smooth_Triangle:

Triangle Geometry List of all members.

Public Member Functions

 Smooth_Triangle (const Particle::vector_t &p1, const Particle::vector_t &p2, const Particle::vector_t &p3, const Particle::vector_t &n1, const Particle::vector_t &n2, const Particle::vector_t &n3)
const Particle::vector_t & get_normal1 () const
const Particle::vector_t & get_normal2 () const
const Particle::vector_t & get_normal3 () const
virtual void to_xml (std::ostream &o)

Detailed Description

A smooth triangle (with normals on each corner).

Author:
Moritz Franosch


Constructor & Destructor Documentation

Smooth_Triangle::Smooth_Triangle const Particle::vector_t &  p1,
const Particle::vector_t &  p2,
const Particle::vector_t &  p3,
const Particle::vector_t &  n1,
const Particle::vector_t &  n2,
const Particle::vector_t &  n3
 

Constructs a triangle with corners p1, p2, p3 and normals n1, n2, n3.


Member Function Documentation

const Particle::vector_t & Smooth_Triangle::get_normal1  )  const
 

Returns the normal on the first corner.

const Particle::vector_t & Smooth_Triangle::get_normal2  )  const
 

Returns the normal on the second corner.

const Particle::vector_t & Smooth_Triangle::get_normal3  )  const
 

Returns the normal on the third corner.

void Smooth_Triangle::to_xml std::ostream &  o  )  [virtual]
 

Writes the triangle as XML into o.

Reimplemented from Triangle.


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 11:06:47 2005 for partsim.kdevelop by doxygen 1.3.6