libcutter icon indicating copy to clipboard operation
libcutter copied to clipboard

Separate draw logic from list of operation logic

Open rsaxvc opened this issue 4 years ago • 2 comments

Currently, libcutter operates on a single operation/command at a time.

We should transition to a more flexible list-of-operations approach. Ex:

  • SVG parsing becomes a file -> list-of-operations
  • Rescale becomes (list-of-operations, scale) -> list-of-operations
  • Cutting becomes list-of-operations -> device
  • Bounds check becomes (list-of-operations, device, deviceConfig) -> boolean
  • operation order optimization(#38 ) becomes list-of-operations -> list-of-operations

rsaxvc avatar Apr 26 '21 04:04 rsaxvc

This could also be used to unify the GCode and SVG parsers. All parsing => operations => optimization & output.

citelao avatar Apr 28 '21 17:04 citelao

That's what I'm thinking. Also things like scale-to-fit and bounds check pre enforcement before potentially ruining a big sheet of expensivium.

rsaxvc avatar Apr 28 '21 23:04 rsaxvc