Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Hexahedron Class Reference

Define the abstract class Hexahedron, a solid bounded by six plane suraces. More...

#include <Hexahedron.h>

Inheritance diagram for Hexahedron:

Volume Shape SurfaceList GeomObject Box Trap Trd1 Trd2 List of all members.

Public Methods

 Hexahedron ()
Point vertex (int n) const
 return the vertex number n (see fig for indexing). More...


Protected Methods

void addPlane (const Vector& v)
 simplify construction. More...

const Planeplane (int i) const
 avoid having to downcast in sub classes. More...


Detailed Description

Define the abstract class Hexahedron, a solid bounded by six plane suraces.

Vertex numbering:
          			 ^ y
          			 |
		   	1/5-------------0/4
			 |	 |       |
			 |	 |       |
	       	 --------|-------+-------|------> x
			 |	 |       |
			 |	 |       |
			3/7------+------2/6
				 |
     numbers are indeces for +z/-z vertices

Definition at line 27 of file Hexahedron.h.


Constructor & Destructor Documentation

Hexahedron::Hexahedron ( )
 

Definition at line 9 of file Hexahedron.cxx.


Member Function Documentation

void Hexahedron::addPlane ( const Vector & v ) [inline, protected]
 

simplify construction.

Definition at line 40 of file Hexahedron.h.

Referenced by Trap::Trap(), Trd1::Trd1(), Trd2::Trd2(), and Box::constructSurfaces().

const Plane & Hexahedron::plane ( int i ) const [inline, protected]
 

avoid having to downcast in sub classes.

Definition at line 43 of file Hexahedron.h.

Referenced by Box::width().

Point Hexahedron::vertex ( int n ) const
 

return the vertex number n (see fig for indexing).

Definition at line 14 of file Hexahedron.cxx.


The documentation for this class was generated from the following files:
Generated at Mon Nov 26 18:18:24 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000