[vtk-developers] How to use vtkSelectPolyData with vtkDelaunay2D gotten output

darkcminor darkcminor at gmail.com
Tue Feb 18 12:20:14 EST 2014


To show a mesh that has some custom points I am using Delaunay to build a
triangulation and get result. 

here is code:

*vtkPoints points = new vtkPoints();
vtkActor actor = new vtkActor();
vtkPolyData pd = new vtkPolyData();   
pd.SetPoints(points);
vtkDelaunay2D delaunay2d = new vtkDelaunay2D(); 
delaunay2d .SetInput(pd);
vtkPolyDataMapper pdm = vtkPolyDataMapper.New();           
pdm.SetInput(delaunay2d.GetOutput());
actor.SetMapper(pdm);*


Now I have in other vtkPolydata a contour inside that mesh. I want to do a
selection with
vtkSelectPolyData so later I will be able to capclip selected Region
following example in
http://www.vtk.org/Wiki/VTK/Examples/CSharp/Meshes/CapClip 

*vtkSelectPolyData loop = vtkSelectPolyData.New();
//loop.SetInputConnection(del2dAOIGrid);
//loop.SetInput(pd );   TRIED THIS BUT IT SAY OPERATOR WORKS WITH SURFACES
PRIMITIVES ONLY 
loop.SetLoop(selectionPoints);//array of point coordinates defining the
loop. at least three points to define a loop.
loop.GenerateSelectionScalarsOn();*

How to solve this step of defining selection points?





--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-use-vtkSelectPolyData-with-vtkDelaunay2D-gotten-output-tp5726004.html
Sent from the VTK - Dev mailing list archive at Nabble.com.


More information about the vtk-developers mailing list