Geant4 9.6.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 "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)
 

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 83 of file HepPolyhedron.cc.

83 {
84 for (G4int k=0; k<4; k++) {
85 ostr << " " << facet.edge[k].v << "/" << facet.edge[k].f;
86 }
87 return ostr;
88}
int G4int
Definition: G4Types.hh:66

◆ operator<<() [2/2]

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

Definition at line 90 of file HepPolyhedron.cc.

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