pyInclude.geometry.vtk

Read and write legacy ASCII VTK wedge meshes for gain media.

pyInclude.geometry.vtk.topologyFromVtk(path, topologyCls)

Create a MeshTopology from legacy VTK wedge cells.

pyInclude.geometry.vtk.gainMediumFromVtk(path, topologyCls, gainMediumCls, *, numberOfLevels=None, thickness=None)

Load topology plus beta/material arrays from a legacy VTK file.

pyInclude.geometry.vtk.writeGainMediumVtk(path, gainMedium)

Write a GainMedium as legacy ASCII VTK wedge cells.

betaCells is written as point data and betaVolume as cell data; scalar material properties are stored in a FIELD block.