From: ika Date: Tue, 4 Apr 2023 13:15:59 +0000 (+0100) Subject: 0033356: Data Exchange - Wrong half of sphere is imported X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=66676e383e1472260b3ed96387443d88730f47e5;p=occt.git 0033356: Data Exchange - Wrong half of sphere is imported Add a check for the preferable curve 2D/3D into pcurve checking. --- diff --git a/src/XSAlgo/XSAlgo_AlgoContainer.cxx b/src/XSAlgo/XSAlgo_AlgoContainer.cxx index 60da82932b..ede8cbecb5 100644 --- a/src/XSAlgo/XSAlgo_AlgoContainer.cxx +++ b/src/XSAlgo/XSAlgo_AlgoContainer.cxx @@ -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"<