mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024697: Exception is raised during projection of the curve on the surface
The curve is trimmed since now in the boundaries of surface Test case for issue CR24697 Behavior for trimming periodic curves was changed
This commit is contained in:
@@ -150,6 +150,11 @@ Handle(Geom2d_Curve) GeomProjLib::Curve2d(const Handle(Geom_Curve)& C,
|
||||
Handle(Geom_TrimmedCurve) CTrim = Handle(Geom_TrimmedCurve)::DownCast(C);
|
||||
Standard_Real U1 = CTrim->FirstParameter();
|
||||
Standard_Real U2 = CTrim->LastParameter();
|
||||
if (!G2dC->IsPeriodic())
|
||||
{
|
||||
U1 = Max(U1, G2dC->FirstParameter());
|
||||
U2 = Min(U2, G2dC->LastParameter());
|
||||
}
|
||||
G2dC = new Geom2d_TrimmedCurve( G2dC, U1, U2);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user