mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025763: SSP sample is unable to build the proper surface on the given cloud of points
Some improvements to work with periodic splines
This commit is contained in:
@@ -296,7 +296,8 @@ is
|
||||
|
||||
KnotSequence (Knots : Array1OfReal from TColStd;
|
||||
Mults : Array1OfInteger from TColStd;
|
||||
KnotSeq : in out Array1OfReal from TColStd);
|
||||
KnotSeq : in out Array1OfReal from TColStd;
|
||||
Periodic : Boolean = Standard_False);
|
||||
|
||||
KnotSequence (Knots : Array1OfReal from TColStd;
|
||||
Mults : Array1OfInteger from TColStd;
|
||||
@@ -1278,7 +1279,8 @@ is
|
||||
FlatKnots : Array1OfReal from TColStd ;
|
||||
Parameter : in Real ;
|
||||
FirstNonZeroBsplineIndex : in out Integer ;
|
||||
BsplineBasis : in out Matrix from math)
|
||||
BsplineBasis : in out Matrix from math ;
|
||||
isPeriodic : in Boolean = Standard_False)
|
||||
|
||||
returns Integer ;
|
||||
---Purpose: This evaluates the Bspline Basis at a
|
||||
|
@@ -430,9 +430,10 @@ Standard_Integer BSplCLib::KnotSequenceLength
|
||||
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);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -438,7 +438,8 @@ BSplCLib::EvalBsplineBasis
|
||||
const TColStd_Array1OfReal& FlatKnots,
|
||||
const Standard_Real Parameter,
|
||||
Standard_Integer& FirstNonZeroBsplineIndex,
|
||||
math_Matrix& BsplineBasis)
|
||||
math_Matrix& BsplineBasis,
|
||||
Standard_Boolean isPeriodic)
|
||||
{
|
||||
// the matrix must have at least DerivativeRequest + 1
|
||||
// row and Order columns
|
||||
@@ -497,7 +498,7 @@ BSplCLib::EvalBsplineBasis
|
||||
BSplCLib::LocateParameter(Order - 1,
|
||||
FlatKnots,
|
||||
Parameter,
|
||||
Standard_False,
|
||||
isPeriodic,
|
||||
Order,
|
||||
NumPoles+1,
|
||||
ii,
|
||||
|
Reference in New Issue
Block a user