<div>Hello everybody,</div>
<div> </div>
<div>I have an open triangular mesh surface in the form of vtkPolyData.</div>
<div> </div>
<div>And i also have a Region of Interest ( ROI ) bounding box. </div>
<div> </div>
<div>How do i extract the geometry within this ROI bounding box from the vtkPolyData surface ?</div>
<div> </div>
<div>I know that, one method is to create a scalar array and assign all the geometry inside the ROI to be of one value ( inside value ) and all the geometry outside the ROI to be of another value ( outside value ).</div>
<div> </div>
<div>But for this, i have to write a loop which sets a scalar value for each and every point in the vtkPolyData, which will take a long time. </div>
<div> </div>
<div>I was looking for a vtk filter which can do this clipping faster.........or is there a way to generate the scalars faster ?</div>
<div> </div>
<div>I am sure there is a nice way of doing this and i am sure there might be a VTK filter for this job, since this is a very commonly performed operation. </div>
<div> </div>
<div>But i could not find a filter in vtk for this.</div>
<div> </div>
<div>Does any one know how to do this ?</div>
<div> </div>
<div>Thanks in advance.</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Deepak Roy</div>
<div> </div>