mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024427: Wrong section curves
Incorrect curve is got after Decompose method applying. This method's using should be restrict. Decomposition is required if intersection curve contains some parts, where U-parameter on quadric surface changes too sharply. Decompose method is called for Cone and Sphere only (it does not require for Cylinder). Comments are changed by jgv. Test case for issue CR24427 Added test case bugs/moddata_3/bug24427_2 Compiler warning is liquidated. Test is corrected.
This commit is contained in:
@@ -475,7 +475,9 @@ void BoundedArc (const TheArc& A,
|
||||
}
|
||||
|
||||
if (Nbi==1) {
|
||||
if (pardeb == Pdeb && parfin == Pfin) {
|
||||
if ( (Abs(pardeb - Pdeb) < Precision::PConfusion()) &&
|
||||
(Abs(parfin - Pfin) < Precision::PConfusion()))
|
||||
{
|
||||
Arcsol=Standard_True;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user