Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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"

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 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:85

◆ operator<<() [2/2]

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

Definition at line 92 of file HepPolyhedron.cc.

92 {
93 ostr << std::endl;
94 ostr << "Nvertices=" << 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}
G4Point3D * pV
G4Facet * pF

Variable Documentation

◆ spatialTolerance