0030412: Visualization, TKV3d - add presentation of camera frustum
authorosa <osa@opencascade.com>
Mon, 17 Dec 2018 09:01:17 +0000 (12:01 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 11 Jan 2019 15:57:52 +0000 (18:57 +0300)
commit30a1b24e197e467e809128196a9708c5243c1af9
treee5c4653929539b34db18f5af7a443a79b76dfa4a
parent25333d45eacee8663f6d766fb192c650c44a3c37
0030412: Visualization, TKV3d - add presentation of camera frustum

1) Added method Graphic3d_Camera::FrustumPoints() returning corner points of camera frustum.
2) Refactored methods OpenGl_BVHTreeSelector::isFullOut(...) and OpenGl_BVHTreeSelector::CacheClipPtsProjections()
3) Changed computation algorithm of frustum planes (build them by corner points)
4) Added interactive object AIS_CameraFrustum to draw camera frustum.
5) Extended Draw command "vcamera" with option displaying camera frustum.
src/AIS/AIS_CameraFrustum.cxx [new file with mode: 0644]
src/AIS/AIS_CameraFrustum.hxx [new file with mode: 0644]
src/AIS/FILES
src/Graphic3d/Graphic3d_Camera.cxx
src/Graphic3d/Graphic3d_Camera.hxx
src/OpenGl/OpenGl_BVHTreeSelector.cxx
src/OpenGl/OpenGl_BVHTreeSelector.hxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug30412 [new file with mode: 0644]