Part: [skip ci] fix shape builder to create filled face from vertexes
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user