mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025635: Wrong result of 2D-extrema between two ellipsis
Fixed Lipschitz constant evaluation in case co-parametrized objects. Fixed 2dextrema output. Testcase update to new behavior. Test cases for issue CR25635 Correction of test cases for issue CR25635
This commit is contained in:
@@ -250,20 +250,23 @@ static Standard_Integer extrema(Draw_Interpretor& di, Standard_Integer n, const
|
||||
|
||||
gp_Pnt2d P1,P2;
|
||||
Ex.Points(i,P1,P2);
|
||||
di << "dist " << i << ": " << Ex.Distance(i) << " \n";
|
||||
di << "dist " << i << ": " << Ex.Distance(i) << " ";
|
||||
if (Ex.Distance(i) <= Precision::PConfusion()) {
|
||||
Handle(Draw_Marker2D) mark = new Draw_Marker2D( P1, Draw_X, Draw_vert);
|
||||
dout << mark;
|
||||
dout.Flush();
|
||||
Sprintf(name,"%s%d","ext_",i);
|
||||
char* temp = name;
|
||||
DrawTrSurf::Set(temp, P1);
|
||||
di << name << "\n";
|
||||
}
|
||||
else {
|
||||
Handle(Geom2d_Line) L = new Geom2d_Line(P1,gp_Vec2d(P1,P2));
|
||||
Handle(Geom2d_TrimmedCurve) CT =
|
||||
new Geom2d_TrimmedCurve(L, 0., P1.Distance(P2));
|
||||
Handle(Geom2d_TrimmedCurve) CT = new Geom2d_TrimmedCurve(L, 0., P1.Distance(P2));
|
||||
Sprintf(name,"%s%d","ext_",i);
|
||||
char* temp = name; // portage WNT
|
||||
DrawTrSurf::Set(temp, CT);
|
||||
di << name << " ";
|
||||
di << name << "\n";
|
||||
}
|
||||
}
|
||||
if (i==1)
|
||||
|
Reference in New Issue
Block a user