lorensen / VTKExamples

The VTK examples, formerly hosted on media wiki
Apache License 2.0
342 stars 157 forks source link

why AreaPicking demo can't picking more than one point? #629

Closed hisupersylar closed 4 years ago

hisupersylar commented 4 years ago

hi,everybody: i have question when i run the demo of the src/cxx/Picking/AreaPicking,I use the default RubberBandPick style. first ,i select a box which only contains a point,then i see the debug output is right. but,when i select a box contains more than one point, the output is not right. i see that the debug output shows only one point which was be selected. who can help me ?

ajpmaclean commented 4 years ago

The PickCallbackFunction() is displaying the picked prop not the points. So you should be expecting to see the address of the prop. There is only one prop so it doesn't matter if one or more points are picked.

On Wed, Nov 20, 2019 at 9:08 PM shaw king kwok notifications@github.com wrote:

hi,everybody: i have question when i run the demo of the src/cxx/Picking/AreaPicking,I use the default RubberBandPick style. first ,i select a box which only contains a point,then i see the debug output is right. but,when i select a box contains more than one point, the output is not right. i see that the debug output shows only one point which was be selected. who can help me ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lorensen/VTKExamples/issues/629?email_source=notifications&email_token=ACBHQO4XNJYLIBJVN3A5WVLQUUEC7A5CNFSM4JPQIRLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2VSFEQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBHQO5RMVHQ3FI7ZQAW2SDQUUEC7ANCNFSM4JPQIRLA .

--


Andrew J. P. Maclean


ajpmaclean commented 4 years ago

HighlightSelectedPoints will probably do the job for you since it displays the selected points.

hisupersylar commented 4 years ago

HighlightSelectedPoints will probably do the job for you since it displays the selected points.

thanks