Closed vsnever closed 3 years ago
After recent refactoring of Py3DViewer module, the tets and num_tets attributes of Tetmesh class were renamed to polys and num_polys, so the tetrahedra_mesh_emission.py demo now throws an AttributeError at:
tets
num_tets
Tetmesh
polys
num_polys
tetra = Discrete3DMesh(mesh.vertices, mesh.tets, np.ones((mesh.num_tets)), False, 0)
For backward compatibility, this should be modified to:
try: tetra = Discrete3DMesh(mesh.vertices, mesh.polys, np.ones((mesh.num_polys)), False, 0) except AttributeError: tetra = Discrete3DMesh(mesh.vertices, mesh.tets, np.ones((mesh.num_tets)), False, 0)
Please open a PR with the relevant changes.
Fixed in #377.
After recent refactoring of Py3DViewer module, the
tets
andnum_tets
attributes ofTetmesh
class were renamed topolys
andnum_polys
, so the tetrahedra_mesh_emission.py demo now throws an AttributeError at:For backward compatibility, this should be modified to: