Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
How do I tell if a cylinder is internal or external?
MBartlett21
Member, OS Professional, Developers Posts: 2,050 ✭✭✭✭✭
How do I tell if a cylinder is internal or external?
0
Best Answers
-
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭particulary for cylinder I beleve you could find for it cylAxis, cylRadius and cyl_face_normal_line, and based on the fact that onshape always return external normals define atestPoint = cyl_face_normal_line.origin + cyl_face_normal_line.direction * cylRadiusyou bacically translate the point of cyl face in the direction of external normall and then check if the translated point is on the cyl axis by test = tolerantEdquals(evDistance(...., testPoint, cylAxis), 0 )if test is true the cylinder is internal, else - external5
-
MBartlett21 Member, OS Professional, Developers Posts: 2,050 ✭✭✭✭✭I could also use the code below, I just realised.
tolerantEquals(testPoint, project(cylAxis, testPoint));
It may be a little faster.0
Answers
It may be a little faster.
IR for AS/NZS 1100