Hi,<br><br>I&#39;m new to vtk. So, forgive me for my simple question!<br><br>I&#39;m trying to use vtkCutter on a vtkPolydata to get all the points inside a specific plane. However, it seems vtkCutter doesn&#39;t return any cell that lies completely inside the cutting plane!<br>
<br>Here is a very simple example in C++:<br><br>//Adding some points (3 of them in the x-y plane)<br>vtkPoints *pPoints = vtkPoints::New();   <br>pPoints-&gt;InsertNextPoint(1,0,-0.5);<br>pPoints-&gt;InsertNextPoint(0,1,0);<br>
pPoints-&gt;InsertNextPoint(-1,0,0);<br>pPoints-&gt;InsertNextPoint(0,-1,0);   <br><br>vtkPolyData *pPolydata = vtkPolyData::New();<br>pPolydata-&gt;SetPoints(pPoints);<br><br>vtkPolygon *pPolygon = vtkPolygon::New();<br>
pPolygon-&gt;GetPointIds()-&gt;SetNumberOfIds(4);<br>for (int i=0;i&lt;4;i++)<br>{<br>    pPolygon-&gt;GetPointIds()-&gt;SetId(i,i);<br>}<br>pPolydata-&gt;Allocate(1,1);<br>pPolydata-&gt;InsertNextCell(pPolygon-&gt;GetCellType(),pPolygon-&gt;GetPointIds());<br>
<br> // The cutting plane is the x-y plane<br>vtkPlane *pPlane = vtkPlane::New();   <br>pPlane-&gt;SetOrigin(0,0,0);<br>pPlane-&gt;SetNormal(0,0,1);    <br><br>// Cut<br>vtkCutter *pCutter = vtkCutter::New();       <br>pCutter-&gt;SetCutFunction(pPlane);<br>
pCutter-&gt;SetInput(pPolydata);<br>pCutter-&gt;Update();<br>vtkPolyData *pCutterOutput = pCutter-&gt;GetOutput();<br><br>vtkPoints *Pts = pCutterOutput-&gt;GetPoints();<br>int nPts = Pts-&gt;GetNumberOfPoints();<br><br>now, the pCutterOutput contains only two points (0,1,0) &amp; (0,-1,0). I was expecting it will contain also (-1,0,0) since it&#39;s in the same plane (x-y plane). Am I missing something??<br>
<br>Thanks for your help!<br><br>