mmu_man has quit [Read error: Connection reset by peer]
__marlasinger__ has joined #openscad
cart_ has quit [Ping timeout: 268 seconds]
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 246 seconds]
TylerTork has joined #openscad
<TylerTork>
what's the preferred way, these days, to create a round-cornered cube? I found subroutines for it that use minkowski on a sphere and a cube, but this doesn't produce an object of exactly the specified dimensions because spheres are composed of facets and their bounding box is smaller than the specified diameter. Also it's pretty slow. I wrote
<TylerTork>
a version using hull that solves both of these but I wondered whether there might be a better way still
<InPhase>
It is true that there are very small dimensional deviations for the normal hull, but with $fa=1; $fa=0.4; set, these are like 10 micron deviations.
<InPhase>
The example there handles a few extra cases like compressing the box beyond the dimensions of the rounding specified but still keeping its dimensional accuracy adequately. Also there are a few other implementations for the other cases like hollowing a cubical wall, and rounding in only one plane.
<TylerTork>
Thanks. This code is doing what I did except I also added three cubes that push the edges out to the exact dimensions. The code could use some for loops and parameter rationalization also
deaf_fish has joined #openscad
<InPhase>
TylerTork: One useful trick for exact sizing is to not use $fa and $fs, but instead specify $fn as an integer multiple of 4, and then adjust your dimensionality by dividing it by cos(180/$fn)
<InPhase>
TylerTork: If you measure outputs you'll find that's roughly float precision levels of exact.
<InPhase>
Although this is usually not important for printing purposes.
<InPhase>
Note that to be precise, this achieves exactness in an x, y, z axial manner. There will be some diagonal points where the sphere has a larger cross-section than the radial specification.
mmu_man has quit [Ping timeout: 272 seconds]
<InPhase>
s/than the radial/than the original/
cart_ has joined #openscad
krushia has joined #openscad
mmu_man has joined #openscad
deaf_fish11 has joined #openscad
deaf_fish11 has quit [Client Quit]
deaf_fish has quit [Ping timeout: 250 seconds]
__marlasinger__ has quit [Read error: Connection reset by peer]
deaf_fish has joined #openscad
deaf_fish has quit [Client Quit]
TylerTork has quit [Ping timeout: 250 seconds]
tachoknight has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
pca006132 has joined #openscad
cart_ has quit [Ping timeout: 255 seconds]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
J24k has joined #openscad
<Virindi>
I do rounding without minkowski or hull...in this example, I would take a large cube and subtract the edges, corners, and face cubes from the inside using cylinder, sphere, and cube. then subtract that from the original cube. allows more control over exactly which parts are rounded, because often you don't want to round everything
<nomike>
InPhase: Now that I've published the initial version of my project, I can show you what I used your funcutils library for which you recommended a few days ago:
<InPhase>
Ah, to specify the variations in geometry as a string?
<InPhase>
Looks nice, but let's see this code. :)
<Virindi>
seems like a good use for the now more cheaply available full color soldermask PCBs :)
<Virindi>
I wonder what happens if you try to oven reflow a steel pin assembly to a PCB footprint
<InPhase>
nomike: See the edits to line 46, 50, and 72, which remove the preview artifacts for this model. This is described in the manual as the overlap rule. https://bpa.st/UM5Q
<InPhase>
nomike: It looks like similar would be required for some of the other selectable options, but I demonstrated for you in the default displayed rainbow. :)
<InPhase>
They can sometimes lead to render failure, so it's more than just a preview artifact to be worried about addressing on those.
<nomike>
Ahh....nice. Good to know. I will try to revise my design accordingly. Thanks a lot for the tip.
<InPhase>
nomike: Soooo, is there some sort of international standardizations organization for all those pride flag color patterns? :) I don't think I've ever seen so many varieties specified at once before.