[Part] Extrusion: fix logic issue

has actually no influence on the output but is important to understand the logic of the code
This commit is contained in:
Uwe
2022-01-31 00:23:33 +01:00
parent 89e623e1b7
commit 341a92f08d

View File

@@ -531,7 +531,7 @@ void Extrusion::makeDraft(const ExtrusionParameters& params, const TopoDS_Shape&
continue;
}
// get MomentOfInertia of first shape
BRepGProp::VolumeProperties(*itInner, tempProperties);
BRepGProp::VolumeProperties(*itOuter, tempProperties);
momentOfInertiaInitial = tempProperties.MomentOfInertia(gp_Ax1(gp_Pnt(), params.dir));
BRepAlgoAPI_Cut mkCut(*itOuter, *itInner);
if (!mkCut.IsDone())