<script type="text/javascript">
function box_by_extrude(size_as_string) {
var size = parseFloat(size_as_string);
- var origin = [0, 0 ];
- var x = [size, 0 ];
- var y = [0, size];
- var xy = [size, size];
+ var origin = [0, 0, 0];
+ var x = [size, 0, 0];
+ var y = [0, size, 0];
+ var xy = [size, size, 0];
return nt3d.extrude([origin, x, xy, y],
[[0, 0, 0], [0, 0, 1]],
[[0, 0, 1], [0, 0, 1]],