Thingiverse
OpenScad Virtual Machine - v0.1
11
Download
56
Likes
0
Makes
After looking at the Mars Exploration Rover: http://www.thingiverse.com/thing:10057 I was inspired to do something in OpenScad that I've wanted to do for a long time.
This thing is a technique for representing and rendering your models using some arrays and 'recursion'.
There are just a couple of routines introduced, but with them, you can essentially do something like:
CSG([OP_UNION, [
[PRIM_CYLINDER, [2,2, 8+15+3],zero(), zero()],
[PRIM_CYLINDER, [4,4, 3],zero(),zero()],
]]);
or, if you just want to do a simple part;
place_prim([PRIM_CYLINDER, [2,2, 8+15+3],zero(), zero()]);
This is not earth shattering, but it's just another tool in the text modeling arsenal. Since the models, as well as the operations on parts, are simply represented as arrays of numbers, you can use functions to generate these, or concatenations of them.
It's kind of interesting in that the code begins to look like LISP or other array based variants.
At any rate, it's another te
This thing is a technique for representing and rendering your models using some arrays and 'recursion'.
There are just a couple of routines introduced, but with them, you can essentially do something like:
CSG([OP_UNION, [
[PRIM_CYLINDER, [2,2, 8+15+3],zero(), zero()],
[PRIM_CYLINDER, [4,4, 3],zero(),zero()],
]]);
or, if you just want to do a simple part;
place_prim([PRIM_CYLINDER, [2,2, 8+15+3],zero(), zero()]);
This is not earth shattering, but it's just another tool in the text modeling arsenal. Since the models, as well as the operations on parts, are simply represented as arrays of numbers, you can use functions to generate these, or concatenations of them.
It's kind of interesting in that the code begins to look like LISP or other array based variants.
At any rate, it's another te
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!