mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024307: TKOpenGl - efficient culling of large number of presentations
Implement SAT intersection tests and frustum culling algorithm using BVH trees. New Draw command vfrustumculling to manage frustum culling. Add test cases bugs/vis/bug24307_1 and bugs/vis/bug24307_2. Remove CALL_DEF_BOUNDBOX and CALL_DEF_BOUNDS.
This commit is contained in:
@@ -3392,3 +3392,23 @@ void V3d_View::Translate (const Handle(Graphic3d_Camera)& theCamera,
|
||||
|
||||
theCamera->Transform (aPanTrsf);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : IsCullingEnabled
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Standard_Boolean V3d_View::IsCullingEnabled() const
|
||||
{
|
||||
Graphic3d_CView* aView = (Graphic3d_CView* )MyView->CView();
|
||||
return aView->IsCullingEnabled;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : SetFrustumCulling
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void V3d_View::SetFrustumCulling (const Standard_Boolean theToClip)
|
||||
{
|
||||
Graphic3d_CView* aView = (Graphic3d_CView* )MyView->CView();
|
||||
aView->IsCullingEnabled = theToClip;
|
||||
}
|
||||
|
Reference in New Issue
Block a user