+ check if filleting shape is valid
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5010 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
dec04353f0
commit
5ccf289f29
|
@ -65,10 +65,12 @@ App::DocumentObjectExecReturn *Fillet::execute(void)
|
|||
return new App::DocumentObjectExecReturn("Linked object is not a Part object");
|
||||
Part::Feature *base = static_cast<Part::Feature*>(Base.getValue());
|
||||
const Part::TopoShape& TopShape = base->Shape.getShape();
|
||||
if (TopShape._Shape.IsNull())
|
||||
return new App::DocumentObjectExecReturn("Cannot fillet invalid shape");
|
||||
|
||||
const std::vector<std::string>& SubVals = Base.getSubValuesStartsWith("Edge");
|
||||
if (SubVals.size() == 0)
|
||||
return new App::DocumentObjectExecReturn("No Edges specified");
|
||||
return new App::DocumentObjectExecReturn("No edges specified");
|
||||
|
||||
float radius = Radius.getValue();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user