mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-05 20:27:38 +08:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user