marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
2.03k stars 264 forks source link

isosurface() error in Tetmesh #881

Closed HyungJoo-Kwon closed 1 year ago

HyungJoo-Kwon commented 1 year ago

File "c:\Users\for\Desktop\vedo\examples\other\test.py", line 29, in mesh = mesh.isosurface() File "C:\Users\for\anaconda3\envs\vedo\lib\site-packages\vedo\tetmesh.py", line 474, in isosurface scrange = self._data.GetPointData().GetScalars().GetRange() AttributeError: 'NoneType' object has no attribute 'GetRange'

Is there a solution ?

marcomusy commented 1 year ago

the error message says you have and invalid mesh object in

mesh = mesh.isosurface()

also variable naming looks confusing..

marcomusy commented 1 year ago

Also, check out example examples/volumetric/tet_isos_slice.py

HyungJoo-Kwon commented 1 year ago

Thanks, i'll try it