CADmium-Co / CADmium

A CAD program that runs in the browser
https://cadmium-co.github.io/CADmium/
Other
1.46k stars 59 forks source link

Face selection #99

Closed dzervas closed 5 months ago

dzervas commented 5 months ago

This PR adds the scaffold to be able to easily add and test different approaches to the face selection problem described in #98

I created a benchmark that takes all the available solvers, uses them in different test cases and produces an HTML report with SVGs showing the generated face geometry and what is selected before and after mutating the sketch.

A report looks like this:

image

NOTE: Something's wrong with merge_faces and it crashes (segment not found in active-vec-set: 2), that's why the bottom right image doesn't exist. Also for some reason I can't get SVG to actually fill the path to show which face is selected

dzervas commented 5 months ago

Merging to dev from #101