[LDPatternCreator] Known Bugs?


[LDPatternCreator] Known Bugs?
#1
Hello,

as I wrote a few times before, that I am very motivated to fix the last "unknown" bugs in the code of LDPatternCreator (LPC).

The main problem is, that I am not able to reproduce some of the critical errors.

Here is a list of issues which require in my opinion more investigation:

  1. From time to time, LPC "forget" the information of primitives. The geometry is still there (triangles, etc.), but the primitives are gone.
  2. Sometimes, the information of the background image offset and scale is missing.

PS: LPC is compared to LD Part Editor a very small piece of software (25k lines of code vs. 100.000 loc).
Reply
Re: [LDPatternCreator] Known Bugs?
#2
Thanks for taking those up!

Here is one case:

"LDPC displays Primitives oriented incorrectly"

The primitives that are used in this design were copied multiple times. After copying somehow I got the impressing that whatever changes I did to the copied primitive were applied on the source-primitive as well. However the source primitive did not change its appearance on the screen.

Now what is in the LPC file: When opening the LPC all primitives look correctly aligned, however if you select them one by one, you see that some are scaled with positive values and some with negative values. The *.DAT Export will then show the primitives according to this orientation which does not match the display of LPC.

Files are attached

Gerald


Attached Files
.lpc   2126-AB-L.lpc (Size: 285.29 KB / Downloads: 0)
.dat   2126a-test3-1.dat (Size: 51.95 KB / Downloads: 0)
Reply
Re: [LDPatternCreator] Known Bugs?
#3
Something that imho qualifies as a bug: if you change post-processing options, they are not saved along with LPC files, this can be annoying if you work again on same file later.
Reply
Re: [LDPatternCreator] Known Bugs?
#4
I'll investigate on the background image once I'm back home by the end of April.

w.
LEGO ergo sum
Reply
Re: [LDPatternCreator] Known Bugs?
#5
This isn't a bug but nonetheless a bit annoying:

* Drawing a curve, it would be useful if you could define the number of vertices also at the beginning and change the number once the end point is set. This most true in those cases where you draw more sections and the number of vertices gets stored in between. This is even more annoying when you finish with say 2 or 3 vertices only and start a new curve - you simlpy lack accuracy.

* It's not possible to select the vertices of the templates say to divide a line. You have to get rid off the template in order to do that.

* It would be nice if you could set the snap via toolbar buttons instead of the a bit cryptic (1/1000 LDU). At least for 1, 10, 100, 1000.

w.
LEGO ergo sum
Reply
Re: [LDPatternCreator] Known Bugs?
#6
I am trying since about a week to reproduce this (I can see what the error did, not where the root cause is). I will not give up... just want to say that I am doing something.
Reply
Re: [LDPatternCreator] Known Bugs?
#7
One more I came across:

"When a Vertex is positioned close or on top of a Reference Line, e.g. when using Templates, it cannot be selected and moved"

You can click on the vertex, LDPC will give you the coordinates, however you cannot move it.

Thansk
Reply
Re: [LDPatternCreator] Known Bugs?
#8
Not so much of a bug, rather a question/request:

When I use the templates, I can use a .dat file where the pattern will be applied to.

Now I am generating bent stickers. Can I include the box for the stickers, which consists of quads, into the template file? It looks like it is only reading the first quad.

This is the template:

Code:
1
4 191 -8 -0.149 38.98 -8 0 40 -8 2 20 -8 1.752 19.963
4 191 -8 1.752 19.963 -8 2 20 -8 6 0 -8 5.757 -0.061
4 191 -8 5.757 -0.061 -8 6 0 -8 12 -20 -8 11.764 -20.083
4 191 -8 11.764 -20.083 -8 12 -20 -8 20 -40 -8 19.397 -39.166
4 191 8 1.752 19.963 8 2 20 8 0 40 8 -0.149 38.98
4 191 8 5.757 -0.061 8 6 0 8 2 20 8 1.752 19.963
4 191 8 11.764 -20.083 8 12 -20 8 6 0 8 5.757 -0.061
4 191 8 19.397 -39.166 8 20 -40 8 12 -20 8 11.764 -20.083
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1

-8 0
-8 19.1
8 19.1
8 0
CUT
-8 19.1
-8 39.5
8 39.5
8 19.1
CUT
-8 39.5
-8 60.4
8 60.4
8 39.5
CUT
-8 60.4
-8 81
8 81
8 60.4
{-8 0; -8 19.1; 8 19.1; 8 0} {-8 -0.1492 38.9795; -8 1.7525 19.9629; 8 1.7525 19.9629; 8 -0.1492 38.9795}
{-8 19.1; -8 39.5; 8 39.5; 8 19.1} {-8 1.7525 19.9629; -8 5.7572 -0.0607; 8 5.7572 -0.0607; 8 1.7525 19.9629}
{-8 39.5; -8 60.4; 8 60.4; 8 39.5} {-8 5.7572 -0.0607; -8 11.7638 -20.0827; 8 11.7638 -20.0827; 8 5.7572 -0.0607}
{-8 60.4; -8 81; 8 81; 8 60.4} {-8 11.7638 -20.0827; -8 19.3973 -39.1664; 8 19.3973 -39.1664; 8 11.7638 -20.0827}

Sometimes it crashes, sometimes it generates only the first quad.
Reply
Re: [LDPatternCreator] Known Bugs?
#9
Nils Schmidt Wrote:The main problem is, that I am not able to reproduce some of the critical errors.

Here is a list of issues which require in my opinion more investigation:

  1. Sometimes, the information of the background image offset and scale is missing.

Here we go. Presumably you've loaded an image and have already set some vertices. Now:

* Hide the window with the image preferences "View > Image F5" (as a side note I never understood why it isn't called "View > Image-Preferences F5" since there is also "View-Preferences" and the window itself is named "Background-Image". Asking me I would rename both to "Image-Preferences ").
* With the window hidden save the file.
* Loading the file the X- and Y-Offset are set to 0 while Scale has been set to 1

On the spur of the moment:

* Closing LDPatternCreator and re-launching it I always get it with the grid shown and the color bar hidden. I really want the GUI as I set it. Don't these setting getting saved?

* I wish LDPC had a Txt2dat feature

* I wish creating a spline the end point would be set after aborting the last section (where the first point is identical with the last point of the previous section).

w.
LEGO ergo sum
Reply
Re: [LDPatternCreator] Known Bugs?
#10
Was any of you successful moving, deleting, manipulating the vertices of a reference line?

w.
LEGO ergo sum
Reply
Re: [LDPatternCreator] Known Bugs?
#11
I mentioned this some posts above, I cannot select them either.
Reply
Re: [LDPatternCreator] Known Bugs?
#12
The correct template would be

Code:
1
4 191 -8 -0.149 38.98 -8 0 40 -8 2 20 -8 1.752 19.963<br>4 191 -8 1.752 19.963 -8 2 20 -8 6 0 -8 5.757 -0.061<br>4 191 -8 5.757 -0.061 -8 6 0 -8 12 -20 -8 11.764 -20.083<br>4 191 -8 11.764 -20.083 -8 12 -20 -8 20 -40 -8 19.397 -39.166<br>4 191 8 1.752 19.963 8 2 20 8 0 40 8 -0.149 38.98<br>4 191 8 5.757 -0.061 8 6 0 8 2 20 8 1.752 19.963<br>4 191 8 11.764 -20.083 8 12 -20 8 6 0 8 5.757 -0.061<br>4 191 8 19.397 -39.166 8 20 -40 8 12 -20 8 11.764 -20.083
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1

-8 0
-8 19.1
8 19.1
8 0
CUT
-8 19.1
-8 39.5
8 39.5
8 19.1
CUT
-8 39.5
-8 60.4
8 60.4
8 39.5
CUT
-8 60.4
-8 81
8 81
8 60.4
{-8 0; -8 19.1; 8 19.1; 8 0} {-8 -0.1492 38.9795; -8 1.7525 19.9629; 8 1.7525 19.9629; 8 -0.1492 38.9795}
{-8 19.1; -8 39.5; 8 39.5; 8 19.1} {-8 1.7525 19.9629; -8 5.7572 -0.0607; 8 5.7572 -0.0607; 8 1.7525 19.9629}
{-8 39.5; -8 60.4; 8 60.4; 8 39.5} {-8 5.7572 -0.0607; -8 11.7638 -20.0827; 8 11.7638 -20.0827; 8 5.7572 -0.0607}
{-8 60.4; -8 81; 8 81; 8 60.4} {-8 11.7638 -20.0827; -8 19.3973 -39.1664; 8 19.3973 -39.1664; 8 11.7638 -20.0827}
Reply
Re: [LDPatternCreator] Known Bugs?
#13
Thanks! Will try this way!
Reply
Re: [LDPatternCreator] Known Bugs?
#14
I have got a very interesting/funny behavior (which I need to confirm after a reboot):

- I have a PPT open
- I run an "Export DAT" from LDPC
- When LDPC finishes, my PowerPoint gets the focus again and an empty slide is added!
Reply
Re: [LDPatternCreator] Known Bugs?
#15
I confirm this behaviour: while exporting dat, LPC seems to throw some carriage return to other opened apps.
Reply
Re: [LDPatternCreator] Known Bugs?
#16
May be this comes from using "Rectifier". As your tools say "press ENTER to quit" may be there is an additonal key-stroke being sent somewhere
Reply
Re: [LDPatternCreator] Known Bugs?
#17
I think that Niels recompiled it without this prompt for LPC usage...
Reply
Re: [LDPatternCreator] Known Bugs?
#18
* LDPC will not load primitives if there are two blanks after the matrix instead of one. Try this:

1 1 78 -0.25 9 1.6 0 0 0 1 0 0 0 1.6 1-4disc.dat
1 1 78 -0.25 -9 0 0 1.6 0 1 0 -1.6 0 0 1-4disc.dat
4 1 -78 -0.25 9 -78 -0.25 10.6 -73.729 -0.25 7.75 -73.805 -0.25 7.196
4 1 -71.823 -0.25 7.758 -73.729 -0.25 7.75 -78 -0.25 10.6 -67.44 -0.25 10.6
4 1 -67.767 -0.25 7.933 -69.884 -0.25 7.808 -71.823 -0.25 7.758 -67.44 -0.25 10.6

w.
LEGO ergo sum
Reply
Re: [LDPatternCreator] Known Bugs?
#19
Since the installation of Windows 10, my mouse wheel is no longer working with LDPatterCreator. I can't zoom in or out that way. I must set the zoom value manually, which is quite painful to work with.

Any idea?
Reply
Scroll Wheel Zoom Feature broken in Win10
#20
Plus (+) or Minus (-) will modify the zoom value, too.
I have to investigate and reproduce the issue on my Win10 workstation.

edit: I was able to fix this and provide a new release soon.
Reply
Fix for background image offset and scale
#21
Willy Tschager Wrote:Presumably you've loaded an image and have already set some vertices. Now:

* Hide the window with the image preferences "View > Image F5"
* With the window hidden save the file.
* Loading the file the X- and Y-Offset are set to 0 while Scale has been set to 1

I solved this problem today with the release of version 1.5.9.
Reply
Mysterious ENTER key-strokes
#22
Gerald Lasser Wrote:May be this comes from using "Rectifier". As your tools say "press ENTER to quit" may be there is an additonal key-stroke being sent somewhere
That is correct. To be precise: The key stoke will be sent to "Rectifier", "Unificator" and "SlicerPro".
LDPatternCreator can sent this key-stroke to other applications, too.
This occurs, if one of the programs ("Rectifier", "Unificator" / "SlicerPro") lost focus during the export.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)