Controller.add_mesh_from_file

Controller.add_mesh_from_file()[source]

Add a mesh from the data in an file.

Returns
compas.datastructures.Mesh or None

A mesh data structure, if the operation was successful, or None otherwise.

Notes

The following file formats are supported

  • OBJ

  • OFF

  • PLY

  • STL