Filter out infinite shapes from Sweep available surfaces

This commit is contained in:
theosib
2024-09-20 08:18:27 -05:00
committed by Chris Hennes
parent f65a9ffec5
commit 5755e70636
+3 -2
View File
@@ -199,10 +199,11 @@ void SweepWidget::findShapes()
}
}
if (shape.ShapeType() == TopAbs_FACE ||
if (!shape.Infinite() &&
(shape.ShapeType() == TopAbs_FACE ||
shape.ShapeType() == TopAbs_WIRE ||
shape.ShapeType() == TopAbs_EDGE ||
shape.ShapeType() == TopAbs_VERTEX) {
shape.ShapeType() == TopAbs_VERTEX)) {
QString label = QString::fromUtf8(obj->Label.getValue());
QString name = QString::fromLatin1(obj->getNameInDocument());