Skip to content

Instantly share code, notes, and snippets.

View format37's full-sized avatar
💭
Exploring AGI

Alexey Yurasov format37

💭
Exploring AGI
  • Georgia
View GitHub Profile
@format37
format37 / print.js
Last active April 1, 2021 21:18 — forked from blairmacintyre/print.js
Worldedit Minecraft to openscad exporter for 3d printing
importPackage(Packages.com.sk89q.worldedit.blocks);
importPackage(Packages.com.sk89q.worldedit);
//joins up blocks in the dimension dim
function squash(blockarray, dim, sx, sy, sz, arraysize){
var i = new Array();
var dims = new Array();
for (var y = 0; y <= sy; y++){