save these customizations
measurement

Choose a file format to download your customized drawing (units will be millimeters)

Dxf options

Svg options

Svg options

Json options

OpenJsCad options

Stl options

Pdf options

Generating your customized drawing...

There was an error generating your file

Your customized drawing file is ready for download

If your browser does not support the download button above, and paste into a new text file named myfile.txt on your computer.
JavaScript code editor
x
 
1
var makerjs = require('makerjs');
2
3
function demo(left_radius, distance_between_centers, right_radius) {
4
5
  this.models = {
6
    example: new makerjs.models.Belt(left_radius, distance_between_centers, right_radius)
7
  };
8
9
}
10
11
demo.metaParameters = [
12
  { title: "left radius", type: "range", min: 0, max: 100, value: 30 },
13
  { title: "distance between centers", type: "range", min: 0, max: 100, value: 50 },
14
  { title: "right radius", type: "range", min: 0, max: 100, value: 15 }
15
];
16
17
module.exports = demo;
The Maker.js Playground is a sample app demonstrating the features of the Maker.js core library. You can build your own apps using Maker.js, or it can be used command-line style with Node.js.

Credits: