replicad-decorate

0.1.0 • Public • Published

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 });
}

Readme

Keywords

none

Package Sidebar

Install

npm i replicad-decorate

Weekly Downloads

3

Version

0.1.0

License

AGPL-3.0-or-later

Unpacked Size

271 kB

Total Files

8

Last publish

Collaborators

  • sgenoud