Relatively new to polyround, but am finding it quite helpful (though hard to debug at times) #49
yeroca
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's a thing I'm working on. I've found that the polyRoundExtrude works quite nicely, and helps my designs look better and be more resilient.
The technique I'm using for building the polygon, and then the augmented radius vector is pretty ad-hoc, and probably not what anyone would recommend. Basically, I declare a starting point, then make each subsequent vertex relative to the previous vertex, by adding [delta_x, delta_y] vector to the previous vertex.
With this series of vertexes, I create an array of them, and then use concat() to attach a radius to each vertex, for use with polyRoundExtrude.
This has worked well, though seeming a bit kludgy because I declare a bunch of named vertexes in the process. My background is in programming rather than mechanical engineering, so if this method seems odd, my background may be the reason. If you have a different method that makes it easy to build a delta-based series of vertexes, I'd be interested to learn it.
In using this library, I ran into some problems where I'd get [nan, nan, ...] errors being reported from inside the library. I ended up fussing around around the vertexes and radii and finally got the error to go away, but in some cases I'm not clear why it went away. In other cases, I found that a vertex was missing its radius, or the radius was too large. Trying to figure out what the error means is confusing.
Also I have run into cases where the processing just hangs, and I need to kill the OpenSCAD task.
The way I have been approaching some of the problems is to go back to the simple polygon and make sure that is exactly right, then reduce to the radii to 0, and if that doesn't work, I reduce the number of vertexes to narrow down where the problem is occurring.
If you ever do another version of this already very good library, adding some additional error checking or assertions would help me I think.
I've included my horrible code for you to look at:
invertxy.scad.txt
Beta Was this translation helpful? Give feedback.
All reactions