Doodle3D-Slicer/README.md

31 lines
975 B
Markdown
Raw Normal View History

2015-04-24 16:01:35 +02:00
# Doodle3D-Slicer
2015-04-30 20:48:26 +02:00
2015-05-01 19:46:53 +02:00
The Doodle3D Slicer is designed for developers to make it easier to export 3d models to the Doodle3D WiFi-Box. The slicers includes a gcode slicer and a class designed for communication with the WiFi-Box. All the classes are in the D3D name space.
2015-04-30 20:48:26 +02:00
Three.js, Clipper.js and jQuery are required to run the Doodl3D slicer. All are included in the source.
This is an example of code.
```javascript
var localIp = "192.168.5.1";
var doodleBox = new D3D.Box(localIp);
2015-05-08 14:34:18 +02:00
var geometry = new THREE.BoxGeometry(20, 20, 20, 1, 1, 1);
var material = new THREE.MeshBasicMaterial({color: 0x000000, wireframe: true});
var mesh = new THREE.Mesh(geometry, material);
2015-05-08 14:34:18 +02:00
mesh.position.x = 100;
mesh.position.z = 100;
mesh.position.y = 10;
2015-04-30 20:48:26 +02:00
doodleBox.onload = function () {
"use strict";
var slicer = new D3D.Slicer().setMesh(mesh);
2015-05-01 11:03:07 +02:00
var gcode = slicer.getGcode(doodleBox.printer);
2015-04-30 20:48:26 +02:00
doodleBox.print(gcode);
};
```
For more information see http://www.doodle3d.com/