pyblenderSDIC.meshes.TriangleMesh3D.from_json#
- classmethod TriangleMesh3D.from_json(filename: str) TriangleMesh3D [source]#
Create a TriangleMesh3D instance from a JSON file.
The JSON file should contain the mesh data in the same format as the dictionary expected by the from_dict method.
from pyblenderSDIC.mesh import TriangleMesh3D # Create a TriangleMesh3D instance from a JSON file mesh = TriangleMesh3D.from_json("path/to/mesh.json")
- Parameters:
filename (str) – The path to the JSON file.
- Returns:
A TriangleMesh3D instance created from the JSON file.
- Return type: