HepPolyhedron.cc File Reference

#include "HepPolyhedron.h"
#include "G4PhysicalConstants.hh"
#include "G4Vector3D.hh"
#include <cstdlib>
#include <cmath>
#include "BooleanProcessor.src"
#include "HepPolyhedronProcessor.src"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ostr, const G4Facet &facet)
std::ostream & operator<< (std::ostream &ostr, const HepPolyhedron &ph)

Variables

const G4double spatialTolerance = 0.01*nm


Function Documentation

std::ostream& operator<< ( std::ostream &  ostr,
const HepPolyhedron &  ph 
)

Definition at line 92 of file HepPolyhedron.cc.

00092                                                                      {
00093   ostr << std::endl;
00094   ostr << "Nverteces=" << ph.nvert << ", Nfacets=" << ph.nface << std::endl;
00095   G4int i;
00096   for (i=1; i<=ph.nvert; i++) {
00097      ostr << "xyz(" << i << ")="
00098           << ph.pV[i].x() << ' ' << ph.pV[i].y() << ' ' << ph.pV[i].z()
00099           << std::endl;
00100   }
00101   for (i=1; i<=ph.nface; i++) {
00102     ostr << "face(" << i << ")=" << ph.pF[i] << std::endl;
00103   }
00104   return ostr;
00105 }

std::ostream& operator<< ( std::ostream &  ostr,
const G4Facet &  facet 
)

Definition at line 85 of file HepPolyhedron.cc.

00085                                                                   {
00086   for (G4int k=0; k<4; k++) {
00087     ostr << " " << facet.edge[k].v << "/" << facet.edge[k].f;
00088   }
00089   return ostr;
00090 }


Variable Documentation

const G4double spatialTolerance = 0.01*nm

Definition at line 75 of file HepPolyhedron.cc.


Generated on Mon May 27 17:51:15 2013 for Geant4 by  doxygen 1.4.7