Thingiverse
Imperial Module for OpenSCAD
von Corona688
6
Downloads
4
Likes
0
Makes
Very often I'll see OpenSCAD code like:
````
scale(25.4) cylinder(d=1/2, h=5/8, $fn=64);
````
...to make inch-sized parts. OpenSCAD thinks its making parts 25 times smaller than they are and generates bare-minimum detail unless forced, so $fn gets jammed into every single statement.
$fs can be overrided to overcome that:
````
for($fs=$fs/25.4) scale(25.4) cylinder(d=1/2, h=5/8);
````
This generates a sane number of fragments without being forced! Drop this in a handy module and you get:
````
imperial() cylinder(d=1/2, h=5/8);
````
````
scale(25.4) cylinder(d=1/2, h=5/8, $fn=64);
````
...to make inch-sized parts. OpenSCAD thinks its making parts 25 times smaller than they are and generates bare-minimum detail unless forced, so $fn gets jammed into every single statement.
$fs can be overrided to overcome that:
````
for($fs=$fs/25.4) scale(25.4) cylinder(d=1/2, h=5/8);
````
This generates a sane number of fragments without being forced! Drop this in a handy module and you get:
````
imperial() cylinder(d=1/2, h=5/8);
````
Hast du dieses Modell gedruckt? Einloggen und dein Make teilen!
Melde dich an, um einen Kommentar zu hinterlassen
AnmeldenNoch keine Kommentare – sei der Erste!