0027302: Invalid curves number in intersection result
[occt.git] / src / IntPatch / IntPatch_WLine.lxx
index 6c95ee8..9eab7c6 100644 (file)
 #include <IntPatch_Point.hxx>
 
 
-inline void IntPatch_WLine::AddVertex (const IntPatch_Point& Pnt)
+inline void IntPatch_WLine::AddVertex (const IntPatch_Point& thePnt,
+                                       const Standard_Boolean theIsPrepend)
 {
-  svtx.Append(Pnt);
+  if(theIsPrepend)
+    svtx.Prepend(thePnt);
+  else
+    svtx.Append(thePnt);
 }
 
 inline void IntPatch_WLine::Replace (const Standard_Integer Index,