mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024393: Visualization - objects position with enchanced precision
Graphic3d_ZLayerSettings - public fields have been replaced by methods. Added new property Origin defining local coordinate system for all Layer objects. Syntax of Draw Harness command VZLayer has been redesigned. Graphic3d_CStructure now stores bounding box with double precision floats. OpenGl_BVHTreeSelector - frustum culling now works with double precision floats.
This commit is contained in:
@@ -660,12 +660,12 @@ void StdSelect_ViewerSelector3d::updateZLayers (const Handle(V3d_View)& theView)
|
||||
for (TColStd_SequenceOfInteger::Iterator aLayerIter (aZLayers); aLayerIter.More(); aLayerIter.Next())
|
||||
{
|
||||
Graphic3d_ZLayerSettings aSettings = theView->Viewer()->ZLayerSettings (aLayerIter.Value());
|
||||
if (aSettings.IsSettingEnabled (Graphic3d_ZLayerDepthClear)
|
||||
|| isPrevDepthWrite != aSettings.IsSettingEnabled (Graphic3d_ZLayerDepthWrite))
|
||||
if (aSettings.ToClearDepth()
|
||||
|| isPrevDepthWrite != aSettings.ToEnableDepthWrite())
|
||||
{
|
||||
++aPos;
|
||||
}
|
||||
isPrevDepthWrite = aSettings.IsSettingEnabled (Graphic3d_ZLayerDepthWrite);
|
||||
isPrevDepthWrite = aSettings.ToEnableDepthWrite();
|
||||
myZLayerOrderMap.Bind (aLayerIter.Value(), aPos);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user