VGM Version 5.5
Loading...
Searching...
No Matches
Arb8Splitter.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------
2// The Geant4GM package of the Virtual Geometry Model
3// Copyright (C) 2007, Ivana Hrivnacova
4// All rights reserved.
5//
6// For the licensing terms see vgm/LICENSE.
7// Contact: ivana@ipno.in2p3.fr
8// -----------------------------------------------------------------------
9
10#ifndef GEANT4_GM_ARB8_SPLITTER_H
11#define GEANT4_GM_ARB8_SPLITTER_H
12
14
15#include <vector>
16
17namespace Geant4GM {
18
22{
23 double fraction = 0.;
24 double lowerHalfLength = 0.;
25 double lowerZOffset = 0.;
26 std::vector<VGM::TwoVector> lowerVertices;
27 double upperHalfLength = 0.;
28 double upperZOffset = 0.;
29 std::vector<VGM::TwoVector> upperVertices;
30};
31
39
48 const std::vector<VGM::TwoVector>& vertices, Arb8Split& split);
49
50} // namespace Geant4GM
51
52#endif // GEANT4_GM_ARB8_SPLITTER_H
VGM implementation for Geant4.
Definition Element.h:29
Arb8SplitResult SplitArb8ForGenericTrap(double halfLength, const std::vector< VGM::TwoVector > &vertices, Arb8Split &split)
Split an Arb8 whose corresponding end edges form angles greater than 90 degrees into two pieces accep...
Parameters of two G4GenericTrap-compatible pieces obtained by cutting an Arb8 with a plane perpendicu...
std::vector< VGM::TwoVector > upperVertices
std::vector< VGM::TwoVector > lowerVertices