help , how can i get the distance between two parallel plane£¿

hi£¬ how can i get the distance between two parallel plane£¿
who has good idea£¿

help £¬thanks very much£¡

tmacedo29's picture

Hi QiLiangTang,

in gp_Pln class, there's the method Standard_Real Distance(const gp_Pln& Other) const;

I recommend use SquareDistance instead of Distance ( check here why http://opencascade.blogspot.com/2008/12/extreme-fight-with-extrema-part-... )

I hope it helps

ilovrene's picture

Hi Macedo,

Thank you for your advice.
Now the problem is i got two parallel face £¨TopoDS_Face£©£¬then i want to know their SquareDistance£¬how should i do £¿
and i'm a beginner £¬so could u give a sample£¬please£¿
thank u very much ~£¡