0024470: Wrong result done by General Fuse algorithm.
[occt.git] / src / IntTools / IntTools_FaceFace.cxx
index 1734bc7..36bec81 100644 (file)
@@ -1645,6 +1645,9 @@ reapprox:;
     case GeomAbs_Sphere:
       quad1.SetValue(myHS1->Surface().Sphere());
       break;
+    case GeomAbs_Torus:
+      quad1.SetValue(myHS1->Surface().Torus());
+      break;
     default:
       Standard_ConstructionError::Raise("GeomInt_IntSS::MakeCurve 1");
     }
@@ -1664,6 +1667,9 @@ reapprox:;
     case GeomAbs_Sphere:
       quad2.SetValue(myHS2->Surface().Sphere());
       break;
+    case GeomAbs_Torus:
+      quad2.SetValue(myHS2->Surface().Torus());
+      break;
     default:
       Standard_ConstructionError::Raise("GeomInt_IntSS::MakeCurve 2");
     }
@@ -2437,6 +2443,9 @@ reapprox:;
   case GeomAbs_Sphere:
     quad1.SetValue(HS1->Surface().Sphere());
     break;
+  case GeomAbs_Torus:
+    quad1.SetValue(HS1->Surface().Torus());
+    break;
   default:
     Standard_ConstructionError::Raise("GeomInt_IntSS::MakeCurve");
   }
@@ -2455,6 +2464,9 @@ reapprox:;
   case GeomAbs_Sphere:
     quad2.SetValue(HS2->Surface().Sphere());
     break;
+  case GeomAbs_Torus:
+    quad2.SetValue(HS2->Surface().Torus());
+    break;
   default:
     Standard_ConstructionError::Raise("GeomInt_IntSS::MakeCurve");
   }