The curve is trimmed since now in the boundaries of surface
Test case for issue CR24697
Behavior for trimming periodic curves was changed
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);
}
--- /dev/null
+puts "================"
+puts "OCC24697"
+puts "================"
+puts ""
+#######################################################################
+# Exception is raised during projection of the curve on the surface
+#######################################################################
+
+restore [locate_data_file bug24697_curve.draw] c
+restore [locate_data_file bug24697_surf.draw] s
+
+project c2d c s
+
+smallview
+fit
+set only_screen_axo 1