tneumann / splocs

Sparse Localized Deformation Components
MIT License
79 stars 20 forks source link

Visualization problem #5

Closed emanhamed closed 5 years ago

emanhamed commented 5 years ago

when I try to visualize the SPLOCS components, I'm receiving this error:

  File "view_splocs.py", line 86, in main
    visualization = Visualization(Xmean, tris, components)
  File "view_splocs.py", line 40, in __init__
    self.pd.point_data.normals = compute_normals(self.pd) # compute normals once for rest-shape (faster)
  File "view_splocs.py", line 18, in compute_normals
    n = tvtk.PolyDataNormals(input=pd, splitting=False)
  File "tvtk_classes/poly_data_normals.py", line 58, in __init__
  File "/usr/local/lib/python2.7/dist-packages/tvtk/tvtk_base.py", line 307, in __init__
    super(TVTKBase, self).__init__(**traits)
  File "/usr/lib/python2.7/dist-packages/traits/trait_handlers.py", line 104, in _read_only
    name, class_of( object ) )
traits.trait_errors.TraitError: The 'input' trait of a PolyDataNormals instance is 'read only'.
tneumann commented 5 years ago

Thanks for reporting that, this has to do with the new TVTK pipeline. Should be fixed with the newest commit.