LDraw.org Discussion Forums
[0.2.1] LDForge - 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: [0.2.1] LDForge (/thread-8711.html)

Pages: 1 2 3 4 5 6 7 8 9 10


Re: [0.2 Alpha] LDForge - Santeri Piippo - 2013-10-16

It works with decimals but isn't always able to find a solution. As I said it's quite cheap and isn't totally fool-proof. It cannot find any solutions for 10.4 - 23.5 but gets this for 10 - 23.5..

Code:
Ring 20, scale by 0.5 (10 -> 10.5)
Ring 7, scale by 1.5 (10.5 -> 12)
Ring 8, scale by 1.5 (12 -> 13.5)
Ring 3, scale by 4.5 (13.5 -> 18)
Ring 12, scale by 1.5 (18 -> 19.5)
Ring 39, scale by 0.5 (19.5 -> 20)
Ring 20, scale by 1 (20 -> 21)
Ring 14, scale by 1.5 (21 -> 22.5)
Ring 45, scale by 0.5 (22.5 -> 23)
Ring 46, scale by 0.5 (23 -> 23.5)

Still indeed needs work..


Re: [0.2 Alpha] LDForge - Santeri Piippo - 2013-10-16

I've heavily reworked and improved the algorithm now. It should find more solutions and tries harder to find the most optimal one.
http://pastebin.com/kP9RXd9a

Unfortunately it still cannot find rings between 10.4 and 23.5. Rings and Cones seems to find one but I don't think this is anything but a rare corner case anyway... and even then Rings and Cones prints a 5 ring solution.

The algorithm now gets this for 10 - 23.5:
Code:
Ring 10, scale by 1 (10 -> 11)
Ring 1, scale by 11 (11 -> 22)
Ring 44, scale by 0.5 (22 -> 22.5)
Ring 45, scale by 0.5 (22.5 -> 23)
Ring 46, scale by 0.5 (23 -> 23.5)

Rings and Cones gets a 4 ring solution. I don't think I have the patience to improve this any further. Tongue
Plus this does have the advantage of being much faster than Rings and Cones at finding the solutions!

I think I'll make a sample program using this algorithm so that people can try it out.

EDIT: Updated. Turned out that r1 / 2 is a particularly good splitting point since the area between r1 / 2 and r1 can be covered with a single ring1. This chomps another ring off the 10 - 23.5 case:
Code:
Ring 10, scale by 1 (10 -> 11)
Ring 22, scale by 0.5 (11 -> 11.5)
Ring 46, scale by 0.25 (11.5 -> 11.75)
Ring 1, scale by 11.75 (11.75 -> 23.5)

This is in fact the other of Rings and Cones' 4-ring answers, albeit the rings are in different order the numbers are the same. Not too bad, mmh?


Re: [0.2 Alpha] LDForge - Philippe Hurbain - 2013-11-11

Santeri,
I used LDForge to sort out lines/condlines when creating these hair parts but when I imported the meshes some triangles (one or two per mesh) were dropped out by LDForge, leaving a hole.

Otherwise, one feature I'd like (and which shouldn't be too difficult to implement) is a hide/unhide condlines button...


Re: [0.2 Alpha] LDForge - Santeri Piippo - 2013-12-19

Philippe Hurbain Wrote:I used LDForge to sort out lines/condlines when creating these hair parts but when I imported the meshes some triangles (one or two per mesh) were dropped out by LDForge, leaving a hole.
Sorry for the late reply, I've been busy with studies and all, but now I got that stuff out of the way and I'm going to graduate later today. Smile

There turned out to actually be a rather glaring bug in 0.2 which causes every 300th line to be skipped. I've patched this for 0.3 which I hope to put out soon, before Christmas hopefully.

EDIT: actually screw it, I'll hotfix it.

Philippe Hurbain Wrote:Otherwise, one feature I'd like (and which shouldn't be too difficult to implement) is a hide/unhide condlines button...
I could slip this in.


Re: [0.2.1] LDForge - Santeri Piippo - 2013-12-19

Version 0.2.1 of LDForge is now out, fixing a bug causing LDForge to skip every 300th line of a given file. See release document and downloads here


Re: [0.2 Alpha] LDForge - Philippe Hurbain - 2013-12-19

Quote:rather glaring bug in 0.2 which causes every 300th line
A nice one, with hair on legs and all Wink


Re: [0.2 Alpha] LDForge - Santeri Piippo - 2013-12-19

It's funny enough that it was just a matter of removing 3 characters in the code to fix that...


Re: [0.2.1] LDForge - Michael Heidemann - 2013-12-21

I just downloaded and extract the zip.

If I try to open the file 44937s01.dat LDForge immediately crashes.
I tried the same as admin, but the same result.

What is going wrong on my machine (win8)?


Re: [0.2.1] LDForge - Stan Isachenko - 2013-12-21

Quote:I just downloaded and extract the zip.
If I try to open the file 44937s01.dat LDForge immediately crashes.
I tried the same as admin, but the same result.
What is going wrong on my machine (win8)?

I had the same problem, but then i found solution. I create new file, put some triangles there and save it. Then other parts start to open normaly.


Re: [0.2.1] LDForge - Michael Heidemann - 2013-12-21

Strange behaviour - but thanks for the hint - it works Smile