0026931: [Regression in 6.9.0] Exporting a face throws an exception
[occt.git] / src / Geom2d / Geom2d_BSplineCurve.hxx
index dd8383d..08aab57 100644 (file)
@@ -367,6 +367,8 @@ public:
   //! Exceptions
   //! Standard_DomainError if U2 is less than U1.
   //! raises if U2 < U1.
+  //! Standard_DomainError if U2 - U1 exceeds the period for periodic curves.
+  //! i.e. ((U2 - U1) - Period) > Precision::PConfusion().
   Standard_EXPORT void Segment (const Standard_Real U1, const Standard_Real U2);
   
   //! Modifies this BSpline curve by assigning the value K
@@ -609,38 +611,27 @@ public:
   Standard_EXPORT gp_Vec2d DN (const Standard_Real U, const Standard_Integer N) const Standard_OVERRIDE;
   
   //! Raised if FromK1 = ToK2.
-  //!
-  //! Raised if FromK1 and ToK2 are not in the range
-  //! [FirstUKnotIndex, LastUKnotIndex].
   Standard_EXPORT gp_Pnt2d LocalValue (const Standard_Real U, const Standard_Integer FromK1, const Standard_Integer ToK2) const;
   
+  //! Raised if FromK1 = ToK2.
   Standard_EXPORT void LocalD0 (const Standard_Real U, const Standard_Integer FromK1, const Standard_Integer ToK2, gp_Pnt2d& P) const;
   
 
   //! Raised if the local continuity of the curve is not C1
   //! between the knot K1 and the knot K2.
   //! Raised if FromK1 = ToK2.
-  //!
-  //! Raised if FromK1 and ToK2 are not in the range
-  //! [FirstUKnotIndex, LastUKnotIndex].
   Standard_EXPORT void LocalD1 (const Standard_Real U, const Standard_Integer FromK1, const Standard_Integer ToK2, gp_Pnt2d& P, gp_Vec2d& V1) const;
   
 
   //! Raised if the local continuity of the curve is not C2
   //! between the knot K1 and the knot K2.
   //! Raised if FromK1 = ToK2.
-  //!
-  //! Raised if FromK1 and ToK2 are not in the range
-  //! [FirstUKnotIndex, LastUKnotIndex].
   Standard_EXPORT void LocalD2 (const Standard_Real U, const Standard_Integer FromK1, const Standard_Integer ToK2, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) const;
   
 
   //! Raised if the local continuity of the curve is not C3
   //! between the knot K1 and the knot K2.
   //! Raised if FromK1 = ToK2.
-  //!
-  //! Raised if FromK1 and ToK2 are not in the range
-  //! [FirstUKnotIndex, LastUKnotIndex].
   Standard_EXPORT void LocalD3 (const Standard_Real U, const Standard_Integer FromK1, const Standard_Integer ToK2, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3) const;
   
 
@@ -648,9 +639,6 @@ public:
   //! between the knot K1 and the knot K2.
   //! Raised if FromK1 = ToK2.
   //! Raised if N < 1.
-  //!
-  //! Raises if FromK1 and ToK2 are not in the range
-  //! [FirstUKnotIndex, LastUKnotIndex].
   Standard_EXPORT gp_Vec2d LocalDN (const Standard_Real U, const Standard_Integer FromK1, const Standard_Integer ToK2, const Standard_Integer N) const;
   
 
@@ -684,7 +672,8 @@ public:
   
   //! returns the knot values of the B-spline curve;
   //!
-  //! Raised if the length of K is not equal to the number of knots.
+  //! Raised K.Lower() is less than number of first knot or
+  //! K.Upper() is more than number of last knot.
   Standard_EXPORT void Knots (TColStd_Array1OfReal& K) const;
   
   //! returns the knot values of the B-spline curve;
@@ -696,7 +685,9 @@ public:
   //! Example :
   //! K = {k1, k1, k1, k2, k3, k3, k4, k4, k4}
   //!
-  //! Raised if the length of K is not equal to NbPoles + Degree + 1
+  //! Raised if K.Lower() is less than number of first knot
+  //! in knot sequence with repetitions or K.Upper() is more
+  //! than number of last knot in knot sequence with repetitions.
   Standard_EXPORT void KnotSequence (TColStd_Array1OfReal& K) const;
   
   //! Returns the knots sequence.