Toponaming/Part: Clean and add tests for FeatureMirroring and FeatureOffset

This commit is contained in:
bgbsww
2024-03-15 08:09:34 -04:00
parent b4bb92465f
commit 7a520a4ea6
6 changed files with 295 additions and 8 deletions

View File

@@ -95,9 +95,9 @@ App::DocumentObjectExecReturn *Offset::execute()
auto shape = Feature::getTopoShape(source);
if(shape.isNull())
return new App::DocumentObjectExecReturn("Invalid source link");
auto join = static_cast<TopoShape::JoinType>(Join.getValue());
auto join = static_cast<JoinType>(Join.getValue());
this->Shape.setValue(TopoShape(0).makeElementOffset(
shape,offset,tol,inter,self,mode,join,fill));
shape,offset,tol,inter,self,mode,join,fill ? FillType::fill : FillType::noFill));
#endif
return App::DocumentObject::StdReturn;
}