Filter out infinite shapes from Sweep available surfaces
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user