Part: [skip ci] fix shape builder to create filled face from vertexes

This commit is contained in:
wmayer
2020-09-25 13:42:39 +02:00
parent bf262b4188
commit b44d20dbd8
2 changed files with 2 additions and 2 deletions

View File

@@ -924,7 +924,7 @@ private:
}
if (numConstraints == 0) {
throw Py::Exception(PartExceptionOCCError, "Failed to created face with no constraints");
throw Py::Exception(PartExceptionOCCError, "Failed to create face with no constraints");
}
builder.Build();

View File

@@ -322,7 +322,7 @@ void ShapeBuilderWidget::createFaceFromVertex()
}
else {
cmd = QString::fromLatin1(
"_=Part.makeFilledFace([Part.makePolygon(%1, True)])\n"
"_=Part.makeFilledFace(Part.makePolygon(%1, True).Edges)\n"
"if _.isNull(): raise RuntimeError('Failed to create face')\n"
"App.ActiveDocument.addObject('Part::Feature','Face').Shape=_\n"
"del _\n"