craft-model

1.0.0 • Public • Published

craft-model

Model for parameterized CSGs

This is typically used for defining a parameterized CSG generator that can be exported as a module or a package publishable to npm.

Usage

 
var box = 
    new Model()
    .parameter('size', {
        defaultValue: 5
    })
    .factory(function($$$, params) {
        var size = params.size
        return $$$.cube(size)
    })
 
 
 
    

Readme

Keywords

Package Sidebar

Install

npm i craft-model

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • doubleshow