Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HepPolyhedron.cc File Reference
#include "HepPolyhedron.h"
#include "G4PhysicalConstants.hh"
#include "G4Vector3D.hh"
#include <cstdlib>
#include <cmath>
#include <cassert>
#include "BooleanProcessor.src"
#include "HepPolyhedronProcessor.src"
Include dependency graph for HepPolyhedron.cc:

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 G4Facet facet 
)

Definition at line 86 of file HepPolyhedron.cc.

86  {
87  for (G4int k=0; k<4; k++) {
88  ostr << " " << facet.edge[k].v << "/" << facet.edge[k].f;
89  }
90  return ostr;
91 }
int G4int
Definition: G4Types.hh:78
std::ostream& operator<< ( std::ostream &  ostr,
const HepPolyhedron ph 
)

Definition at line 93 of file HepPolyhedron.cc.

93  {
94  ostr << std::endl;
95  ostr << "Nvertices=" << ph.nvert << ", Nfacets=" << ph.nface << std::endl;
96  G4int i;
97  for (i=1; i<=ph.nvert; i++) {
98  ostr << "xyz(" << i << ")="
99  << ph.pV[i].x() << ' ' << ph.pV[i].y() << ' ' << ph.pV[i].z()
100  << std::endl;
101  }
102  for (i=1; i<=ph.nface; i++) {
103  ostr << "face(" << i << ")=" << ph.pF[i] << std::endl;
104  }
105  return ostr;
106 }
G4Facet * pF
int G4int
Definition: G4Types.hh:78
G4Point3D * pV

Here is the call graph for this function:

Variable Documentation

const G4double spatialTolerance = 0.01*nm

Definition at line 76 of file HepPolyhedron.cc.