azdle,
@azdle@news.idlestate.org avatar

For rounding, you can do the extrusion, but with it a bit smaller in every dimension, then minkowski with a sphere (or a different shape if you don’t want all the edges rounded), but it’s tricky to get right:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">module shape() {
</span><span style="color:#323232;">    square(80, center = true);
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">minkowski() {
</span><span style="color:#323232;">    linear_extrude(80)
</span><span style="color:#323232;">    shape();
</span><span style="color:#323232;">
</span><span style="color:#323232;">    sphere(r = 20);
</span><span style="color:#323232;">}
</span>

https://news.idlestate.org/pictrs/image/633e624a-0353-4bae-8aae-62a6a8ef2dee.png

  • All
  • Subscribed
  • Moderated
  • Favorites
  • ergomechkeyboards@lemmy.world
  • fightinggames
  • All magazines