[TD]fix crash on Cosmetic line > 10m

This commit is contained in:
wandererfan
2024-08-18 10:06:59 -04:00
committed by WandererFan
parent 21865c4e62
commit 2caf34c466
4 changed files with 9 additions and 4 deletions

View File

@@ -1130,6 +1130,8 @@ PyObject* DrawUtil::colorToPyTuple(App::Color color)
}
//check for crazy edge. This is probably a geometry error of some sort.
// note that cosmetic edges are stored as unscaled, so this test will be checking 1:1 lengths.
// a 1:1 length of > 10m is perfectly reasonable, so this check causes trouble with cosmetics.
bool DrawUtil::isCrazy(TopoDS_Edge e)
{