Irev-Dev / Round-Anything

A set of OpenSCAD utilities for adding radii and fillets, that embodies a robust approach to developing OpenSCAD parts.
https://kurthutten.com/blog/round-anything-a-pragmatic-approach-to-openscad-design
MIT License
490 stars 48 forks source link

shell2d makes a circle look low-poly #53

Open freckletonj opened 1 month ago

freckletonj commented 1 month ago

Given this code, I get the following preview/render/stl/print. I thought it might just be a rendering issue, so, I've tracked it at each step including printing, and I'm unsure how to resolve it. Any guidance?

include <../OpenSCAD-Round-Anything/polyround.scad>
$fn=1000;

circle(2);

translate([0, 0, 3])shell2d(-0.5)circle(2);

image

freckletonj commented 1 month ago

I'm still trying to resolve this for my part, so I attempted the following to no avail:

s=10;
scale([1/s, 1/s, 1/s])shell2d(...)scale([s, s, s])thePart()

I was a bit shocked this didn't change the number of edges at all. I still love the library, thanks for making it!

freckletonj commented 1 month ago

ah, just dug into the library, it hardcodes $fn=100, and increasing this solves it:

https://github.com/Irev-Dev/Round-Anything/blob/master/polyround.scad#L493