I have a strange problem creating an edge.
I have a gp_Lin2d (pos : -200.0,0.0) and main vector (0.0,1.0) (vertical line).
I have 2 points on this line from which i want to create the edge.
The first point on (-200,0) and the second in (-200,-100).
I compute the parameter of the two points according the line with
And the values are ok. O for the first point and -100.0 for the second;
Then i create the edge like this :
But when i check the edge orientation it return TopAbs_Forward whereas in this case it must be TopAbs_Reversed because SecondPoint parameter is less than the FirstPoint parameter as it is documented.
BRepBuilderAPI_MakeEdge(const Handle_Geom_Curve& L,const gp_Pnt& P1,const gp_Pnt& P2);
If the parameter of point P2 on the curve is less than the parameter of point P1, the orientation of the edge will be TopAbs_REVERSED. It's my case !!!!
So i don't understand why i get a wrong orientation. Is the vertical line is a special case because in the documentation it is said that forward orientation is from left to right but in the case of the vertical line don't have sense??