maker.js icon indicating copy to clipboard operation
maker.js copied to clipboard

[suggestion] Expand $() functions abilities

Open vespakoen opened this issue 7 years ago • 3 comments

Happy new year!

I was looking at cadquery (https://dcowden.github.io/cadquery/apireference.html#d-operations) and thought their API is quite nice, I'd like to suggest extending it's functionality to include things like fillet, dogbone and the drawing functions that remember the "current position", like moveTo, lineTo, lineH, lineV etc.

vespakoen avatar Jan 02 '19 17:01 vespakoen

Here is my hacky attempt at it (only has some basics at the moment): https://github.com/makercam/makercam/blob/master/src/drawing.ts

vespakoen avatar Jan 05 '19 16:01 vespakoen

Hey @vespakoen Happy new year to you! That is a pretty cool API. Would be cool to make it a standalone project outside of MakerCam so that it can be used in other projects.

danmarshall avatar Jan 10 '19 01:01 danmarshall

@vespakoen some of these commands such as moveTo, lineTo etc. might be good for a new ChainBuilder class. But that idea would only be a subset of what your example contains.

danmarshall avatar Jan 17 '19 00:01 danmarshall