Geant4-11
Functions | Variables
HepPolyhedron.cc File Reference
#include "HepPolyhedron.h"
#include "G4PhysicalConstants.hh"
#include "G4Vector3D.hh"
#include <cstdlib>
#include <cmath>
#include <algorithm>
#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

◆ operator<<() [1/2]

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

Definition at line 89 of file HepPolyhedron.cc.

89 {
90 for (G4int k=0; k<4; k++) {
91 ostr << " " << facet.edge[k].v << "/" << facet.edge[k].f;
92 }
93 return ostr;
94}
int G4int
Definition: G4Types.hh:85
G4Edge edge[4]

◆ operator<<() [2/2]

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

Definition at line 96 of file HepPolyhedron.cc.

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

Variable Documentation

◆ spatialTolerance

const G4double spatialTolerance = 0.01*nm