Skip to content
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

Question: clarify orientation of skew cylinders/cones #163

Closed
BenW0 opened this issue Jul 26, 2016 · 1 comment
Closed

Question: clarify orientation of skew cylinders/cones #163

BenW0 opened this issue Jul 26, 2016 · 1 comment

Comments

@BenW0
Copy link

BenW0 commented Jul 26, 2016

When I create a CSG.cylinder object, I expect a cylinder parallel to the line between start and end, with flat end caps perpendicular to the line. However, when I execute the following in openjscad.org (or the debugger on openjscad.github.io), I obtain a cylinder with skewed end caps, not at all what I was expecting.

function main(){
    return CSG.cylinder({start:[0,0,0], end:[2, 2, 2], radiusStart:1, radiusEnd:1});
}

Output as I see it:

cylinder

This is not the case if any one of the end coordinate elements is 0 (i.e. the cylinder lies in one of the x/y/z planes).

If this is the intended behavior, could you help me understand what is going on? I will be happy to submit a documentation patch once I get my head around what CSG.cylinder() is supposed to do so I can write one.

Thanks

@z3dev
Copy link
Member

z3dev commented Feb 18, 2017

This issue was moved to jscad/csg.js#19

@z3dev z3dev closed this as completed Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants