geometry#

Session.geometry(what: str = 'glb') bytes#

Return the current EnSight scene as a geometry file.

Parameters:
whatstr, optional

File format to return. The default is "glb".

Returns:
obj

Generated geometry file as a bytes object.

Examples

>>> data = session.geometry()
>>> with open("file.glb", "wb") as fp:
>>> fp.write(data)