Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solid hatch does not cover some elements even if it is pushed to top with Order #1790

Open
dellus opened this issue May 21, 2024 · 5 comments
Labels
bug An error which causes unexpected or unintended results

Comments

@dellus
Copy link

dellus commented May 21, 2024

Expected behavior:

Solid hatch covers all elements below if it is pushed to top with Order.

Observed behavior:

Polylines, text and dimension line text stay visible.

Steps to reproduce or sample file:

Draw some elements including polylines, rectangles, dimension lines. Draw an extra rectangle covering large part of the other elements and fill it with a solid hatch of some colour. Push the solid to the uppermost position with the Order command.

Operating System and LibreCAD version info:

Version: 2.2.1_rc2-1-g4cd3b138 Appimage
Compiler: GNU GCC 11.4.0
Compiled on: May 13 2024
Qt Version: 5.15.3
Boost Version: 1.74.0
System: fossapup64 9.5

@dellus
Copy link
Author

dellus commented May 21, 2024

Sample file:
solidtest220.zip
An even more weird sample, an older file:
arch_cm_100_a4_uebung_220.zip
It shows right in normal view, but wrong in Print Preview. I couldn't reproduce this in a new drawing.
All samples behave well in LibreCAD 2.2.0. Not in 2.2.1.

@dxli
Copy link
Member

dxli commented May 21, 2024

What about hatches

@dxli dxli added the bug An error which causes unexpected or unintended results label May 30, 2024
@dxli
Copy link
Member

dxli commented Jun 2, 2024

For solid, we should allow setting of its alpha channel.

Or simply setting alpha=1, say, for printing.

@dellus
Copy link
Author

dellus commented Jun 2, 2024

Alpha channel for solids - what does this mean? I know in bitmap graphics it's about transparency. Would this help for this issue? It works all right in 2.2.0 without that feature.
But anyway I would appreciate to be able to set a transparency value for a solid. It's valuable for graphical effects, for example in an architectural facade drawing, laying a shade over an already coloured surface to give a three-dimensional impression.
This would make LibreCAD an interesting tool for graphic designers as it is a pain to draw with exact dimensions in usual graphic apps like inkscape. A new area for LibreCAD to expand into.

By the way, the new Entity Info tool does not react to a solid (normal hatch works), and the solid also prevents other entities beneath it to be detected.

@dxli
Copy link
Member

dxli commented Jun 6, 2024

It appears to me the trouble is limited to polylines.

Other primitive geometries are hidden by the solid fill, if sent to bottom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error which causes unexpected or unintended results
Projects
None yet
Development

No branches or pull requests

2 participants