[TD]fix rotation of complex section

This commit is contained in:
wandererfan
2022-11-09 09:21:54 -05:00
committed by WandererFan
parent 5cedb9ea4e
commit eb407feb60
2 changed files with 10 additions and 2 deletions

View File

@@ -319,7 +319,14 @@ TopoDS_Shape DrawComplexSection::prepareShape(const TopoDS_Shape &cutShape, doub
return TopoDS_Shape();
}
return scaleShape(alignedResult, getScale());
TopoDS_Shape preparedShape = scaleShape(alignedResult, getScale());
if (!DrawUtil::fpCompare(Rotation.getValue(), 0.0)) {
preparedShape = TechDraw::rotateShape(preparedShape,
getProjectionCS(),
Rotation.getValue());
}
return preparedShape;
}
//for Aligned strategy, cut the rawShape by each segment of the tool