add feature loft

This commit is contained in:
Stefan Tröger
2015-06-03 07:47:05 +02:00
parent 1635b5c807
commit de24cbc189
5 changed files with 320 additions and 6 deletions

View File

@@ -278,12 +278,7 @@ App::DocumentObjectExecReturn *Pipe::execute(void)
}
if(getAddSubType() == FeatureAddSub::Additive) {
auto* b = getDocument()->addObject("Part::Feature", "base");
static_cast<Part::Feature*>(b)->Shape.setValue(base);
b = getDocument()->addObject("Part::Feature", "pipe");
static_cast<Part::Feature*>(b)->Shape.setValue(result);
BRepAlgoAPI_Fuse mkFuse(base, result);
if (!mkFuse.IsDone())
return new App::DocumentObjectExecReturn("Adding the pipe failed");