replicad-shrink-wrap
v0.1.0
Published
A function to return the shrink wrapped version of a replicad drawing
Downloads
11
Readme
replicad shrink wrap
This is a library based on replicad.
This library contains a set of helpers to shrink wrap a drawing. This corresponds to the hull operation in some CAD software.
As a library
This module can be used either as a library:
pnpm install replicad-shrink-wrap
Within the replicad studio
You can also import it within the replicad studio
import shrinkWrap from "https://cdn.jsdelivr.net/npm/replicad-shrink-wrap/dist/studio/replicad-shrink-wrap.js";
export default function main() {
const baseShape = drawCircle(20).sketchOnPlane().extrude(52);
return addVoronoi(baseShape, { faceIndex: 1, depth: -2 });
}