1.0.0 • Published 7 years ago

jscad-insidezecube v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

jscad-insidezecube

InsideZeCube OpenJSCAD models for 3d printing.

If you want your own InsideZeCube level printed, this library is a good start.

npm.io

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
1.0.0

7 years ago