The problem of finding the center of the circular hole and the axis of the cylinder

sjwa

CAD practitioner
As shown in the picture, how can I find the center of the upper and lower holes, and then find the axis formed by connecting the upper and lower centers?
thank all
1661738392169.png
 

sjwa

CAD practitioner
Once you know the cylinders, you can always consult their axes. Have you checked the recognize-holes command of Analysis Situs? You can use its implementation in C++.
Thanks for your answer, Quaoar
My question is is this command also available in opencascade? Or this command is just a command you encapsulated in the Analysis Situs project, so how should you call it when using the opencascade library?
 

Quaoar

Administrator
Staff member
Thanks for your answer, Quaoar
My question is is this command also available in opencascade? Or this command is just a command you encapsulated in the Analysis Situs project, so how should you call it when using the opencascade library?
OpenCascade does not provide any feature recognition tools. You'll have to write custom code to reliably detect holes. It's not difficult though.
 
Top