Allow faces to be profiles for a sweep & minor fix loft

Allow faces to be used as the profiles for a Part_Sweep
some minor fixes for Part_Loft
This commit is contained in:
jmaustpc
2013-03-10 04:28:38 +11:00
committed by Yorik van Havre
parent ea5f621dde
commit ad0bedcd56
3 changed files with 12 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ SweepWidget::SweepWidget(QWidget* parent)
Gui::Application::Instance->runPythonCode("import Part");
d->ui.setupUi(this);
d->ui.selector->setAvailableLabel(tr("Vertex/Wire"));
d->ui.selector->setAvailableLabel(tr("Vertex/Edge/Wire/Face"));
d->ui.selector->setSelectedLabel(tr("Sweep"));
connect(d->ui.selector->availableTreeWidget(), SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),
@@ -99,7 +99,8 @@ void SweepWidget::findShapes()
const TopoDS_Shape& shape = (*it)->Shape.getValue();
if (shape.IsNull()) continue;
if (shape.ShapeType() == TopAbs_WIRE ||
if (shape.ShapeType() == TopAbs_FACE ||
shape.ShapeType() == TopAbs_WIRE ||
shape.ShapeType() == TopAbs_EDGE ||
shape.ShapeType() == TopAbs_VERTEX) {
QString label = QString::fromUtf8((*it)->Label.getValue());