[vtkusers] How can I set the (0, 0, 0) position in the middle of my object using vtk.js?

Georgia piccolagiorgi06 at gmail.com
Wed Jan 31 14:32:53 EST 2018


How can I set the (0,0,0) position in the middle of my object? 
I have a STL file: 

  reader.setUrl(`./data/object.stl`, { binary: true }).then(() => { 
      mapper.setInputConnection(reader.getOutputPort()); 
      renderer.resetCamera(); 
}); 

But in the (0,0,0) there's NOT the center of my object, but the vertex of
the bounding box of it. How can I change it?



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list