mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +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:
@@ -64,6 +64,7 @@ class OpenGl_AspectMarker;
|
||||
class OpenGl_AspectText;
|
||||
class OpenGl_FrameBuffer;
|
||||
class OpenGl_Structure;
|
||||
class OpenGl_TriangleSet;
|
||||
class OpenGl_Element;
|
||||
class Image_PixMap;
|
||||
|
||||
@@ -224,6 +225,9 @@ public:
|
||||
//! Returns currently applied polygon offset params.
|
||||
const TEL_POFFSET_PARAM& AppliedPolygonOffset() { return PolygonOffset_applied; }
|
||||
|
||||
//! @return true if clipping algorithm enabled
|
||||
inline Standard_Boolean IsCullingEnabled() const { return myIsCullingEnabled; }
|
||||
|
||||
protected:
|
||||
|
||||
//! Copy content of Back buffer to the Front buffer
|
||||
@@ -599,6 +603,7 @@ protected: //! @name protected fields
|
||||
Standard_Boolean myUseZBuffer;
|
||||
Standard_Boolean myUseDepthTest;
|
||||
Standard_Boolean myUseGLLight;
|
||||
Standard_Boolean myIsCullingEnabled; //!< frustum culling flag
|
||||
|
||||
protected: //! @name fields related to status
|
||||
|
||||
|
Reference in New Issue
Block a user