impr: precision for rendering

- Better precision for circle resolution:
  - See https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Circle_resolution:_$fa,_$fs,_and_$fn
This commit is contained in:
Fabrice Mouhartem 2024-07-06 14:32:21 +02:00
parent e8c15440f6
commit ae7dd6ed6b
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ $radial_indent = 1;
$slack = 0.1; $slack = 0.1;
$mini_slack = 0.001; $mini_slack = 0.001;
// rendering precision
$fn = $preview ? 32 : 64;
// base // base
difference() { difference() {
cylinder($length_base, $diameter_z / 2, $diameter_z / 2); cylinder($length_base, $diameter_z / 2, $diameter_z / 2);

Binary file not shown.