Closed marcofiletto closed 6 months ago
I solved it by merging SVG geometries before applying the subtraction.
const geometries = shape.children.map(child => child.geometry);
const mergedGeometry = mergeGeometries(geometries);
and of course, no map needed, just use <Subtraction geometry={mergedGeometry} />
Hi there! I'm trying to use
<Subtraction>
within a map. The idea is to take each path of an SVG and apply subtraction to it.but for some reason it only subtract the first child any suggestions?