[TD]adjust breakline position

This commit is contained in:
wandererfan
2024-04-05 14:14:41 -04:00
committed by WandererFan
parent 33a3c84d92
commit 239d0423ec
3 changed files with 21 additions and 64 deletions

View File

@@ -1059,6 +1059,7 @@ void QGIViewPart::drawBreakLines()
Base::Vector3d direction = dbv->directionFromObj(*breakObj);
direction.Normalize();
breakLine->setDirection(direction);
// the bounds describe two corners of the removed area
std::pair<Base::Vector3d, Base::Vector3d> bounds = dbv->breakBoundsFromObj(*breakObj);
// the bounds are in 3d form, so we need to invert & rez them
Base::Vector3d topLeft = Rez::guiX(DU::invertY(bounds.first));