Hi,
Windows 11
QCAD 3.29.4.0 (3.29.4)
I'm seeing only a partial hatch in the shape in the attached file. This is a single polyline, so no gaps. Any ideas?
[SOLVED] Only a partial hatch appears in a closed shape
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
-
- Newbie Member
- Posts: 7
- Joined: Thu Oct 22, 2020 9:49 am
[SOLVED] Only a partial hatch appears in a closed shape
- Attachments
-
- Hatch incomplete.png (8.58 KiB) Viewed 573 times
-
- Hatch settings.png (10.79 KiB) Viewed 573 times
-
- Hatch fail.dxf
- (96.34 KiB) Downloaded 22 times
Last edited by BrianLogan on Sat Mar 16, 2024 10:38 am, edited 1 time in total.
Re: Only a partial hatch appears in a closed shape
Hi,
I can confirm that it doesn't renders the Hatch correctly seeing your result.
Using QCAD 3.27.6.0 nothing is rendered at all.
Solid filled works fine.
Although your polyline is a perfectly singular and logically closed.
I presume that some near verticals are most likely intentionally.
Scaling nor rotating helps in this case.
Nor does altering the Hatching origin or the starting point of your polyline.
We have seen such rare cases of incomplete rendering before, most likely a mathematical issue.
Probably something for reporting as a bug on QCAD Bugtracker:
https://www.ribbonsoft.com/bugtracker/
Regards,
CVH
I can confirm that it doesn't renders the Hatch correctly seeing your result.
Using QCAD 3.27.6.0 nothing is rendered at all.
Solid filled works fine.
Although your polyline is a perfectly singular and logically closed.
I presume that some near verticals are most likely intentionally.
Scaling nor rotating helps in this case.
Nor does altering the Hatching origin or the starting point of your polyline.
We have seen such rare cases of incomplete rendering before, most likely a mathematical issue.
Probably something for reporting as a bug on QCAD Bugtracker:
https://www.ribbonsoft.com/bugtracker/
Regards,
CVH
-
- Newbie Member
- Posts: 7
- Joined: Thu Oct 22, 2020 9:49 am
Re: Only a partial hatch appears in a closed shape
Thanks for confirming. This is a side profile of a plastic enclosure which has a moulding draft, hence the vertical lines are slanted intentionally. I'll report it as a bug.
Re: Only a partial hatch appears in a closed shape
Hi,
Found the culprit ...
The polyline is drawn at Z level -1.8e-15 ...
This doesn't show in the Property Editor even when displaying Z values by preference and with 8 decimal digits.
My bad ... All Z values were displayed as '0' and I did not tried to flatten your file to 2D.
See menu Misc .. Modify .. Flatten Drawing to 2D
Another solution:
Forcing Global Z to zero won't work because the difference is to small.
First force it to a larger value, for example 1, and then back to zero.
On the other hand ...
- I would have expected scientific notation for very small and very large values.
- A value of -1.8e-15 is less than the threshold to be diversified from zero (RS.PointTolerance = 1e-9).
- It eludes me why Hatch boundaries are stored in 3D if QCAD does not render them well.
When considered as solved then please include [SOLVED] in the title of your initial post by editing it.
I already added a comment to your bug report: https://qcad.org/bugtracker/index.php?d ... sk_id=2550
Regards,
CVH
Found the culprit ...
The polyline is drawn at Z level -1.8e-15 ...
This doesn't show in the Property Editor even when displaying Z values by preference and with 8 decimal digits.
My bad ... All Z values were displayed as '0' and I did not tried to flatten your file to 2D.
See menu Misc .. Modify .. Flatten Drawing to 2D
Another solution:
Forcing Global Z to zero won't work because the difference is to small.
First force it to a larger value, for example 1, and then back to zero.
On the other hand ...
- I would have expected scientific notation for very small and very large values.
- A value of -1.8e-15 is less than the threshold to be diversified from zero (RS.PointTolerance = 1e-9).
- It eludes me why Hatch boundaries are stored in 3D if QCAD does not render them well.
When considered as solved then please include [SOLVED] in the title of your initial post by editing it.
I already added a comment to your bug report: https://qcad.org/bugtracker/index.php?d ... sk_id=2550
Regards,
CVH
-
- Newbie Member
- Posts: 7
- Joined: Thu Oct 22, 2020 9:49 am
Re: Only a partial hatch appears in a closed shape
Wow! Thanks, CVH. I would never have found that. I'd seen Z coordinates here and there around QCAD, but always ignored them as I couldn't see their purpose in a 2D CAD package. I guess DXF and DWG format carry the Z coordinates from AutCAD. This shape originated from a drawing done by the enclosure manufacturer, so I guess they didn't take enough care to make sure the Z coordinate was zero.