[LDPE] 1.8.64 Released (rectifier defaults / usability / txt2dat)


txt2dat - feature requests
#4
(2023-02-26, 18:01)Philippe Hurbain Wrote: Thanks Nils!

I made some tests of the new version of Txt2Dat, there are still a few things I don't like  Big Grin

  1. Why use direct colors for text/background instead of LDraw codes such as 0 / 15 ?
  2. Why is there sooo many vertices in straight portions of letter shapes? Eg. in Arial, "L" should have a total of 6 vertices... Increasing "interpolate flatness" improves the result, but the vertices issue is not solved before other problems appear.
  3. There's a glitch in "w" top (Arial font, default parameters).
  4. It would be great to display currently used font name
  5. The result would be much more easy to use if the text was completely included in background, adding a small margin on all sides (only the 4 corner vertices to manage)
  6. Parameter "min angle between line segments" seem to have no action?

Maybe have a look at Ross Crawford work? source is public here https://roscohead.id.au/txt2dat

Thanks for your feedback! I am thinking about removing "interpolate flatness" completely. It just adds vertices to line segments, which is "pointless"* Big Grin

1.) I prefered direct colours. When I implemented it, a few years ago, I wanted to use them, because it does not collide with anything which might be already in your file.
2.) * "interpolate flatness" is basically a workaround to avoid triangulation errors, but it also introduces a lot of additional triangles. I will try to find a solution with a constrained Delaunay triangulation. This will make the interpolated flatness unnecessary. For this, I can take a look at Ross Crawford's work, too! (#947)
3.) Constrained Delaunay triangulation will solve this (#946).
4.) I created an issue (#948).
5.) I created another issue (#949).
6.) The "min angle" has no effect. It is not used. I will try to find out, what the original intention was (#950).
Reply
« Next Oldest | Next Newest »



Messages In This Thread
txt2dat - feature requests - by Nils Schmidt - 2023-02-27, 19:38

Forum Jump:


Users browsing this thread: 1 Guest(s)