[vtkusers] How to clip a 3D mesh with a curve surface?
Goodwin Lawlor
goodwin.lawlor.lists at gmail.com
Thu Mar 22 15:48:19 EDT 2018
Hello pnt1614,
Have a look at a similar C++ example of vtkSelectPolyData (from Bill's VTK
examples)
https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/SelectPolyData/
FYI, the selectionPoints object defines the curves that clips yours surface.
hth
Goodwin
On Wed, Mar 21, 2018 at 12:24 AM, pnt1614 <minpu.code at gmail.com> wrote:
> I have searched on the google and there is an answer
> (http://vtkusers.public.kitware.narkive.com/UA15hWtq/
> mesh-cutting-using-freehand-curve)
> but I do not completetly understand.
>
> A part of answer is
>
> Try out this pipeline:
> (in Tcl but it's the same idea in any language)
>
> vtkPoints selectionPoints
> selectionPoints InsertNextPoint 1.0 1.0 1.0
> # etc...
>
> vtkSelectPolyData select
> select SetLoop selectionPoints
> # connect your data here
> select SetInputConnection [mydataFilter GetOutputPort]
> select GenerateSelectionScalarsOn
> select SetSelectionModeToLargestRegion;
>
> vtkClipPolyData selectclip
> selectclip SetInputConnection [select GetOutputPort]
> selectclip SetValue 0.0
>
> I am using C++ and I do not understand "selectedPoints" part. Is there
> someone using Tcl? Please help me. Thank you
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180322/2d4820f3/attachment.html>
More information about the vtkusers
mailing list