mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0029729: Visualization, Graphic3d_ClipPlane - add support of clipping plane chains
Graphic3d_ClipPlane now can define a Chain of Planes (logical AND). OpenGl_ShaderManager - added new GLSL sub-programs for clipping plane chains. Bnd_Range::TrimFrom(), ::TrimTo() - added auxiliary methods for trimming the range. SelectMgr_ViewClipRange now handles non-continuous clipping range. Graphic3d_SequenceOfHClipPlane now aggregates NCollection_Sequence instead of inheritance. OpenGl_CappingPlaneResource - triangulation has been adjusted to make front face following CCW order.
This commit is contained in:
@@ -1205,7 +1205,7 @@ void OpenGl_View::renderScene (Graphic3d_Camera::Projection theProjection,
|
||||
const Handle(OpenGl_Context)& aContext = myWorkspace->GetGlContext();
|
||||
|
||||
// Specify clipping planes in view transformation space
|
||||
aContext->ChangeClipping().Reset (aContext, myClipPlanes);
|
||||
aContext->ChangeClipping().Reset (myClipPlanes);
|
||||
if (!myClipPlanes.IsNull()
|
||||
&& !myClipPlanes->IsEmpty())
|
||||
{
|
||||
@@ -1218,7 +1218,7 @@ void OpenGl_View::renderScene (Graphic3d_Camera::Projection theProjection,
|
||||
// Apply restored view matrix.
|
||||
aContext->ApplyWorldViewMatrix();
|
||||
|
||||
aContext->ChangeClipping().Reset (aContext, Handle(Graphic3d_SequenceOfHClipPlane)());
|
||||
aContext->ChangeClipping().Reset (Handle(Graphic3d_SequenceOfHClipPlane)());
|
||||
if (!myClipPlanes.IsNull()
|
||||
&& !myClipPlanes->IsEmpty())
|
||||
{
|
||||
|
Reference in New Issue
Block a user