minor code clean ups removing previously hidden unwanted code
PrimitiveFeature.cpp PrimitiveFeature.h
This commit is contained in:
parent
b256fd8a4b
commit
4811aa6d2c
|
@ -553,8 +553,7 @@ App::DocumentObjectExecReturn *RegularPolygon::execute(void)
|
||||||
return new App::DocumentObjectExecReturn("Less than the minimum 3 sides is invalid");
|
return new App::DocumentObjectExecReturn("Less than the minimum 3 sides is invalid");
|
||||||
if (Radius.getValue() < Precision::Confusion())
|
if (Radius.getValue() < Precision::Confusion())
|
||||||
return new App::DocumentObjectExecReturn("Radius of prism too small");
|
return new App::DocumentObjectExecReturn("Radius of prism too small");
|
||||||
// if (Height.getValue() < Precision::Confusion())
|
|
||||||
// return new App::DocumentObjectExecReturn("Height of prism too small");
|
|
||||||
try {
|
try {
|
||||||
long nodes = NumberOfSides.getValue();
|
long nodes = NumberOfSides.getValue();
|
||||||
|
|
||||||
|
@ -569,8 +568,6 @@ App::DocumentObjectExecReturn *RegularPolygon::execute(void)
|
||||||
v = mat * v;
|
v = mat * v;
|
||||||
}
|
}
|
||||||
mkPoly.Add(gp_Pnt(v.x,v.y,v.z));
|
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());
|
this->Shape.setValue(mkPoly.Shape());
|
||||||
}
|
}
|
||||||
catch (Standard_Failure) {
|
catch (Standard_Failure) {
|
||||||
|
|
|
@ -229,7 +229,6 @@ public:
|
||||||
|
|
||||||
App::PropertyIntegerConstraint NumberOfSides;
|
App::PropertyIntegerConstraint NumberOfSides;
|
||||||
App::PropertyLength Radius;
|
App::PropertyLength Radius;
|
||||||
// App::PropertyLength Height;
|
|
||||||
|
|
||||||
/** @name methods override feature */
|
/** @name methods override feature */
|
||||||
//@{
|
//@{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user