JSPM

@thi.ng/geom-subdiv-curve

0.1.11
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 818
  • Score
    100M100P100Q117001F
  • License Apache-2.0

Freely customizable, iterative subdivision curves for open / closed input geometries

Package Exports

  • @thi.ng/geom-subdiv-curve

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@thi.ng/geom-subdiv-curve) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@thi.ng/geom-subdiv-curve

npm (scoped) npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

Freely customizable, iterative subdivision curves for open / closed input geometries.

Based in principle on: Generating subdivision curves with L−systems on a GPU

Supplied / implemented subdivision schemes:

  • Split @ midpoints (open / closed)
  • Split @ thirds (open / closed)
  • Chaikin (open / closed)
  • Cubic (closed only)
Chaikin (closed) Chaikin (open)
chaikin closed chaikin open

Installation

yarn add @thi.ng/geom-subdiv-curve

Dependencies

Usage examples

import * as gsc from "@thi.ng/geom-subdiv-curve";

gsc.subdivide([[0,0], [100,0], [100,100], [0,100]], gsc.SUBDIV_CHAIKIN_CLOSED, 4)

Authors

  • Karsten Schmidt

License

© 2018 Karsten Schmidt // Apache Software License 2.0