]> OCCT Git - occt.git/commitdiff
0033356: Data Exchange - Wrong half of sphere is imported
authorika <ika@opencascade.com>
Tue, 4 Apr 2023 13:15:59 +0000 (14:15 +0100)
committerika <ika@opencascade.com>
Tue, 4 Apr 2023 14:38:27 +0000 (15:38 +0100)
Add a check for the preferable curve 2D/3D into pcurve checking.

src/XSAlgo/XSAlgo_AlgoContainer.cxx

index 60da82932b12933e6633d6b9c20397f27b695e70..ede8cbecb566cdeccf052f086861f24e22858f14 100644 (file)
@@ -326,7 +326,10 @@ Standard_Boolean XSAlgo_AlgoContainer::CheckPCurve (const TopoDS_Edge& E,
   Standard_Real Dist11 = PV1.Distance(P1), Dist22 = PV2.Distance(P2);
     
   if (!((Dist11 <= preci) && (Dist22 <= preci))) {
-    ShapeBuild_Edge().RemovePCurve(E,face);
+    if (Abs(Interface_Static::IVal("read.surfacecurve.mode")) == 2)
+      ShapeBuild_Edge().RemoveCurve3d(E);
+    else
+      ShapeBuild_Edge().RemovePCurve(E, face);
 #ifdef OCCT_DEBUG
     std::cout<<"Removing pcurve points"<<std::endl;
 #endif