sgenoud / replicad

The library to build browser based 3D models with code.
https://replicad.xyz
MIT License
323 stars 38 forks source link

Interpolate curves #112

Open maelp opened 8 months ago

maelp commented 8 months ago

Side question: I see there are a lot of approximation /interpolation code in lib2d to represent all kinds of curves, would it be possible using this code to load a DXF file, and represent the corresponding curve as an regularly-interpolated polygon? This could be useful to me

sgenoud commented 8 months ago

It might be possible to do it - the issue I had is that DXF only has a notion of line and no real notion of surface. I have been working on a separated library for 2d stuff only (pantograph, you can find it in my github) that should be able to do it (but I won't have anything to touch it before next year)!