I would like to "scan" or maybe a better word is "investigate" a line which I have displayed in an OCC environment (ultimately as TopoDS_Shape). The purpose is to detect the extreme points on the line in x, y and z direction (i.e. the smallest dimension of an enclosing box that is aligned with the x,y,z axis).
Since I know the plane in which the line is that I want to investigate, one idea is to create a straight line and move this one along the plane in increments. At each increment checking for interference between this test-line and the wire I am investigating.
Is this the most efficient manner to do this? If yes, what class can I use to determine interference between shapes. If not what is the best method?
Any help much appreciated.