No label defined (Q49278)

From Library of Open Source Hardware
Revision as of 18:27, 25 February 2022 by Aisberg (talk | contribs) (Reconciliation Edit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
No label defined
No description defined

    Statements

    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 technique. The openscad_vm.scad file contains the actual brains. There is a 'test_openscad_vm.scad' file that shows some test cases of all the routines. The file "mars_rover_vm.scad" takes some of the interesting parts from the inspiring mars rover project, and turns them into parts appropriate for usage in the openscad VM. The most complex object 'camera' shows how to nest CSG operations as well as primitive parts.
    0 references
    0 references
    WilliamAAdams
    0 references
    https://spdx.org/licenses/CC-BY-4.0
    0 references
    auto
    0 references
    en
    0 references
    1.0.0
    0 references
    thingiverse.com
    0 references
    www.thingiverse.com
    0 references