SVG paths to CrossSection #506
Loosetooth
started this conversation in
General
Replies: 1 comment 2 replies
-
Yeah I think we need to use something like that plugin. You can write some code to generate the Bezier interpolation, and then run |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone tried to convert SVG paths to
CrossSection
in order to use them in manifold? If so, how did you do it?I was just looking a bit at the manifold JS bindings, and it looks like the CrossSection class can only be constructed from a list of points. Which is fine, but then it begs the question how SVG paths could be converted into a list of points correctly.
I had a look at the existing jscad-text package that has a function to transform SVG path commands into a JSCAD path.
Using (or drawing inspiration from) that plugin could be one way to do it.
The end goal for me here would be to be able to use text paths coming from Opentype.js and extrude them in manifold.
Beta Was this translation helpful? Give feedback.
All reactions