Eliminating regressions
Fixed compilation warning ('di' : unreferenced formal parameter).
Added test bugs/modalg_5/bug25578
BW1.MakeWire(newW1);
BW2.MakeWire(newW2);
- GeomAdaptor_Curve aC1Adaptor(C1);
- GeomAdaptor_Curve aC2Adaptor(C2);
+ GeomAdaptor_Curve aC1Adaptor;
+ if (!C1.IsNull())
+ aC1Adaptor.Load(C1);
+ GeomAdaptor_Curve aC2Adaptor;
+ if (!C2.IsNull())
+ aC2Adaptor.Load(C2);
// calculate the surface
Handle(Geom_Surface) surface;
//purpose : Changes a weight of a pole on B-spline curve/surface
//=======================================================================
-static Standard_Integer setweight(Draw_Interpretor& di, Standard_Integer n, const char** a)
+static Standard_Integer setweight(Draw_Interpretor& /*di*/, Standard_Integer n, const char** a)
{
if (n < 4 || n > 5)
{
--- /dev/null
+puts "========="
+puts "OCC25578"
+puts "========="
+puts ""
+###########################################################
+# SIGSEGV in BRepSweep_Rotation in case of singularities
+###########################################################
+
+psphere Sphere 5 0 90 90
+explode Sphere F
+revol rr Sphere_1 0 0 0 0 0 1 360
+revol rr Sphere_1 0 0 0 1 0 0 90