pyg4ometry.geant4.solid.GenericTrap¶
Classes¶
Constructs an arbitrary trapezoid using two quadrilaterals sitting |
Module Contents¶
- class pyg4ometry.geant4.solid.GenericTrap.GenericTrap(name, v1x, v1y, v2x, v2y, v3x, v3y, v4x, v4y, v5x, v5y, v6x, v6y, v7x, v7y, v8x, v8y, dz, registry, nstack=20, lunit='mm', addRegistry=True)¶
Bases:
pyg4ometry.geant4.solid.SolidBase.SolidBaseConstructs an arbitrary trapezoid using two quadrilaterals sitting on two parallel planes. Vertices 1-4 define the quadrilateral at -dz and vertices 5-8 define the quadrilateral at +dz. This solid is called Arb8 in GDML notation.
- Parameters:
name – string, name of the volume
v1x – vertex 1 x position
v1y – vertex 1 y position
v2x – vertex 2 x position
v2y – vertex 2 y position
v3x – vertex 3 x position
v3y – vertex 3 y position
v4x – vertex 4 x position
v4y – vertex 4 y position
v5x – vertex 5 x position
v5y – vertex 5 y position
v6x – vertex 6 x position
v6y – vertex 6 y position
v7x – vertex 7 x position
v7y – vertex 7 y position
v8x – vertex 8 x position
v8y – vertex 8 y position
dz – half length along z
registry (Registry) – for storing solid
- dz¶
- lunit¶
- nstack¶
- vars_in¶
- dependents = []¶
- varNames = ['v1x', 'v1y', 'v2x', 'v2y', 'v3x', 'v3y', 'v4x', 'v4y', 'v5x', 'v5y', 'v6x', 'v6y', 'v7x',...¶
- varUnits¶
- __repr__()¶
- __str__()¶
- polygon_area(vertices)¶
- get_vertex(index)¶
- makeLayers(verts_bot, verts_top)¶
- mesh()¶