-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: RoundRadius on CSG.roundedCylinder() #72
Comments
That would be a reasonable addition. I don't have the time now, but do you want to take a stab at it? I would probably go about it by replacing the existing logic with something like this:
|
@bebbi thanks FYI, there seem to be issues with using rotateExtrude with a CAG that has a zero(0) X offset. The internal vertices seemed to be confused. |
From http://joostn.github.io/OpenJsCad/ docu: Again, please feel free to post PRs to csg.js I’m tight on time right now, so any help is appreciated. On 02 Oct 2015, at 06:28, Z3 Development notifications@github.com wrote:
|
This issue was moved to jscad/csg.js#21 |
This is a very useful function to make rounded cylinders of a given radius, but the rounded end of the cylinder should also be configurable. Currently, the rounded end of the cylinder is the same as the radius of the cylinder. But anything between 0 < rounded end radius <= radius is possible.
Parameters:
// start: start point of cylinder (default [0, -1, 0])
// end: end point of cylinder (default [0, 1, 0])
// radius: radius of cylinder (default 1), must be a scalar
// resolution: determines the number of polygons per 360 degree revolution (default 12)
// normal: a vector determining the starting angle for tesselation. Should be non-parallel to start.minus(end)
Add...
// roundedRadius: radius of rounded end of cylinder, default radius of cylinder
The text was updated successfully, but these errors were encountered: