-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling arcs vs? Beziers curves in paths #2345
Comments
Hey, glad it's useful! Arcs should work fine assuming they're part of a closed contour. Does |
Hello, fill_gaps(distance=1.0) doesn't work and fill_gaps(distance=10) neither. the source is just above but if you need it, the code is:
|
It looks like it's the arc discretization not exactly matching the endpoints:
1e-15 is below the trimesh threshold, but apparently above the earcut triangulation threshold. I added an endpoint snap to both bezier and 3-point arc discretization since both bezier curves and 3-point arcs start and end exactly on their control points and we don't have to approximate. |
Hello,
I use trimesh to generate STLs from various SVGs and it works great. My repository is generating tags based on various fonts and in the tag svg, I have arcs. When creating a mesh from this path, the one that has arcs is not watertight and has no volume:
In order to get the second one, I opened the first one in Inkscape and saved after changing the arcs in Bezier curves.
Wondering of there were limitations due to use in arc in paths or any special things to prepare my inputs.
Several parameters are very similar except the lenght:
The text was updated successfully, but these errors were encountered: