Hello,
I need to clone / duplicate a vtkPolyDataReader after reading my VTK file (Mesh),
Just after reading my Mesh I want to duplicate the Mesh polyData in two variables to then apply a different transform to each variable (polyData)
I tried to use shallowCopy()
but it doesn’t giving me what I want, the polyData from the first variable is always affected from what I apply to the second variable
…
I tried to use something like this const polydata2 = {...polydata1}
in javascript, it doesn’t work,
So I’m obliged to use vtkPolyDataReader two time to read my polyData (vtkPolyDataReader.setUrl()
two times), but I want to only read one time and duplicate what I read.
Thank you