0032078: Visualization, Poly_Triangulation - add cached bounding box.
[occt.git] / src / BRepBndLib / BRepBndLib_1.cxx
index b63c876..bc3d872 100644 (file)
@@ -196,8 +196,8 @@ static Standard_Integer PointsForOBB(const TopoDS_Shape& theS,
     {
       if (thePts)
       {
-        const gp_Pnt aP = aLoc.IsIdentity() ? aNodesArr(i) :
-          aNodesArr(i).Transformed(aLoc);
+        const gp_Pnt aP = aLoc.IsIdentity() ? aNodesArr[i] :
+          aNodesArr[i].Transformed(aLoc);
         (*thePts)(aRetVal) = aP;
       }
 
@@ -239,8 +239,8 @@ static Standard_Integer PointsForOBB(const TopoDS_Shape& theS,
     {
       if (thePts)
       {
-        const gp_Pnt aP = aLoc.IsIdentity() ? aNodesArr(i) :
-          aNodesArr(i).Transformed(aLoc);
+        const gp_Pnt aP = aLoc.IsIdentity() ? aNodesArr[i] :
+          aNodesArr[i].Transformed(aLoc);
         (*thePts)(aRetVal) = aP;
       }