geometry#
- Session.geometry(what: str = 'glb') bytes #
Return the current EnSight scene as a geometry file.
- Parameters:
- what
str
,optional
File format to return. The default is
"glb"
.
- what
- Returns:
obj
Generated geometry file as a bytes object.
Examples
>>> data = session.geometry() >>> with open("file.glb", "wb") as fp: >>> fp.write(data)