txt2dat - feature requests
2023-02-27, 19:38 (This post was last modified: 2023-02-27, 19:42 by Nils Schmidt.)
2023-02-27, 19:38 (This post was last modified: 2023-02-27, 19:42 by Nils Schmidt.)
(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
- Why use direct colors for text/background instead of LDraw codes such as 0 / 15 ?
- 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.
- There's a glitch in "w" top (Arial font, default parameters).
- It would be great to display currently used font name
- 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)
- 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"*
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).