# How to make a cylinder perpendicular to a sloping face

26 messages
12
Open this post in threaded view
|

## Re: How to make a cylinder perpendicular to a sloping face

 adrianv wrote > You do realize that popular > computer languages like C++ and Python would be useless without their > extensive libraries.  Almost everything you do in one of those languages > is > calling a library.  Do you find these standard open source libraries to be > mediocre?  Inadequately documented?   You should not try to argue from the particular to the general. ...R -- Sent from: http://forum.openscad.org/_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: How to make a cylinder perpendicular to a sloping face

Open this post in threaded view
|

## Re: How to make a cylinder perpendicular to a sloping face

Open this post in threaded view
|

## Re: How to make a cylinder perpendicular to a sloping face

 In reply to this post by lar3ry On 2019-09-12 07:27, [hidden email] wrote: > What if there was a way to identify and specify a face? This is a good question, but the answer may not be so simple. First, if you consider identifying a face in a polyhedron ("object A") that you constructed explicitly yourself, you might be expected to know the face number of each face in it. In theory, you could then refer to A and a face number and get some function to place the cylinder perpendicular to that face. But if your cylinder ("object B") was instead a triangular prism you might have an opinion on the orientation of the triangular base. That would not be automatically defined by just the face number, so the specification would be ambiguous, or you would be required to provide more information. Second, if A was not an explicitly defined polyhedron, but instead the result of boolean operation(s) (union() etc.), then you would have no control over the face numbers. You could not even consider the existence of a function that could return such information, because the language does not allow for querying the result of a boolean. At best you might invent some indirect way of pointing to a face in A, but most likely it will be complicated to do. Carsten Arnholm _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|