Geant4.10
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
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 G4Facet facet 
)

Definition at line 85 of file HepPolyhedron.cc.

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

Definition at line 92 of file HepPolyhedron.cc.

References HepPolyhedron::nface, HepPolyhedron::nvert, HepPolyhedron::pF, HepPolyhedron::pV, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

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

Variable Documentation

const G4double spatialTolerance = 0.01*nm