mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-26 07:24:57 +01:00
Update README.md
This commit is contained in:
parent
beb02f5216
commit
25bee4ebf1
24
README.md
24
README.md
@ -1 +1,25 @@
|
|||||||
# Doodle3D-Slicer
|
# Doodle3D-Slicer
|
||||||
|
|
||||||
|
The Doodle3D Slicer is designed for developers to make it easier to export 3d models to the Doodle3D WiFi-Box. The slicers includes a slicer and a class designed for communication with the WiFi-Box. All the classes are in the D3D name space.
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
doodleBox.onload = function () {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var geometry = new THREE.TorusGeometry(40, 20, 10, 10);
|
||||||
|
|
||||||
|
var slicer = new D3D.Slicer().setGeometry(geometry);
|
||||||
|
var gcode = slicer.getGcode(doodlBox.printer.config);
|
||||||
|
|
||||||
|
doodleBox.print(gcode);
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
For more information see http://www.doodle3d.com/help/api-documentation
|
||||||
|
Loading…
Reference in New Issue
Block a user