2 // ********************************************************************
3 // * This Software is part of the AIDA Unified Solids Library package *
4 // * See: https://aidasoft.web.cern.ch/USolids *
5 // ********************************************************************
9 // --------------------------------------------------------------------
13 // Implementation of inline methods of UExtrudedSolid
15 // 13.08.13 Tatiana Nikitina
16 // Created from original implementation in Geant4
17 // --------------------------------------------------------------------
20 int UExtrudedSolid::GetNofVertices() const
25 inline UVector2 UExtrudedSolid::GetVertex(int index) const
27 if (index < 0 || index >= fNv)
29 UUtils::Exception ("UExtrudedSolid::GetVertex()", "GeomSolids0003",
30 FatalError, 1, "Index outside range.");
33 return fPolygon[index];
37 std::vector<UVector2> UExtrudedSolid::GetPolygon() const
43 int UExtrudedSolid::GetNofZSections() const
49 UExtrudedSolid::ZSection UExtrudedSolid::GetZSection(int index) const
51 if (index < 0 || index >= fNz)
53 UUtils::Exception ("UExtrudedSolid::GetZSection()", "GeomSolids0003",
54 FatalError, 1, "Index outside range.");
55 return ZSection(0.0, UVector2(), 0.0);
57 return fZSections[index];
61 std::vector<UExtrudedSolid::ZSection> UExtrudedSolid::GetZSections() const