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

Georgiä NeverMind piccolagiorgi06 at gmail.com
Wed Jan 31 14:35:18 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180131/055d9d78/attachment.html>


More information about the vtkusers mailing list