Home | History | Annotate | Download | only in Splines

Lines Matching refs:knots

56     * \param knots The spline's knot vector.
60 Spline(const OtherVectorType& knots, const OtherArrayType& ctrls) : m_knots(knots), m_ctrls(ctrls) {}
68 m_knots(spline.knots()), m_ctrls(spline.ctrls()) {}
71 * \brief Returns the knots of the underlying spline.
73 const KnotVectorType& knots() const { return m_knots; }
76 * \brief Returns the knots of the underlying spline.
175 static DenseIndex Span(typename SplineTraits<Spline>::Scalar u, DenseIndex degree, const typename SplineTraits<Spline>::KnotVectorType& knots);
187 * \param knots The underlying spline's knot vector.
189 static BasisVectorType BasisFunctions(Scalar u, DenseIndex degree, const KnotVectorType& knots);
201 const typename SplineTraits< Spline<_Scalar, _Dim, _Degree> >::KnotVectorType& knots)
204 if (u <= knots(0)) return degree;
205 const Scalar* pos = std::upper_bound(knots.data()+degree-1, knots.data()+knots.size()-degree-1, u);
206 return static_cast<DenseIndex>( std::distance(knots.data(), pos) - 1 );
214 const typename Spline<_Scalar, _Dim, _Degree>::KnotVectorType& knots)
219 const DenseIndex i = Spline::Span(u, degree, knots);
221 const KnotVectorType& U = knots;
257 return Spline::Span(u, degree(), knots());
333 return Spline::BasisFunctions(u, degree(), knots());
348 const KnotVectorType& U = spline.knots();