Geant4
10.03
|
#include <G4Polyhedra.hh>
Protected Attributes | |
G4int | numSide |
G4double | startPhi |
G4double | endPhi |
G4bool | phiIsOpen |
G4bool | genericPgon |
G4int | numCorner |
G4PolyhedraSideRZ * | corners |
G4PolyhedraHistorical * | original_parameters |
G4EnclosingCylinder * | enclosingCylinder |
Protected Attributes inherited from G4VCSGfaceted | |
G4int | numFace |
G4VCSGface ** | faces |
G4double | fCubicVolume |
G4double | fSurfaceArea |
G4bool | fRebuildPolyhedron |
G4Polyhedron * | fpPolyhedron |
Protected Attributes inherited from G4VSolid | |
G4double | kCarTolerance |
Definition at line 81 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 84 of file G4Polyhedra.cc.
References Create(), DBL_EPSILON, G4VSolid::DumpInfo(), FatalErrorInArgument, G4endl, G4Exception(), G4VSolid::GetName(), G4PolyhedraHistorical::Num_z_planes, G4PolyhedraHistorical::numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4ReduciblePolygon::ScaleA(), G4PolyhedraHistorical::Start_angle, twopi, and G4PolyhedraHistorical::Z_values.
Referenced by Clone().
G4Polyhedra::G4Polyhedra | ( | const G4String & | name, |
G4double | phiStart, | ||
G4double | phiTotal, | ||
G4int | numSide, | ||
G4int | numRZ, | ||
const G4double | r[], | ||
const G4double | z[] | ||
) |
Definition at line 170 of file G4Polyhedra.cc.
References Create(), FatalErrorInArgument, G4endl, G4Exception(), G4VSolid::GetName(), and SetOriginalParameters().
|
virtual |
Definition at line 395 of file G4Polyhedra.cc.
References corners, enclosingCylinder, and original_parameters.
G4Polyhedra::G4Polyhedra | ( | __void__ & | a | ) |
Definition at line 384 of file G4Polyhedra.cc.
G4Polyhedra::G4Polyhedra | ( | const G4Polyhedra & | source | ) |
Definition at line 407 of file G4Polyhedra.cc.
References CopyStuff().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 644 of file G4Polyhedra.cc.
References G4BoundingEnvelope::BoundingBoxVsVoxelLimits(), G4BoundingEnvelope::CalculateExtent(), emax, Extent(), G4Exception(), GetCorner(), GetCosStartPhi(), GetEndPhi(), G4VoxelLimits::GetMaxExtent(), G4VoxelLimits::GetMinExtent(), G4VSolid::GetName(), GetNumRZCorner(), GetNumSide(), GetSinStartPhi(), GetStartPhi(), IsOpen(), JustWarning, G4VSolid::kCarTolerance, kInfinity, G4GeomTools::PolygonArea(), G4PolyhedraSideRZ::r, G4GeomTools::RemoveRedundantVertices(), reverse, G4GeomTools::TriangulatePolygon(), twopi, and G4PolyhedraSideRZ::z.
|
virtual |
Reimplemented from G4VSolid.
Definition at line 780 of file G4Polyhedra.cc.
References G4Polyhedra().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 760 of file G4Polyhedra.cc.
References G4VPVParameterisation::ComputeDimensions().
|
protected |
Definition at line 437 of file G4Polyhedra.cc.
References corners, enclosingCylinder, endPhi, G4VCSGfaceted::fpPolyhedron, G4VCSGfaceted::fRebuildPolyhedron, genericPgon, numCorner, numSide, original_parameters, phiIsOpen, and startPhi.
Referenced by G4Polyhedra(), and operator=().
|
protected |
Definition at line 206 of file G4Polyhedra.cc.
References G4ReduciblePolygon::Amin(), G4ReduciblePolygon::Area(), G4ReduciblePolygonIterator::Begin(), corners, G4ReduciblePolygon::CrossesItself(), DBL_EPSILON, enclosingCylinder, endPhi, G4VCSGfaceted::faces, FatalErrorInArgument, G4endl, G4Exception(), G4ReduciblePolygonIterator::GetA(), G4ReduciblePolygonIterator::GetB(), G4VSolid::GetName(), G4VSolid::kCarTolerance, kInfinity, G4ReduciblePolygonIterator::Next(), numCorner, G4VCSGfaceted::numFace, numSide, G4ReduciblePolygon::NumVertices(), phiIsOpen, G4PolyhedraSideRZ::r, G4ReduciblePolygon::RemoveDuplicateVertices(), G4ReduciblePolygon::RemoveRedundantVertices(), G4ReduciblePolygon::ReverseOrder(), startPhi, twopi, and G4PolyhedraSideRZ::z.
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 1110 of file G4Polyhedra.cc.
References a, A(), ab, B(), C(), corners, endPhi, G4Exception(), genericPgon, G4VSolid::GetName(), JustWarning, G4VSolid::kCarTolerance, G4PolyhedraHistorical::Num_z_planes, numCorner, G4PolyhedraHistorical::numSide, numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, phiIsOpen, G4PolyhedraSideRZ::r, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4PolyhedraHistorical::Start_angle, startPhi, twopi, G4PolyhedraSideRZ::z, and G4PolyhedraHistorical::Z_values.
|
protected |
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 548 of file G4Polyhedra.cc.
References G4VCSGfaceted::DistanceToIn(), enclosingCylinder, kInfinity, and G4EnclosingCylinder::ShouldMiss().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 567 of file G4Polyhedra.cc.
References G4VCSGfaceted::DistanceToIn().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 576 of file G4Polyhedra.cc.
References G4VSolid::DumpInfo(), G4Exception(), GetCorner(), GetCosStartPhi(), GetEndPhi(), G4VSolid::GetName(), GetNumRZCorner(), GetNumSide(), GetSinStartPhi(), GetStartPhi(), IsOpen(), JustWarning, kInfinity, G4PolyhedraSideRZ::r, twopi, and G4PolyhedraSideRZ::z.
Referenced by CalculateExtent().
|
inline |
Referenced by CalculateExtent(), Extent(), G4tgbGeometryDumper::GetSolidParams(), and G4GDMLWriteSolids::PolyhedraWrite().
|
inline |
|
inline |
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), G4VParameterisationPolyhedra::ConvertRadiusFactor(), export_G4Polyhedra(), Extent(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), and G4ParameterisationPolyhedraPhi::GetMaxParameter().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 771 of file G4Polyhedra.cc.
|
inline |
Referenced by CalculateExtent(), export_G4Polyhedra(), Extent(), G4tgbGeometryDumper::GetSolidParams(), and G4GDMLWriteSolids::PolyhedraWrite().
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), export_G4Polyhedra(), Extent(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), and G4tgbGeometryDumper::GetSolidParams().
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), G4ParameterisationPolyhedraPhi::CheckParametersValidity(), G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4VParameterisationPolyhedra::ConvertRadiusFactor(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), G4ParameterisationPolyhedraRho::GetMaxParameter(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Polyhedra_dimensionsWrite(), and G4GDMLWriteSolids::PolyhedraWrite().
|
protected |
Definition at line 844 of file G4Polyhedra.cc.
References CLHEP::normal(), and G4INCL::DeJongSpin::shoot().
Referenced by GetPointOnSurface().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 893 of file G4Polyhedra.cc.
References a, endPhi, genericPgon, GetPointOnPlane(), G4VCSGfaceted::GetPointOnSurfaceGeneric(), G4PolyhedraHistorical::Num_z_planes, numSide, original_parameters, phiIsOpen, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4INCL::DeJongSpin::shoot(), sqr(), startPhi, twopi, and G4PolyhedraHistorical::Z_values.
|
protected |
|
protected |
Definition at line 876 of file G4Polyhedra.cc.
References G4INCL::DeJongSpin::shoot().
|
inline |
|
inline |
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), G4VParameterisationPolyhedra::ConvertRadiusFactor(), export_G4Polyhedra(), Extent(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), G4ParameterisationPolyhedraPhi::GetMaxParameter(), and G4tgbGeometryDumper::GetSolidParams().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 528 of file G4Polyhedra.cc.
References enclosingCylinder, G4VCSGfaceted::Inside(), kOutside, and G4EnclosingCylinder::MustBeOutside().
|
inline |
Referenced by export_G4Polyhedra(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), and G4GDMLWriteSolids::PolyhedraWrite().
|
inline |
Referenced by CalculateExtent(), export_G4Polyhedra(), and Extent().
G4Polyhedra & G4Polyhedra::operator= | ( | const G4Polyhedra & | source | ) |
Definition at line 417 of file G4Polyhedra.cc.
References CopyStuff(), corners, enclosingCylinder, G4VCSGfaceted::operator=(), and original_parameters.
G4bool G4Polyhedra::Reset | ( | ) |
Definition at line 486 of file G4Polyhedra.cc.
References corners, Create(), G4VCSGfaceted::DeleteStuff(), enclosingCylinder, G4endl, G4Exception(), genericPgon, G4VSolid::GetName(), JustWarning, G4PolyhedraHistorical::Num_z_planes, G4PolyhedraHistorical::numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4PolyhedraHistorical::Start_angle, and G4PolyhedraHistorical::Z_values.
Referenced by G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), and G4ParameterisationPolyhedraZ::ComputeDimensions().
|
inline |
Referenced by G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4ParameterisationPolyhedraZ::ComputeDimensions(), and G4Polyhedra().
|
protected |
Definition at line 1367 of file G4Polyhedra.cc.
References G4ReduciblePolygon::Bmax(), corners, endPhi, G4endl, G4Exception(), G4VSolid::GetName(), JustWarning, G4VSolid::kCarTolerance, G4PolyhedraHistorical::Num_z_planes, numCorner, G4PolyhedraHistorical::numSide, numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, G4PolyhedraSideRZ::r, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4PolyhedraHistorical::Start_angle, startPhi, G4ReduciblePolygon::StartWithZMin(), G4PolyhedraSideRZ::z, and G4PolyhedraHistorical::Z_values.
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 789 of file G4Polyhedra.cc.
References corners, degree, endPhi, genericPgon, G4VSolid::GetName(), G4PolyhedraHistorical::Num_z_planes, numCorner, numSide, original_parameters, G4PolyhedraSideRZ::r, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, startPhi, G4PolyhedraSideRZ::z, and G4PolyhedraHistorical::Z_values.
|
protected |
Definition at line 196 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), operator=(), Reset(), SetOriginalParameters(), StreamInfo(), and ~G4Polyhedra().
|
protected |
Definition at line 199 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), DistanceToIn(), Inside(), operator=(), Reset(), and ~G4Polyhedra().
|
protected |
Definition at line 192 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), GetPointOnSurface(), SetOriginalParameters(), and StreamInfo().
|
protected |
Definition at line 194 of file G4Polyhedra.hh.
Referenced by CopyStuff(), CreatePolyhedron(), GetPointOnSurface(), Reset(), and StreamInfo().
|
protected |
Definition at line 195 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), SetOriginalParameters(), and StreamInfo().
|
protected |
Definition at line 190 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), GetPointOnSurface(), SetOriginalParameters(), and StreamInfo().
|
protected |
Definition at line 197 of file G4Polyhedra.hh.
Referenced by CopyStuff(), CreatePolyhedron(), G4Polyhedra(), GetPointOnSurface(), operator=(), Reset(), SetOriginalParameters(), StreamInfo(), and ~G4Polyhedra().
|
protected |
Definition at line 193 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), and GetPointOnSurface().
|
protected |
Definition at line 191 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), GetPointOnSurface(), SetOriginalParameters(), and StreamInfo().