[vtkusers] How to clip a 3D mesh with a curve surface?

pnt1614 minpu.code at gmail.com
Tue Mar 20 20:24:24 EDT 2018


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


More information about the vtkusers mailing list