Time to revisit SVG path to LDraw conversion?


RE: Time to revisit SVG path to LDraw conversion?
#10
Thanks for the screenshots. The points you show there seem to be erroneous. There should be no such "Steiner points" on line segments, unless they were added to remove T-Junktions.

The code is open source, so if a new tool should be made, then the existing code can be used for inspiration. The primary pieces of code to convert from SVG to LDraw is: 
This files, which converts svg files to straight line primitives

These helper files:
Convert arc primitives
Convert Bezier curves

From your reply, I will raise and prioritize the tasks as follows:
1) Fix the bugs with triangles and additional points, that should not be there.
2) Add point output for "0 !LPE VERTEX meta" as toggle
3) Change precision to "max angle" and allow the max angle to be configured.
4) Fix those InkScape overlapping path color conversions.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Time to revisit SVG path to LDraw conversion? - by Lasse Deleuran - 2022-12-15, 7:45
RE: SVG... - by Franklin W. Cain - 2022-12-15, 14:53
RE: SVG... - by Orion Pobursky - 2022-12-15, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)