1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +03:00

0030698: Volume Rendering - Early clipping of volume object's bounding box

Flag to control check of bounding box clipping before drawing has been added.
This commit is contained in:
iko
2019-05-07 15:44:39 +03:00
committed by bugmaster
parent 7c1a821000
commit 8e6ce38cf4
3 changed files with 15 additions and 7 deletions

View File

@@ -527,16 +527,16 @@ void OpenGl_Structure::Render (const Handle(OpenGl_Workspace) &theWorkspace) con
}
const Graphic3d_ClipState aBoxState = aPlane->ProbeBox (aBBox);
if (aBoxState == Graphic3d_ClipState_Out)
{
isClipped = true;
break;
}
else if (aBoxState == Graphic3d_ClipState_In)
if (aBoxState == Graphic3d_ClipState_In)
{
aCtx->ChangeClipping().SetEnabled (aPlaneIt, false);
hasDisabled = true;
}
else if (aBoxState == Graphic3d_ClipState_Out && myBndBoxClipCheck)
{
isClipped = true;
break;
}
}
}