sgenoud / replicad-decorate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 "https://cdn.jsdelivr.net/npm/replicad-decorate/dist/studio/replicad-decorate.js";

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

You can have a look at what it looks like here

About


Languages

Language:JavaScript 100.0%