Here's the place for discussion related to CAM/CNC and the development of the Path module.
we can also check a normal on the surface. here is my solution:
Code: Select all
face = Gui.Selection.getSelectionEx().SubObjects surface = face.Surface surfaceType = type(surface).__name__ if(surfaceType == 'Cylinder'): center = surface.Center axis = surface.Axis value = face.valueAt(0,0) normal = face.normalAt(0,0) center2value = value - center dotValue = normal.dot(center2value) if(dotValue > 0): print('this is a boss') else: print('this is a hole')