pyg4ometry.geant4.solid.TessellatedSolid

Classes

TessellatedSolid

Constructs a tessellated solid

Functions

createTessellatedSolid(name, polygons, reg)

Args:

Module Contents

class pyg4ometry.geant4.solid.TessellatedSolid.TessellatedSolid(name, meshTess, registry, meshtype=MeshType.Freecad, addRegistry=True)

Bases: pyg4ometry.geant4.solid.SolidBase.SolidBase

Constructs a tessellated solid

Parameters:
  • name (str) – of solid

  • mesh (Freecad, Gdml or Stl) – mesh

  • registry (Registry) – for storing solid

  • meshtype (MeshType.Freecad) – type of mesh

class MeshType
Freecad = 1
Gdml = 2
Stl = 3
meshtype
dependents = []
varNames = []
varUnits = []
__repr__()
__str__()
addVertex(vertex)
addTriangle(triangle)
removeDuplicateVertices()
mesh()
pyg4ometry.geant4.solid.TessellatedSolid.createTessellatedSolid(name, polygons, reg)
Args:

name: Name of the tessallated solid polygons: list of polygons (list of points given in clockwise order). All polygons should have the same number of points. reg: registry

Returns: TessellatedSolid