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

0027787: Visualization, TKOpenGl - Optimize rendering by additional check whether the object is fully clipped or not

OpenGl_Structure::Render() now checks if structure is entirely clipped to skip rendering at all,
or entirely NOT clipped to disable clipping / capping plane.

OpenGl_ShaderManager now defines dedicated GLSL programs for one and two clipping planes
to optimize rendering on slow hardware.
This commit is contained in:
dbp
2016-08-18 19:41:05 +03:00
committed by bugmaster
parent afa6834bcd
commit 1a7ece8f23
7 changed files with 178 additions and 40 deletions

View File

@@ -316,6 +316,15 @@ public:
return aMin1 < aMin2 ? aMin1 : aMin2;
}
//! Computes the dot product.
Element_t Dot (const NCollection_Vec4& theOther) const
{
return x() * theOther.x() +
y() * theOther.y() +
z() * theOther.z() +
w() * theOther.w();
}
//! Compute per-component division by scale factor.
NCollection_Vec4& operator/= (const Element_t theInvFactor)
{