Filter out infinite shapes from Sweep available surfaces

This commit is contained in:
theosib
2024-09-17 15:13:30 -04:00
committed by GitHub
parent 9e5f4e57cd
commit b1891aaf60

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());