[TD]Fix bad circles (fix #16980) (#17182)

* [TD]fix spurious messages in GeometryMatcher

* [TD]fix closed circle test (fix #16980)
This commit is contained in:
WandererFan
2024-10-14 11:47:04 -04:00
committed by GitHub
parent 17e9f10ca7
commit 227cd14022
2 changed files with 25 additions and 29 deletions

View File

@@ -218,9 +218,11 @@ bool GeometryMatcher::compareBSplines(const TopoDS_Edge& edge1, const TopoDS_Edg
return compareEndPoints(edge1, edge2);
}
if (!(GeometryUtils::isCircle(edge1) && GeometryUtils::isCircle(edge2))) {
return false;
}
// deal with bsplines as circles
BRepAdaptor_Curve adapt1(edge1);
BRepAdaptor_Curve adapt2(edge2);
bool isArc1(false);
bool isArc2(false);
TopoDS_Edge circleEdge1;