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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user