LDraw.org Discussion Forums
[LDPatternCreator] Known Bugs? - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: Parts Author Tools (https://forums.ldraw.org/forum-24.html)
+--- Thread: [LDPatternCreator] Known Bugs? (/thread-16211.html)

Pages: 1 2 3


[LDPatternCreator] Known Bugs? - Nils Schmidt - 2015-04-20

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).


Re: [LDPatternCreator] Known Bugs? - Gerald Lasser - 2015-04-20

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


Re: [LDPatternCreator] Known Bugs? - Philippe Hurbain - 2015-04-20

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.


Re: [LDPatternCreator] Known Bugs? - Willy Tschager - 2015-04-20

I'll investigate on the background image once I'm back home by the end of April.

w.


Re: [LDPatternCreator] Known Bugs? - Willy Tschager - 2015-04-20

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.


Re: [LDPatternCreator] Known Bugs? - Nils Schmidt - 2015-04-29

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.


Re: [LDPatternCreator] Known Bugs? - Gerald Lasser - 2015-05-06

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


Re: [LDPatternCreator] Known Bugs? - Gerald Lasser - 2015-05-06

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.


Re: [LDPatternCreator] Known Bugs? - Willy Tschager - 2015-05-07

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.


Re: [LDPatternCreator] Known Bugs? - Willy Tschager - 2015-05-09

Was any of you successful moving, deleting, manipulating the vertices of a reference line?

w.