[vtkusers] Nonrectangular selection of points (vertices) or cells (triangles) on a mesh surface (paraview like)

Berti Krüger berti_krueger at hotmail.com
Fri Sep 7 05:11:45 EDT 2018


Hello everyone.

In my project i have a standard 3D STL triangle surface mesh where i need to select all vertices which lie inside a region (polygon) defined by a closed polyline created by an user interaction using the vtkContourWidget:

[cid:6bce5125-0cf4-43a0-962c-cc9dd5a593f1]

[cid:dc6cff08-ee3c-4c70-bea2-9e44a8578c05]


Paraview has a similiar feature called "select points with polygon" or "select cells with polygon":


[cid:4238abb5-92ec-41d2-a435-867a45d1a7cb]


At the end of the process i want to create a polygon mesh which has the shape of the vtkContourWidget polygon selection contour line and which lies like a sticker or texture on the the given stl mesh surface.


If anybody can help me with ideas / suggestions / hints / pointers on how to accomplish this with vtk i would be glad.



Thank you very much in advance,


Berti

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/cfadbf02/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selection1.png
Type: image/png
Size: 968853 bytes
Desc: selection1.png
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/cfadbf02/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selection2.png
Type: image/png
Size: 983210 bytes
Desc: selection2.png
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/cfadbf02/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paraview.png
Type: image/png
Size: 295118 bytes
Desc: paraview.png
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/cfadbf02/attachment-0005.png>


More information about the vtkusers mailing list