jscad-insidezecube
v1.0.0
Published
InsideZeCube OpenJSCAD models for 3d printing
Downloads
5
Readme
jscad-insidezecube
InsideZeCube OpenJSCAD models for 3d printing.
If you want your own InsideZeCube level printed, this library is a good start.
Usage
// Get stl model for first level of Easy0
const fs = require('fs');
const {Level, Box, Ball} = require('jscad-insidezecube');
// This part is not working yet, we need the formats.js lib in npm
var stl = (new Level(0)).fixTJunctions().toStlBinary();
fs.writeFile("level0.stl", stl, function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved!");
});
Example
Go in the example folder:
npm install
npm run build
# Open index.htm in your browser
TODO
- Draw outside instruction on the outer shell
- Add a locking mechanism for the last Level to lock the shell
- Gives some instructions for printing
- Improve way slots are inserted in the Levels