[vtkusers] Pick From vtkLineSource added to vtkAppendPolyData

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Sep 11 20:49:56 EDT 2013


And avoid posting  questions at  <vtk-developers at vtk.org> unless question
is related to vtk development.
Regards,
        Alex


On Wed, Sep 11, 2013 at 5:46 PM, Alex Malyushytskyy <alexmalvtk at gmail.com>wrote:

>
> vtkPropPicker works only with actors.
> vtkCellPicker will allow you to identify which cell was picked  in polydata
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Picking/CellPicking
>
>
> Alex
>
>
>
> On Wed, Sep 11, 2013 at 9:50 AM, Bhanu Hariharan <bhanu at petrotel.com>wrote:
>
>> Hello,
>>
>>
>> I was wondering if someone can help me on how to pick Lines added to a
>> vtkAppendPolyData.
>> before adding to Mapper and Actor.
>>
>> I saw some example where a linesource was added directly to Mapper and
>> Actor.
>>
>> But I have several lines and having an actor for each one will slow
>> things down considerably. So I use vtkAppendPolyData and add all line
>> sources to it. I then pass the vtkAppendPolyData thorugh a vtktransform and
>> vtktube filter before adding to mapper and actor.
>>
>> Can someone please tell me if its possible to use vtkPropPicker or
>> VtkPicker with vtkAppendPolyData.
>> Also once picked how can I tell which line was picked. Can I assign a
>> global Id to each line?
>>
>> Thanks,
>> Bhanu
>>
>>
>> ------------------------------
>> *DISCLAIMER*: This e-mail and any files transmitted with it ("Message")
>> is intended only for the use of the recipient(s) named above and may
>> contain confidential information. You are hereby notified that the taking
>> of any action in reliance upon, or any review, retransmission,
>> dissemination, distribution, printing or copying of this Message or any
>> part thereof by anyone other than the intended recipient(s) is strictly
>> prohibited. If you have received this Message in error, you should delete
>> this Message immediately and advise the sender by return e-mail. Opinions,
>> conclusions and other information in this Message that do not relate to the
>> official business of PETROTEL  or its affiliated Companies shall be
>> understood as neither given nor endorsed by PETROTEL or any of its
>> affiliated companies.
>> _______________________________________________
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130911/ab1c39ee/attachment.htm>


More information about the vtkusers mailing list