Login  Register

Re: [bugs] problems when using selfmade hatches

Posted by LordOfBikes on Oct 09, 2013; 7:20am
URL: https://forum.librecad.org/bugs-problems-when-using-selfmade-hatches-tp5708894p5708996.html

Hi,

I haven't digged into this '-' issue yet, but what speaks against this is the angle of 0.0° when creating the hatch. It shouldn't make any difference in computing the hatch. But it changes the size of code and memory locations of binary code and that is someting that suits my results so far.

My first assumtion on 32/64 bit was killed by the fact, that the issue wasn't present on my 32 bit Ubuntu.
So I started debugging on 32 bit Windows and was surprised, that the debugging version worked well. That may be the reason on your machine, you must test with the release version if the bug is gone. The 64 bit Ubuntu release version worked well too on my machine.

Because debugging on a release version is absolute horror, I found a test case that fails even on 64 bit Ubuntu. I'm not sure yet if it is the same source of failiure, but there's something cooking and I'm working on it.

Here are my test files if you want to have a look on it:
* the pattern
* the contour
which results in this hatch


I reduced the pattern to one arc and two small line segments to keep the size.
The start, end and intersection points of the clones are computed correct with the arc from the pattern file, but somewhere the information about the entity typ are lost. The cause of this may also be responsible for swapping the start and end points on the arcs.dxf pattern which results in the inverted arcs hatch.

Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution