LDraw.org Discussion Forums
New LDraw tools for parts authors: Unrectifier and Flipper - 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: New LDraw tools for parts authors: Unrectifier and Flipper (/thread-12503.html)



New LDraw tools for parts authors: Unrectifier and Flipper - Philippe Hurbain - 2014-02-18

I started these programs a few months ago, but it took me some time to iron out some bugs... and ages to be motivated enough to write documentation! Neither of them will revolutionize the art of LDraw parts authoring, but they can be helpful nonetheless!

As usual, documentation, source code and Windows executables are available (links below).

Enjoy!

Philo

[Image: ur1.gif]
Rectifier is a useful tool to consolidate triangles into quads and to keep file size down, but doing so make further improvements to the file more difficult. Unrectifier does the opposite, it expands Rect primitives into quads + lines, and split quads into triangle pairs. By default Unrectifier operates on the whole file, but it can also limit itself to key-colored elements. With some limitations, it is also able to update condlines around modified areas.

[Image: fl1.gif]
Flipper allows to flip a pair of triangles (change abc + SPAM CONTENT into abd + dca). This helps in some areas of "organic" meshes (eg. hair pieces) to make them smoother (or on the contrary to create a crease to add an edge line). Flipper operates on colored pairs of triangles, thus allows the user to choose the triangle pairs to swap. With some limitations, it is also able to update condlines around modified areas.


Re: New LDraw tools for parts authors: Unrectifier and Flipper - Christian Neumann - 2014-02-18

Thank you so much, this is great! I like the idea of Flipper, it is very annoying to manually flip areas of LDD meshes. There are a lot of such wrong areas.


Re: New LDraw tools for parts authors: Unrectifier and Flipper - Michael Heidemann - 2014-02-18

I'll try to update LETGUI quickly.


Re: New LDraw tools for parts authors: Unrectifier and Flipper - Philippe Hurbain - 2014-02-18

Well, it is not always so easy to use, improving an area may degrade nearby areas, that you then try to improve, etc.... But at least with Flipper it is easy to experiment!


Re: New LDraw tools for parts authors: Unrectifier and Flipper - Roland Melkert - 2014-02-18

I too ran into the flipper issue when generating the deformed meshes in LDCad.

Do you now of a way to 'predict' the best version of a split or is manual inspection the only way?


Re: New LDraw tools for parts authors: Unrectifier and Flipper - Philippe Hurbain - 2014-02-18

I'm afraid that the eye is the best judge... I considered something like minimizing overall sum of facet angles, but I doubt it would really improve things (and it's probably over my poor programming skills anyway!)


Optimizing 3D Triangulations Using Discrete Curvature Analysis - Philippe Hurbain - 2014-02-20

This paper implies that it is indeed possible to optimize triangulation using "discrete curvature"...


Re: Optimizing 3D Triangulations Using Discrete Curvature Analysis - Roland Melkert - 2014-02-20

This seems very interesting, but I'm not sure it's worth the cost (post processing on the whole set) as we just need to make the choice for a single quad.


Re: New LDraw tools for parts authors: Unrectifier and Flipper - Michael Heidemann - 2014-02-22

LETGUI is now again uptodate.


Re: New LDraw tools for parts authors: Unrectifier and Flipper - Philippe Hurbain - 2014-02-22

Thanks, Mike!