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

David E DeMarle dave.demarle at kitware.com
Fri Sep 7 08:38:43 EDT 2018


Hello,

The VTK level implementation behind ParaView's polygon selection feature is
exercised/demonstrated by
Rendering/Core/Testing/Cxx/TestPolygonSelection.cxx. You can follow that to
see how a VTK enabled app can make a non rectangular selection.

With that selection you might either extract a subset surface offset it a
bit and change the appearance, or use the preserve topology feature of
selection to make a shallow copy of the original mesh with a new array that
identifies the selected primitives, and use that array as input to the
coloration of the whole to modify its appearance.

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/42fbc4d0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selection1.png
Type: image/png
Size: 968853 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/42fbc4d0/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selection2.png
Type: image/png
Size: 983210 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/42fbc4d0/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paraview.png
Type: image/png
Size: 295118 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180907/42fbc4d0/attachment-0005.png>


More information about the vtkusers mailing list