craft-model
v1.0.0
Published
Model for parameterized CSGs
Downloads
4
Readme
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)
})