-
-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I'm looking for a way to create dogbone fillets for cnc machine. I know it can be done with some math and arcs but wonder if it can be done better.
the .customCorner(fillet) is a charm - and I was expecting it will work exactly as dogbone with negative values - but it seems like behaviour is determined by abs value so -4 and 4 give identical results.
Also, it'd be nice to collect the current points as we draw (although I'm not sure this is possible):
const points = [];
s
.vLineTo(10)
.savePosition((p) => points.push[p])
.hLineTo(10)
.savePosition((p) => points.push[p])Then we just iterate points and cut holes as we need.
to go further, tags would also be nice to have:
s
.vLineTo(10, {tag: 'dogbone1'})
.done()
s.select(v => v.tag.includes('dogbone')).map(v => v.[start|end|params|length|etc])
s.select(v => someTag) // we don't even need to draw in some cases - just extract some points (which otherwise hard to calculate) to create 3d wires.This alone will cover lots of use-cases.
To summarise:
- Can .customCorner be changed to work with negative values? (I understand that's a braking change)
- Why there is no customCorner for Sketcher?
- In general, I see a use-case for draw() to be some calculation helper as well as drawer - is something mentioned above possible?
Metadata
Metadata
Assignees
Labels
No labels