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

Former glory #97

Closed dzervas closed 5 months ago

dzervas commented 5 months ago

I'm mostly try to match the features already implemented in main with the new design, ISOTope, etc.

Many test fixes, renaming of solid to feature, as solids are considered computation result and not "primitive" types. For example an extrusion produces solids (maybe more than 1) but they might change

In a similar manner now each ISketch also holds Compounds. Compounds describe a fixed set of primitives that form a set. For example a rectangle is a compound that includes 4 points and 4 lines. The 2 diagonal points are given as input and the rest (2 points and 4 lines) are created in the sketch.

Compounds are able to track what's theirs so upon deletion of a compound its created primitives get deleted as well

What's left is anything related to face identification (both sketch and solid) - so create sketch on solid face, extrude (ok extrude is implemented but I imagine it's very flaky), etc.

av8ta commented 5 months ago

@dzervas before I merge this could you run pnpm format from root?

dzervas commented 5 months ago

Merging to dev from #101