]> OCCT Git - occt-copy.git/commitdiff
0032060: Modeling Algorithms - HLR presentation does not display expected edges CR32060
authornds <nds@opencascade.com>
Fri, 22 Jan 2021 14:49:36 +0000 (17:49 +0300)
committernds <nds@opencascade.com>
Fri, 22 Jan 2021 14:49:36 +0000 (17:49 +0300)
src/Graphic3d/Graphic3d_CView.cxx

index 3f2065a96efb19dabd488dd750948aa829a5f3b4..2f992ea6adf84ea816eb67eaf05a5c14ddfc96ac 100644 (file)
@@ -442,6 +442,14 @@ Bnd_Box Graphic3d_CView::MinMaxValues (const Standard_Boolean theToIncludeAuxili
                                         theToIncludeAuxiliary);
     aResult.Add (aBox);
   }
+
+  // force HLRValidation to False on all structures calculated in the view
+  for (Graphic3d_SequenceOfStructure::Iterator aStructIter (myStructsComputed); aStructIter.More(); aStructIter.Next())
+  {
+    Bnd_Box aBox = aStructIter.Value()->MinMaxValues();
+    aResult.Add (aBox);
+  }
+
   return aResult;
 }