1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0029948: Uninitialized variable in GeomEvaluator_OffsetSurface::CalculateD0(...) method

Variable "NStatus" from GeomEvaluator_OffsetSurface class is now initialized correctly.
This commit is contained in:
nbv 2018-07-11 17:29:54 +03:00 committed by bugmaster
parent 92a55b01af
commit 73e403b8c6

View File

@ -466,7 +466,7 @@ void GeomEvaluator_OffsetSurface::CalculateD0(
derivatives(MaxOrder, 1, theU, theV, myBaseAdaptor, 0, 0, AlongU, AlongV, L, DerNUV, DerSurf);
gp_Dir Normal;
CSLib_NormalStatus NStatus;
CSLib_NormalStatus NStatus = CSLib_Singular;
CSLib::Normal(MaxOrder, DerNUV, the_D1MagTol, theU, theV, Umin, Umax, Vmin, Vmax,
NStatus, Normal, OrderU, OrderV);
if (NStatus == CSLib_InfinityOfSolutions)