43 #ifndef G4UGENERICTRAP_hh
44 #define G4UGENERICTRAP_hh
48 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
50 #include <volumes/UnplacedGenTrap.h>
55 class G4UGenericTrap :
public G4UAdapter<vecgeom::UnplacedGenTrap>
57 using Shape_t = vecgeom::UnplacedGenTrap;
58 using Base_t = G4UAdapter<vecgeom::UnplacedGenTrap>;
63 const std::vector<G4TwoVector>& vertices);
68 G4int GetNofVertices()
const;
70 const std::vector<G4TwoVector>& GetVertices()
const;
73 G4int GetVisSubdivisions()
const;
74 void SetVisSubdivisions(
G4int subdiv);
76 void Initialise(
const std::vector<G4TwoVector>& v);
82 G4UGenericTrap(__void__&);
87 G4UGenericTrap(
const G4UGenericTrap& source );
88 G4UGenericTrap &operator=(
const G4UGenericTrap& source);
102 G4int fVisSubdivisions;
103 std::vector<G4TwoVector> fVertices;
113 return "G4GenericTrap";
116 #endif // G4GEOM_USE_USOLIDS