cherab.phix.machine.import_phix_mesh#
- cherab.phix.machine.import_phix_mesh(world, override_materials=None, reflection=True)[source]#
Import PHiX Plasma facing component meshes.
Each Meshes allow the user to use an user-defined material which inherites
Material.- Parameters:
world (World) – The world scenegraph belonging to these materials.
override_materials (dict[str, Material] | None) – user-defined material. Set up like
{"Vaccum Vessel": RoughSUS316L(0.05), ...}.reflection (bool) – whether or not to consider reflection light, by default True. If
False, all of meshes’ material are replaced toAbsorbingSurface
- Returns:
containing mesh name and
Meshobjects- Return type:
dict[str, list[
Mesh]]
Examples
from raysect.optical import World from cherab.phix.machine import import_phix_mesh world = World() meshes = import_phix_mesh(world, reflection=True)