hatch

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

hatch

jefken
Hi,
I have a problem with hatch in 2.2.0 rc1 as seen in the attached photo

https://i.imgur.com/9UgzD15.jpg

what do I wrong?
gepensioneerd ingenieur
Gent België
LibreCad 2.2.0 rc1 Windows
Reply | Threaded
Open this post in threaded view
|

Re: hatch

dellus
LibreCAD doesn't like nested hatching, closed loops in the hatching area. Separate the areas by making of an O a C with touching ends or from a rectangle two adjacent L's.
Reply | Threaded
Open this post in threaded view
|

Re: hatch

jefken
OK I understand that dellus,

but why?

Here a screen without solid fill
[img]https://i.imgur.com/atIJvyk.jpg[/img]

and here the screen with solid fill

[img]https://i.imgur.com/JUbax7h.jpg[/img]

Why why this difference between fill activated or not activated?


gepensioneerd ingenieur
Gent België
LibreCad 2.2.0 rc1 Windows
Reply | Threaded
Open this post in threaded view
|

Re: hatch

dellus
I don't know why there is a difference between solid fill and true hatch. Must be a matter of the coding under the hood. Some while (years?) ago there was a discussion here on the forum on this issue. I don't find it anymore. I made some experiments then, have forgotten the details. Anyway, I remember that LibreCAD is very sensitive to the order the outline definition points are set. It may help to split up the areas further to avoid getting these twisted fill areas.
Generally hatching has weaknesses in LC which need improvement.
Reply | Threaded
Open this post in threaded view
|

Re: hatch

LordOfBikes
Administrator
In reply to this post by jefken
jefken,

hatch and solid fill using different techniques.
For hatch a repeated pattern is used and stenciled with the contour.
The direction and order of contour entities doesn't matter here.
But for solid fill a flood fill algorithm is used. For this the direction and order of entities is relevant.
And the algorithm has to detect what is outside and inside and this seems to be buggy.

I had the idea to use polylines for the contour, but this failed too. The result is different, but still invalid.

So if you need solid fill for your drawing I recommend dellus' advice.

Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution
Reply | Threaded
Open this post in threaded view
|

Re: hatch

jefken
Ok thanks

Jozef Bronselaer

Op vr 15 mrt. 2019 12:45 schreef LordOfBikes [via LibreCAD] <[hidden email]>:
jefken,

hatch and solid fill using different techniques.
For hatch a repeated pattern is used and stenciled with the contour.
The direction and order of contour entities doesn't matter here.
But for solid fill a flood fill algorithm is used. For this the direction and order of entities is relevant.
And the algorithm has to detect what is outside and inside and this seems to be buggy.

I had the idea to use polylines for the contour, but this failed too. The result is different, but still invalid.

So if you need solid fill for your drawing I recommend dellus' advice.

Armin



If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/hatch-tp5717084p5717094.html
To unsubscribe from hatch, click here.
NAML
gepensioneerd ingenieur
Gent België
LibreCad 2.2.0 rc1 Windows
Reply | Threaded
Open this post in threaded view
|

Re: hatch

jefken
I have followed all recent tips and split them into individual zones and here are the results. There are no problems then.


[img]https://i.imgur.com/oqMacUX.jpg[/img]

[img]https://i.imgur.com/ArpK6PM.jpg[/img]


I hope that adjustments will be made to hatch in the future so that it becomes a bit easier.
I am just a simple user and unfortunately not a developer.

I have a lot of respect for the many developers of this wonderful CAD program. I used to be an autocad user, but this is too expensive for use by a non-professional user.

jefken
gepensioneerd ingenieur
Gent België
LibreCad 2.2.0 rc1 Windows
Reply | Threaded
Open this post in threaded view
|

Re: hatch

jefken
Here a screenshot of my different hatch in my drawing
[img]https://i.imgur.com/9BXfJvA.jpg[/img]
gepensioneerd ingenieur
Gent België
LibreCad 2.2.0 rc1 Windows