Beginner ????

hpdrifter Dec 8, 2022

  1. Glenn Butcher

    Glenn Butcher TrainBoard Member

    179
    352
    9
    No problem, I think I'm just excited someone else is interested in OpenSCAD... :D

    Here's the code that'll work:
    Code:
    $fn=90;
    
    translate([0,0,30])
        rotate_extrude(angle=360)
            translate([9,0,0])
                circle(d=2);
    
    I indented the operations to show the order they're applied, innermost to outermost.

    The translates have to be done separately, the [9,0,0] one first to move the circle out to where it will make the ring, and the [0,0,30] after the rotate_extrude to move the object to where you want it. The $fn=90 sets the number of faces "circular" operations use; you can change it to whatever you want to make your objects smooth enough. I use $fn=6 to make bolt heads, works like a charm...

    Yeah, OpenSCAD is more than a scripting language, it's a full programming language with all the attendant baggage. I use it because I think that way after decades of training and experience, but I don't expect it to become mainstream. It does have its uses; right now I'm writing OpenSCAD parts that can be changed by adjusting a few parameters; my first one is a double-hung window you can play with here:

    https://glenn.pulpitrock.net/customizable_models/, read the intro and click on Double-Hung Window at the bottom...
     
    Sumner likes this.
  2. hpdrifter

    hpdrifter TrainBoard Member

    63
    62
    3
    thanks again.
    seems my interest, at the moment is waining. I'm bout fed up with the printer.
     
    Glenn Butcher likes this.
  3. hpdrifter

    hpdrifter TrainBoard Member

    63
    62
    3
    Well, step 3 done.
    got my first print done.
    now to figure out the woes of my computer.
     

    Attached Files:

    • cat.JPG
      cat.JPG
      File size:
      280.3 KB
      Views:
      11

Share This Page