<div dir="ltr">Hello pnt1614,<div><br></div><div>Have a look at a similar C++ example of vtkSelectPolyData (from Bill's VTK examples)</div><div><br></div><div><a href="https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/SelectPolyData/">https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/SelectPolyData/</a><br></div><div><br></div><div>FYI, the selectionPoints object defines the curves that clips yours surface.</div><div><br></div><div>hth</div><div><br></div><div>Goodwin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 21, 2018 at 12:24 AM, pnt1614 <span dir="ltr"><<a href="mailto:minpu.code@gmail.com" target="_blank">minpu.code@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have searched on the google and there is an answer<br>
(<a href="http://vtkusers.public.kitware.narkive.com/UA15hWtq/mesh-cutting-using-freehand-curve" rel="noreferrer" target="_blank">http://vtkusers.public.<wbr>kitware.narkive.com/UA15hWtq/<wbr>mesh-cutting-using-freehand-<wbr>curve</a>)<br>
but I do not completetly understand.<br>
<br>
A part of answer is<br>
<br>
Try out this pipeline:<br>
(in Tcl but it's the same idea in any language)<br>
<br>
vtkPoints selectionPoints<br>
selectionPoints InsertNextPoint 1.0 1.0 1.0<br>
# etc...<br>
<br>
vtkSelectPolyData select<br>
select SetLoop selectionPoints<br>
# connect your data here<br>
select SetInputConnection [mydataFilter GetOutputPort]<br>
select GenerateSelectionScalarsOn<br>
select SetSelectionModeToLargestRegio<wbr>n;<br>
<br>
vtkClipPolyData selectclip<br>
selectclip SetInputConnection [select GetOutputPort]<br>
selectclip SetValue 0.0<br>
<br>
I am using C++ and I do not understand "selectedPoints" part. Is there<br>
someone using Tcl? Please help me. Thank you<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
</blockquote></div><br></div>