from_file()#

classmethod TetraMeshData.from_file(file)#

Load a mesh with its kd-Tree representation from Raysect mesh binary file (.rsm).

Parameters:

file (object) – File stream or string file name to save state.

>>> mesh = TetraMeshData.from_file("test.rsm")