Which is fastest ?

Hi !

BRep_Tool::CurveOnSurface() can be used on a TopoDS_Edge/TopoDS_Face or a TopoDS_Edge/Geom_Surface, is it just a matter of choice here or is there an advantage (speed) in one of the methods ?

Mikael

Michael Sazonov's picture

Hi, The function BRep_Tool::CurveOnSurface(const TopoDS_Edge&,const TopoDS_Face&,Standard_Real&,Standard_Real&) calls BRep_Tool::CurveOnSurface(const TopoDS_Edge&,const Handle(Geom_Surface)&,const TopLoc_Location&,Standard_Real&,Standard_Real&) for you from within its body. Don't be afraid to see source code if you want to know how it works.

Mikael Aronsson's picture

Yeaah, I was assuming that it wasn't that simple and they would both do weird things, but I checked the source later on, sometimes it's good to think and sometimes I forget ;o)

Mikael