From d07798d52129c1c16cfcc4799611fa57c47fc375 Mon Sep 17 00:00:00 2001 From: Pasukhin Dmitry Date: Fri, 6 Mar 2026 08:09:40 +0000 Subject: [PATCH] Modeling Data - Fix continuity order mapping in BRepProp_Curve to match GeomProp_Curve (#1141) The condition == 2 only matched GeomAbs_C1 curves for D1 evaluation, while >= 2 (as used in GeomProp_Curve::Continuity()) correctly includes GeomAbs_G2 and higher, since G2 implies G1 which guarantees D1 exists. --- src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx b/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx index 05a9336226..dffad1ef18 100644 --- a/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx +++ b/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx @@ -155,13 +155,13 @@ GeomAbs_Shape BRepProp_Curve::Continuity(const BRepAdaptor_Curve& theCurve1, aN1 = 3; else if (aCont1 == 4) aN1 = 2; - else if (aCont1 == 2) + else if (aCont1 >= 2) aN1 = 1; if (aCont2 >= 5) aN2 = 3; else if (aCont2 == 4) aN2 = 2; - else if (aCont2 == 2) + else if (aCont2 >= 2) aN2 = 1; // Evaluate properties at junction points.