pyg4ometry.geant4.solid.ExtrudedSolid

Classes

ExtrudedSolid

Construct an extruded solid

Module Contents

class pyg4ometry.geant4.solid.ExtrudedSolid.ExtrudedSolid(name, pPolygon, pZslices, registry, lunit='mm', addRegistry=True)

Bases: pyg4ometry.geant4.solid.SolidBase.SolidBase

Construct an extruded solid

Parameters:
  • name (str) – of solid

  • pPolygon (list of lists) – x-y coordinates of vertices for the polygon.

  • pZslices (list of lists) – z-coordinates of a slice, slice offsets in x-y and scaling

  • registry (Registry) – for storing solid

  • lunit (str) – length unit (nm,um,mm,m,km) for solid

Example: Triangular prism with 2 slices pPoligon = [[x1,y1],[x2,y2],[x3,y3]] - vertices of polygon in clockwise order zSlices = [[z1,[offsx1, offsy1],scale1],[z2,[offsx2, offsy2],scale2]]

lunit
dependents = []
varNames = ['pPolygon', 'pZslices']
varUnits = ['lunit', 'lunit']
__repr__()
__str__()
polygon_area(vertices)
evaluateParameterWithUnits(varName)
mesh()