Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4Polyhedra.hh>
Classes | |
struct | surface_element |
Protected Member Functions | |
void | SetOriginalParameters (G4ReduciblePolygon *rz) |
void | Create (G4double phiStart, G4double phiTotal, G4int numSide, G4ReduciblePolygon *rz) |
void | CopyStuff (const G4Polyhedra &source) |
void | DeleteStuff () |
void | SetSurfaceElements () const |
Protected Member Functions inherited from G4VCSGfaceted | |
virtual G4double | DistanceTo (const G4ThreeVector &p, const G4bool outgoing) const |
G4ThreeVector | GetPointOnSurfaceGeneric () const |
void | CopyStuff (const G4VCSGfaceted &source) |
void | DeleteStuff () |
Protected Member Functions inherited from G4VSolid | |
void | CalculateClippedPolygonExtent (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const |
void | ClipCrossSection (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const |
void | ClipBetweenSections (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const |
void | ClipPolygon (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis) const |
Protected Attributes | |
G4int | numSide = 0 |
G4double | startPhi |
G4double | endPhi |
G4bool | phiIsOpen = false |
G4bool | genericPgon = false |
G4int | numCorner = 0 |
G4PolyhedraSideRZ * | corners = nullptr |
G4PolyhedraHistorical * | original_parameters = nullptr |
G4EnclosingCylinder * | enclosingCylinder = nullptr |
std::vector< surface_element > * | fElements = nullptr |
Protected Attributes inherited from G4VCSGfaceted | |
G4int | numFace = 0 |
G4VCSGface ** | faces = nullptr |
G4double | fCubicVolume = 0.0 |
G4double | fSurfaceArea = 0.0 |
G4bool | fRebuildPolyhedron = false |
G4Polyhedron * | fpPolyhedron = nullptr |
Protected Attributes inherited from G4VSolid | |
G4double | kCarTolerance |
Definition at line 74 of file G4Polyhedra.hh.
G4Polyhedra::G4Polyhedra | ( | const G4String & | name, |
G4double | phiStart, | ||
G4double | phiTotal, | ||
G4int | numSide, | ||
G4int | numZPlanes, | ||
const G4double | zPlane[], | ||
const G4double | rInner[], | ||
const G4double | rOuter[] | ||
) |
Definition at line 71 of file G4Polyhedra.cc.
G4Polyhedra::G4Polyhedra | ( | const G4String & | name, |
G4double | phiStart, | ||
G4double | phiTotal, | ||
G4int | numSide, | ||
G4int | numRZ, | ||
const G4double | r[], | ||
const G4double | z[] | ||
) |
Definition at line 154 of file G4Polyhedra.cc.
|
virtual |
Definition at line 371 of file G4Polyhedra.cc.
G4Polyhedra::G4Polyhedra | ( | __void__ & | a | ) |
Definition at line 364 of file G4Polyhedra.cc.
G4Polyhedra::G4Polyhedra | ( | const G4Polyhedra & | source | ) |
Definition at line 387 of file G4Polyhedra.cc.
|
virtual |
Reimplemented from G4VSolid.
Definition at line 555 of file G4Polyhedra.cc.
Referenced by CalculateExtent().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 623 of file G4Polyhedra.cc.
|
virtual |
Reimplemented from G4VSolid.
Definition at line 755 of file G4Polyhedra.cc.
|
virtual |
Reimplemented from G4VSolid.
Definition at line 739 of file G4Polyhedra.cc.
|
protected |
Definition at line 412 of file G4Polyhedra.cc.
Referenced by G4Polyhedra(), and operator=().
|
protected |
Definition at line 188 of file G4Polyhedra.cc.
Referenced by G4Polyhedra(), and Reset().
|
virtual |
Creates user defined polyhedron. This function allows to the user to define arbitrary polyhedron. The faces of the polyhedron should be either triangles or planar quadrilateral. Nodes of a face are defined by indexes pointing to the elements in the xyz array. Numeration of the elements in the array starts from 1 (like in fortran). The indexes can be positive or negative. Negative sign means that the corresponding edge is invisible. The normal of the face should be directed to exterior of the polyhedron.
Nnodes | number of nodes |
Nfaces | number of faces |
xyz | nodes |
faces_vec | faces (quadrilaterals or triangles) |
Implements G4VCSGfaceted.
Definition at line 1037 of file G4Polyhedra.cc.
|
protected |
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 548 of file G4Polyhedra.cc.
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 531 of file G4Polyhedra.cc.
|
inline |
|
inline |
|
inline |
Referenced by BoundingLimits(), and CalculateExtent().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 814 of file G4Polyhedra.cc.
|
inline |
Referenced by BoundingLimits(), G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), GetCubicVolume(), G4ParameterisationPolyhedraPhi::GetMaxParameter(), GetPointOnSurface(), GetSurfaceArea(), and SetSurfaceElements().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 748 of file G4Polyhedra.cc.
|
inline |
|
inline |
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), G4ParameterisationPolyhedraPhi::CheckParametersValidity(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), G4ParameterisationPolyhedraRho::GetMaxParameter(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Polyhedra_dimensionsWrite(), and G4GDMLWriteSolids::PolyhedraWrite().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 956 of file G4Polyhedra.cc.
|
inline |
|
inline |
Referenced by BoundingLimits(), and CalculateExtent().
|
inline |
Referenced by BoundingLimits(), G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), GetCubicVolume(), G4ParameterisationPolyhedraPhi::GetMaxParameter(), GetPointOnSurface(), G4tgbGeometryDumper::GetSolidParams(), GetSurfaceArea(), and SetSurfaceElements().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 837 of file G4Polyhedra.cc.
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 513 of file G4Polyhedra.cc.
|
inline |
|
inline |
Referenced by BoundingLimits(), CalculateExtent(), GetSurfaceArea(), and SetSurfaceElements().
G4Polyhedra & G4Polyhedra::operator= | ( | const G4Polyhedra & | source | ) |
Definition at line 395 of file G4Polyhedra.cc.
G4bool G4Polyhedra::Reset | ( | ) |
Definition at line 469 of file G4Polyhedra.cc.
Referenced by G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), and G4ParameterisationPolyhedraZ::ComputeDimensions().
|
inline |
|
protected |
Definition at line 1295 of file G4Polyhedra.cc.
|
protected |
Definition at line 878 of file G4Polyhedra.cc.
Referenced by GetPointOnSurface().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 762 of file G4Polyhedra.cc.
|
protected |
Definition at line 188 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), operator=(), Reset(), SetOriginalParameters(), StreamInfo(), and ~G4Polyhedra().
|
protected |
Definition at line 191 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), DistanceToIn(), Inside(), operator=(), Reset(), and ~G4Polyhedra().
|
protected |
Definition at line 184 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), SetOriginalParameters(), and StreamInfo().
|
mutableprotected |
Definition at line 194 of file G4Polyhedra.hh.
Referenced by CopyStuff(), GetPointOnSurface(), Reset(), SetSurfaceElements(), and ~G4Polyhedra().
|
protected |
Definition at line 186 of file G4Polyhedra.hh.
Referenced by CopyStuff(), CreatePolyhedron(), Reset(), and StreamInfo().
|
protected |
Definition at line 187 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), SetOriginalParameters(), and StreamInfo().
|
protected |
Definition at line 182 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), SetOriginalParameters(), and StreamInfo().
|
protected |
Definition at line 189 of file G4Polyhedra.hh.
Referenced by CopyStuff(), CreatePolyhedron(), G4Polyhedra(), operator=(), Reset(), SetOriginalParameters(), StreamInfo(), and ~G4Polyhedra().
|
protected |
Definition at line 185 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), and CreatePolyhedron().
|
protected |
Definition at line 183 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), SetOriginalParameters(), and StreamInfo().