here's the problem i am facing
made a torus with BRepPrimAPI_MakeTorus()
now, i need to go around the torus's bdry (4 edges, 2 of them being identical location wise but used in opposite direction) and get (u,v) parameters from parameters on the curves. For that, i use BRep_Tool::CurveOnSurface in order to get the proper curve and then i just give the parameter on the curve to get the (u,v) parameter (using method D0).
the problem is that it's getting the wrong curve, instead of getting the curve that goes from v=0 to 2pi at u=0, it's getting the other one (u=2pi). it's either that or the edges are given in the wrong order. I go from wire to edge to get the edges on the torus.
anybody has any experience with this?
Method I use works for everything except torus which is doubly periodic; cylinder, sphere, cone are ok (but those are periodic in just one direction).