How to get the max distance of two shapes?

Thanks!!!

Balkos's picture

Try

BRepExtrema_DistShapeShape

Regards

haocb's picture

Thanks,but according to the document,
"BRepExtrema_DistShapeShape:
This class provides tools to compute minimum distance between two Shapes"? Not the maximum distance.

ashu106's picture

hi..
please tell me if u got answer..
How to get the max distance of two nodes and vertices?
thanks.

Dmitry Khabi's picture

Its a great question.
There is no problem to find the minimum, but
a big problem to find the maximum.
No chance ? Have the developers forgotten about max function ?

Dmitry Khabi's picture

Please, please, please, please me (You don't have to go)
Baby please, baby please, please me (You don't have to go)
Baby please, baby please don't go (You don't have to go)

James Brown

Please, please, please, please me (You don't have to answer)
Please , please, please, answer...

Dmitry Khabi

Hugues Delorme's picture

The thrill is not gone ...

Maybe you can find what you want with the BRepExtrema_Ext* classes :

BRepExtrema_ExtPF : min and max distance between a vertex and a face
BRepExtrema_ExtPC : min and max distance between a vertex and an edge
BRepExtrema_ExtFF : min and max distance between two faces
...

Dmitry Khabi's picture