mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Extract of fixes from 0024682: Move out B-spline cache from curves and surfaces to dedicated classes BSplCLib_Cache and BSplSLib_Cache
4. Precised calculation of derivatives of surface of revolution is implemented for the points of surface placed on the axis of revolution (Geom_SurfaceOfRevolution.cxx) 5. Small modifications are made to adjust algorithms to new behavior of B-spline calculation. 6. Test cases were modified according to the modern behavior. 7. Changes in BRepLib_CheckCurveOnSurface to use adaptors instead of geometric entities 9. Added methods to access directly poles, knots, multiplicities of BSpline curves and surfaces
This commit is contained in:
@@ -165,7 +165,13 @@ gp_Dir& Normal
|
||||
// if (D1UMag <= MagTol || D1VMag <= MagTol && NMag > MagTol) MagTol = 2* NMag;
|
||||
}
|
||||
else
|
||||
{ Normal = gp_Dir (D1UvD1V); Status = Defined; }
|
||||
{
|
||||
// Firstly normalize tangent vectors D1U and D1V (this method is more stable)
|
||||
gp_Dir aD1U(D1U);
|
||||
gp_Dir aD1V(D1V);
|
||||
Normal = gp_Dir(aD1U.Crossed(aD1V));
|
||||
Status = Defined;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user