minor code clean ups removing previously hidden unwanted code

PrimitiveFeature.cpp
PrimitiveFeature.h
This commit is contained in:
jmaustpc 2013-11-11 16:49:30 +11:00 committed by Yorik van Havre
parent b256fd8a4b
commit 4811aa6d2c
2 changed files with 7 additions and 11 deletions

View File

@ -553,8 +553,7 @@ App::DocumentObjectExecReturn *RegularPolygon::execute(void)
return new App::DocumentObjectExecReturn("Less than the minimum 3 sides is invalid");
if (Radius.getValue() < Precision::Confusion())
return new App::DocumentObjectExecReturn("Radius of prism too small");
// if (Height.getValue() < Precision::Confusion())
// return new App::DocumentObjectExecReturn("Height of prism too small");
try {
long nodes = NumberOfSides.getValue();
@ -569,8 +568,6 @@ App::DocumentObjectExecReturn *RegularPolygon::execute(void)
v = mat * v;
}
mkPoly.Add(gp_Pnt(v.x,v.y,v.z));
// BRepBuilderAPI_MakeFace mkFace(mkPoly.Wire());
// BRepPrimAPI_MakePrism mkPrism(mkFace.Face(), gp_Vec(0,0,Height.getValue()));
this->Shape.setValue(mkPoly.Shape());
}
catch (Standard_Failure) {

View File

@ -229,7 +229,6 @@ public:
App::PropertyIntegerConstraint NumberOfSides;
App::PropertyLength Radius;
// App::PropertyLength Height;
/** @name methods override feature */
//@{