[vtkusers] How to mark a point on a surface
Dominik Szczerba
dominik at itis.ethz.ch
Wed Jun 22 08:45:22 EDT 2011
Go along these lines.
Having a surface mesh you should now also have their corresponding
mapper and actor. Now set up an additional pair, used to display
points independently from the surface. All of them, so you can pick
some and render them in different color. No worries about losing their
coordinates. Then set the additional mapper's color array to use to a
dedicated integer field, which you will modify based on picking
results (e.g. 0/1).
Dominik
On Wed, Jun 22, 2011 at 2:16 PM, soheilghafurian
<soheilghafurian at yahoo.com> wrote:
> Thanks a lot for your answer Dominik. Can explain a little more? which
> classes or methids do you use for this?
>
> Do you mean that you make all the vertices in the surface visible and color
> them the same as the surface, and then you color the picked point
> differently? So, you won't have the possibility of accessing the coordinates
> of the point later, unless you save it in a double[3]. Is that right?
>
> I would be thankful for your explanation (I'm new to vtk)
>
> Soheil
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-to-mark-a-point-on-a-surface-tp4512685p4513841.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list