[TD]handle odd projection cs in broken view
This commit is contained in:
@@ -1056,13 +1056,12 @@ void QGIViewPart::drawBreakLines()
|
||||
QGIBreakLine* breakLine = new QGIBreakLine();
|
||||
addToGroup(breakLine);
|
||||
|
||||
Base::Vector3d direction = dbv->directionFromObj(*breakObj);
|
||||
direction.Normalize();
|
||||
Base::Vector3d direction = dbv->guiDirectionFromObj(*breakObj);
|
||||
breakLine->setDirection(direction);
|
||||
// the bounds describe two corners of the removed area
|
||||
// the bounds describe two corners of the removed area in the view
|
||||
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));
|
||||
Base::Vector3d topLeft = Rez::guiX(DU::invertY(bounds.first));
|
||||
Base::Vector3d bottomRight = Rez::guiX(DU::invertY(bounds.second));
|
||||
breakLine->setBounds(topLeft, bottomRight);
|
||||
breakLine->setPos(0.0, 0.0);
|
||||
|
||||
Reference in New Issue
Block a user