Advertisement

VTK修炼之道79:交互与拾取

阅读量:

1.单位拾取方法与实现

复制代码
>       1. #include <vtkAutoInit.h>

>  
>       2. VTK_MODULE_INIT(vtkRenderingOpenGL)
>  
>       3. VTK_MODULE_INIT(vtkInteractionStyle)
>  
>       4. VTK_MODULE_INIT(vtkRenderingFreeType)
>  
>       5.  
>  
>       6. #include <vtkSmartPointer.h>
>  
>       7. #include <vtkSphereSource.h>
>  
>       8. #include <vtkPolyDataMapper.h>
>  
>       9. #include <vtkActor.h>
>  
>       10. #include <vtkProperty.h>
>  
>       11. #include <vtkRenderer.h>
>  
>       12. #include <vtkRenderWindow.h>
>  
>       13. #include <vtkRenderWindowInteractor.h>
>  
>       14

全部评论 (0)

还没有任何评论哟~