[MOD:PART] removed unused parameter (#14252)

d variable are never used

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
mosfet80
2024-06-24 17:41:39 +02:00
committed by GitHub
parent 926fd370b1
commit 36b9b58eb3
3 changed files with 1 additions and 7 deletions

View File

@@ -1108,7 +1108,6 @@ public:
*
* @param base: the basis shape
* @param axis: the revolving axis
* @param d: rotation angle in degree
* @param face_maker: optional type name of the the maker used to make a
* face from basis shape
* @param supportface: the bottom face for the revolution, or null
@@ -1122,7 +1121,6 @@ public:
*/
TopoShape& makeElementRevolution(const TopoShape& _base,
const gp_Ax1& axis,
double d,
const TopoDS_Face& supportface,
const TopoDS_Face& uptoface,
const char* face_maker = nullptr,
@@ -1133,7 +1131,6 @@ public:
/** Make revolved shell around a basis shape
*
* @param axis: the revolving axis
* @param d: rotation angle in degree
* @param face_maker: optional type name of the the maker used to make a
* face from basis shape
* @param supportface: the bottom face for the revolution, or null
@@ -1146,7 +1143,6 @@ public:
* @return Return the generated new shape. The TopoShape itself is not modified.
*/
TopoShape& makeElementRevolution(const gp_Ax1& axis,
double d,
const TopoDS_Face& supportface,
const TopoDS_Face& uptoface,
const char* face_maker = nullptr,
@@ -1156,7 +1152,6 @@ public:
{
return TopoShape(0, Hasher).makeElementRevolution(*this,
axis,
d,
supportface,
uptoface,
face_maker,

View File

@@ -4455,7 +4455,6 @@ TopoShape& TopoShape::makeElementRevolve(const TopoShape& _base,
TopoShape& TopoShape::makeElementRevolution(const TopoShape& _base,
const gp_Ax1& axis,
[[maybe_unused]]double d,
const TopoDS_Face& supportface,
const TopoDS_Face& uptoface,
const char* face_maker,

View File

@@ -198,7 +198,7 @@ App::DocumentObjectExecReturn* Revolution::execute()
// revolve the face to a solid
// TopoShape result(0);
try {
result = base.makeElementRevolution(gp_Ax1(pnt, dir), angle, supportface, upToFace);
result = base.makeElementRevolution(gp_Ax1(pnt, dir), supportface, upToFace);
}
catch (Standard_Failure&) {
return new App::DocumentObjectExecReturn("Could not revolve the sketch!");