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

smooth_triangle.h

00001 /***************************************************************************
00002                           smooth_triangle.h  -  description
00003                              -------------------
00004     begin                : Sun Nov 16 2003
00005     copyright            : (C) 2003 by Moritz Franosch
00006     email                : mail@Franosch.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef SMOOTH_TRIANGLE_H
00019 #define SMOOTH_TRIANGLE_H
00020 
00021 #include "triangle.h"
00022 
00023 
00028 class Smooth_Triangle : public Triangle {
00029 
00030 private:
00031 
00032   Particle::vector_t n1, n2, n3; // normals of the triangle
00033 
00034 public: 
00035 
00039   Smooth_Triangle(const Particle::vector_t& p1, const Particle::vector_t& p2,
00040                   const Particle::vector_t& p3,
00041                   const Particle::vector_t& n1, const Particle::vector_t& n2,
00042                   const Particle::vector_t& n3);
00043 
00046   const Particle::vector_t& get_normal1() const;
00047 
00050   const Particle::vector_t& get_normal2() const;
00051 
00054   const Particle::vector_t& get_normal3() const;
00055 
00058   virtual void to_xml(std::ostream& o);
00059 
00060 };
00061 
00062 
00063 
00064 #endif // SMOOTH_TRIANGLE_H

Generated on Fri Apr 22 11:06:42 2005 for partsim.kdevelop by doxygen 1.3.6