00001 // $Id: Hexahedron.h,v 1.2 2000/01/18 00:42:06 burnett Exp $ 00002 // 00003 // 00004 #ifndef __HEXAHEDRON_H 00005 #define __HEXAHEDRON_H 00006 00007 #include "geometry/Volume.h" 00008 #include "geometry/Plane.h" 00009 00027 class Hexahedron: public Volume 00028 { 00029 public: 00030 00031 Hexahedron(); 00032 00033 00035 Point vertex(int n)const; 00036 00037 protected: 00038 00040 void addPlane(const Vector& v){addSurface(new Plane(center(),v));} 00041 00043 const Plane& plane(int i)const{return (const Plane&)Volume::surface(i);} 00044 }; 00045 00046 #endif 00047
1.2.3 written by Dimitri van Heesch,
© 1997-2000