Merge pull request #16613 from theosib/main

Filter out infinite objects from Part Loft and Sweep
This commit is contained in:
Chris Hennes
2024-09-20 08:17:41 -05:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -137,10 +137,11 @@ void LoftWidget::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());
QTreeWidgetItem* child = new QTreeWidgetItem();

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