mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0026042: OCCT won't work with the latest Xcode
Dereferenced null pointers was eliminated for PLib, BSplCLib and BSplSLib. All affected code was changed accordingly.
This commit is contained in:
@@ -143,7 +143,7 @@ AppParCurves_Gradient::
|
||||
for (k = 1; k <= nbP3d; k++) {
|
||||
for (l=1; l<=deg+1; l++) TabCoef(l) = TheCoef(l+i2);
|
||||
i2 += deg+1;
|
||||
BSplCLib::CoefsD1(UF, TabCoef, PLib::NoWeights(), Pt, V1);
|
||||
BSplCLib::CoefsD1(UF, TabCoef, BSplCLib::NoWeights(), Pt, V1);
|
||||
MyV = gp_Vec(Pt, TabP(k));
|
||||
FU += MyV*V1;
|
||||
DFU += V1.SquareMagnitude();
|
||||
@@ -152,7 +152,7 @@ AppParCurves_Gradient::
|
||||
for (k = 1; k <= nbP2d; k++) {
|
||||
for (l=1; l<=deg+1; l++) TabCoef2d(l) = TheCoef2d(l+i2);
|
||||
i2 += deg+1;
|
||||
BSplCLib::CoefsD1(UF, TabCoef2d, PLib::NoWeights(), Pt2d, V12d);
|
||||
BSplCLib::CoefsD1(UF, TabCoef2d, BSplCLib::NoWeights(), Pt2d, V12d);
|
||||
MyV2d = gp_Vec2d(Pt2d, TabP2d(k));
|
||||
FU += MyV2d*V12d;
|
||||
DFU += V12d.SquareMagnitude();
|
||||
|
@@ -172,7 +172,7 @@ void AppParCurves_MultiBSpCurve::Value (const Standard_Integer CuIndex,
|
||||
Curve(CuIndex, TabPoles);
|
||||
|
||||
BSplCLib::D0(U,0,myDegree,Standard_False,TabPoles,BSplCLib::NoWeights(),
|
||||
myknots->Array1(),mymults->Array1(),Pt);
|
||||
myknots->Array1(),&mymults->Array1(),Pt);
|
||||
}
|
||||
|
||||
|
||||
@@ -192,7 +192,7 @@ void AppParCurves_MultiBSpCurve::Value (const Standard_Integer CuIndex,
|
||||
Curve(CuIndex, TabPoles);
|
||||
|
||||
BSplCLib::D0(U,0,myDegree,Standard_False,TabPoles,BSplCLib::NoWeights(),
|
||||
myknots->Array1(),mymults->Array1(),Pt);
|
||||
myknots->Array1(),&mymults->Array1(),Pt);
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ void AppParCurves_MultiBSpCurve::D1 (const Standard_Integer CuIndex,
|
||||
Curve(CuIndex, TabPoles);
|
||||
|
||||
BSplCLib::D1(U,0,myDegree,Standard_False,TabPoles,BSplCLib::NoWeights(),
|
||||
myknots->Array1(),mymults->Array1(),Pt,V1);
|
||||
myknots->Array1(),&mymults->Array1(),Pt,V1);
|
||||
}
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
|
||||
Curve(CuIndex, TabPoles);
|
||||
|
||||
BSplCLib::D2(U,0,myDegree,Standard_False,TabPoles,BSplCLib::NoWeights(),
|
||||
myknots->Array1(),mymults->Array1(),Pt,V1,V2);
|
||||
myknots->Array1(),&mymults->Array1(),Pt,V1,V2);
|
||||
}
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ void AppParCurves_MultiBSpCurve::D1 (const Standard_Integer CuIndex,
|
||||
Curve(CuIndex, TabPoles);
|
||||
|
||||
BSplCLib::D1(U,0,myDegree,Standard_False,TabPoles,BSplCLib::NoWeights(),
|
||||
myknots->Array1(),mymults->Array1(),Pt,V1);
|
||||
myknots->Array1(),&mymults->Array1(),Pt,V1);
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
|
||||
Curve(CuIndex, TabPoles);
|
||||
|
||||
BSplCLib::D2(U,0,myDegree,Standard_False,TabPoles,BSplCLib::NoWeights(),
|
||||
myknots->Array1(),mymults->Array1(),Pt,V1,V2);
|
||||
myknots->Array1(),&mymults->Array1(),Pt,V1,V2);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -187,7 +187,7 @@ void AppParCurves_MultiCurve::Value (const Standard_Integer CuIndex,
|
||||
TabPoles(i) = tabPoint->Value(i).Point(CuIndex);
|
||||
}
|
||||
|
||||
BSplCLib::D0 (U, TabPoles,PLib::NoWeights(), Pt);
|
||||
BSplCLib::D0 (U, TabPoles,BSplCLib::NoWeights(), Pt);
|
||||
}
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ void AppParCurves_MultiCurve::Value (const Standard_Integer CuIndex,
|
||||
TabPole(i) = tabPoint->Value(i).Point2d(CuIndex);
|
||||
}
|
||||
|
||||
BSplCLib::D0 (U, TabPole, PLib::NoWeights(), Pt);
|
||||
BSplCLib::D0 (U, TabPole, BSplCLib::NoWeights(), Pt);
|
||||
}
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ void AppParCurves_MultiCurve::D1 (const Standard_Integer CuIndex,
|
||||
TabPole(i) = tabPoint->Value(i).Point(CuIndex);
|
||||
}
|
||||
|
||||
BSplCLib::D1 (U, TabPole, PLib::NoWeights(), Pt, V1);
|
||||
BSplCLib::D1 (U, TabPole, BSplCLib::NoWeights(), Pt, V1);
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
|
||||
TabPole(i) = tabPoint->Value(i).Point(CuIndex);
|
||||
}
|
||||
|
||||
BSplCLib::D2 (U, TabPole, PLib::NoWeights(), Pt, V1, V2);
|
||||
BSplCLib::D2 (U, TabPole, BSplCLib::NoWeights(), Pt, V1, V2);
|
||||
}
|
||||
|
||||
|
||||
@@ -259,7 +259,7 @@ void AppParCurves_MultiCurve::D1 (const Standard_Integer CuIndex,
|
||||
TabPole(i) = tabPoint->Value(i).Point2d(CuIndex);
|
||||
}
|
||||
|
||||
BSplCLib::D1 (U, TabPole, PLib::NoWeights(), Pt, V1);
|
||||
BSplCLib::D1 (U, TabPole, BSplCLib::NoWeights(), Pt, V1);
|
||||
}
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
|
||||
TabPole(i) = tabPoint->Value(i).Point2d(CuIndex);
|
||||
}
|
||||
|
||||
BSplCLib::D2(U, TabPole, PLib::NoWeights(), Pt, V1, V2);
|
||||
BSplCLib::D2(U, TabPole, BSplCLib::NoWeights(), Pt, V1, V2);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user