← All bug reports

FS#2002Draw > Viewport > Add Viewport: Hatch is offset incorrectly in Viewport

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.23.0
Operating system
All
Reported
2019-11-24 by MPN
Closed
2019-11-25 by andrew

Hi,
When a hatch have been offset in the Model then it appears incorrectly when rendered in a Viewport. It seems that in Viewports the hatch Origin value is not taken into consideration. This means that when adjusting a hatch in the Model to look correct (align along a line for example). This alignment is off in the Viewport.

See screenshots and attached test dxf file in this thread on the forum: https://qcad.org/rsforum/viewtopic.php?f=33&t=6742

Edit: After looking more into this issue is seems it is the Viewport's position that is ignored when transforming the pattern into Viewport space. See the following gif:

image: https://i.imgur.com/vD8cOuC.gif
https://i.imgur.com/vD8cOuC.gif

Above it can be seen that that pattern is always rendered in 'worldspace' since the pattern is static (the pattern is not moved when the viewport is moved around)