void BSplCLib::KnotSequence
(const TColStd_Array1OfReal& Knots,
const TColStd_Array1OfInteger& Mults,
- TColStd_Array1OfReal& KnotSeq)
+ TColStd_Array1OfReal& KnotSeq,
+ const Standard_Boolean Periodic)
{
- BSplCLib::KnotSequence(Knots,Mults,0,Standard_False,KnotSeq);
+ BSplCLib::KnotSequence(Knots,Mults,0,Periodic,KnotSeq);
}
//=======================================================================
{
//gka for case when segments was produced on full period only one knot
//was added in the end of curve
- if(fabs(adeltaK1) <= Precision::PConfusion() &&
- fabs(adeltaK2) <= Precision::PConfusion())
+ if(fabs(adeltaK1) <= gp::Resolution() &&
+ fabs(adeltaK2) <= gp::Resolution())
ak++;
}
InterpolationMatrix,
UpperBandWidth,
LowerBandWidth) ;
- Standard_OutOfRange_Raise_if (ErrorCode != 0, "BSplCLib::Interpolate") ;
+ if(ErrorCode)
+ Standard_OutOfRange::Raise("BSplCLib::Interpolate");
ErrorCode =
BSplCLib::FactorBandedMatrix(InterpolationMatrix,
UpperBandWidth,
LowerBandWidth,
InversionProblem) ;
- Standard_OutOfRange_Raise_if (ErrorCode != 0, "BSplCLib::Interpolate") ;
+ if(ErrorCode)
+ Standard_OutOfRange::Raise("BSplCLib::Interpolate");
ErrorCode =
BSplCLib::SolveBandedSystem(InterpolationMatrix,
LowerBandWidth,
ArrayDimension,
Poles) ;
-
- Standard_OutOfRange_Raise_if (ErrorCode != 0,"BSplCLib::Interpolate") ;
-}
+ if(ErrorCode)
+ Standard_OutOfRange::Raise("BSplCLib::Interpolate");
+}
//=======================================================================
//function : Interpolate
InterpolationMatrix,
UpperBandWidth,
LowerBandWidth) ;
- Standard_OutOfRange_Raise_if (ErrorCode != 0, "BSplCLib::Interpolate") ;
+ if(ErrorCode)
+ Standard_OutOfRange::Raise("BSplCLib::Interpolate");
ErrorCode =
BSplCLib::FactorBandedMatrix(InterpolationMatrix,
UpperBandWidth,
LowerBandWidth,
InversionProblem) ;
- Standard_OutOfRange_Raise_if (ErrorCode != 0, "BSplCLib::Interpolate") ;
+ if(ErrorCode)
+ Standard_OutOfRange::Raise("BSplCLib::Interpolate");
ErrorCode =
BSplCLib::SolveBandedSystem(InterpolationMatrix,
ArrayDimension,
Poles,
Weights) ;
-
- Standard_OutOfRange_Raise_if (ErrorCode != 0,"BSplCLib::Interpolate") ;
+ if(ErrorCode)
+ Standard_OutOfRange::Raise("BSplCLib::Interpolate");
}
//=======================================================================