<div dir="ltr">Hello everyone,<div><br></div><div>I applied the filter vtkCutter to a mesh and I want to get the bounds of the result contours.</div><div><br></div><div>The bounds of the mesh seem goods.</div><div><br></div><div>When I display the vtkCutter output result, I see the expected result but I obtained those bound values: xmin = ymin = zmin = 1.0, and xmax = ymax = zmax = -1.0.</div><div><br></div><div>I don't understand what I did wrong in my code:</div><div><br></div><div><div><span style="white-space:pre-wrap">// Create a plane of the current Y-axis</span></div><div>vtkSmartPointer<vtkPlane> plane =<span style="white-space:pre-wrap"> </span>vtkSmartPointer<vtkPlane>::New();</div><div>plane->SetOrigin(0,0,0);</div><div>plane->SetNormal(0,1,0);</div><div><span style="white-space:pre-wrap">            </span></div><div>// Cut the mesh -> contours creation</div><div>vtkSmartPointer<vtkCutter> cutter =<span style="white-space:pre-wrap">  </span>vtkSmartPointer<vtkCutter>::New();</div><div>cutter->SetCutFunction(plane);</div><div>cutter->SetInputConnection(readerOBJ->GetOutputPort());<br></div><div>cutter->Update();</div></div><div><br></div><div><div>double boundsCutter[6];</div><div>cutter->GetOutput()->GetBounds(boundsCutter); // [1.0, -1.0, 1.0, -1.0, 1.0, -1.0]</div></div><div><br></div><div><br></div><div>Do I need to do another update?</div><div><br></div><div>Thank you,</div><div><br></div><div>Romain</div></div>