简体   繁体   中英

implementation of vtk boxwidget2

Currently, I am trying to write a script to select the visualized points with user interaction. I looked through vtk sources and it seems one can use widget called vtkBoxWidget2 to select. However, I can not find an example in python. My aim is to let user resize and modify the boxwidget (that's easy with the pipeline ) and then select the points inside of the box and return the selected point ids I would appreciate if anyone could share a snippet of the codes for this task in python. Thanks in advance

There is an example where the usage of vtkBoxWidget2 is demonstrated. It is located in the VTK source directory:

interaction/Widgets/Testing/Python/TestInteractorEventRecorder.py

Or just grab it from the VTK repository on github .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM