0.1.0 • Published 1 year ago

replicad-decorate v0.1.0

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
1 year ago

replicad decorate

This is a library based on replicad.

This library contains a set of helpers to decorate faces of your models with different patterns:

  • an inset (addInset)
  • a grid (addGrid)
  • a honeycomb (addHoneycomb)
  • a voronoi pattern (addVoronoi)
  • some text (addText)
  • or a SVG (addSVG)

You can play with the parameters of these function is the small webapp based on this library, BlingMyThing

As a library

This module can be used either as a library:

yarn add replicad-decorate

You can have a look at how it is used within BlingMyThing.

Within the replicad studio

You can also import it within the replicad studio

import { addVoronoi } from "";

export function main() {
  const baseShape = drawCircle(20).sketchOnPlane().extrude(52);
  return addVoronoi(baseShape, { faceIndex: 1, depth: -2 });
}