geometry#

Export.geometry(filename: str, format: str = 'gltf2', starting_timestep: int | None = None, frames: int | None = 1, delta_timestep: int | None = None) None#

Export a geometry file.

Parameters:
filename: str

The location where to export the geometry

formatstr

The format to export

starting_timestep: int

The first timestep to export. If None, defaults to the current timestep

frames: int

Number of timesteps to save. If None, defaults from the current timestep to the last

delta_timestep: int

The delta timestep to use when exporting

Examples

>>> s = LocalLauncher().start()
>>> data = f"{s.cei_home}/ensight{s.cei_suffix}gui/demos/Crash Queries.ens"
>>> s.ensight.objs.ensxml_restore_file(data)
>>> s.ensight.utils.export.geometry("local_file.glb", format=s.ensight.utils.export.GEOM_EXPORT_GLTF)