Closed paulftw closed 1 year ago
This pinpoints exactly why the Drawing
abstraction is necessary. intersectBlueprints
instersects two Blueprint
object. But fuse2D
returns a Blueprints
object (with just one blueprint in it but you could fuse disjointed paths and have multiple blueprints).
I should tackle this: https://github.com/sgenoud/replicad/issues/46
Anyway, you can obtain what you want with:
return intersectBlueprints(a.blueprints[0], b.blueprints[0])
.sketchOnPlane()
.extrude(1);
I have actually implemented #46 you can just replace new BlueprintSketcher().movePointerTo(pts[0])
by draw(pts[0])
and return a.intersect(b)
.
I think this has been fixed. You can have a look at an example here
intersectBlueprints
throwsCannot read properties of undefined (reading 'length')
. Input blueprints seem sane to me.online demo