Geant4 11.2.2
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 <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 98 of file HepPolyhedron.cc.

98 {
99 for (const auto& edge : facet.edge) {
100 ostr << " " << edge.v << "/" << edge.f;
101 }
102 return ostr;
103}

◆ operator<<() [2/2]

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

Definition at line 105 of file HepPolyhedron.cc.

105 {
106 ostr << std::endl;
107 ostr << "Nvertices=" << ph.nvert << ", Nfacets=" << ph.nface << std::endl;
108 G4int i;
109 for (i=1; i<=ph.nvert; i++) {
110 ostr << "xyz(" << i << ")="
111 << ph.pV[i].x() << ' ' << ph.pV[i].y() << ' ' << ph.pV[i].z()
112 << std::endl;
113 }
114 for (i=1; i<=ph.nface; i++) {
115 ostr << "face(" << i << ")=" << ph.pF[i] << std::endl;
116 }
117 return ostr;
118}
int G4int
Definition G4Types.hh:85
G4Point3D * pV

Variable Documentation

◆ spatialTolerance