23 short_t gsCurve<T>::degree()
const
25 return this->basis().degree(0);
29 void gsCurve<T>::toMesh(gsMesh<T> & msh,
int npoints)
const
31 const gsMatrix<T> param = this->parameterRange();
32 const gsMatrix<T> paramSamples = gsPointGrid<T>(param(0,0), param(0,1), npoints);
37 this->eval_into(paramSamples.col(0), cp);
39 typename gsMesh<T>::VertexHandle v1,
41 v0 = msh.addVertex( cp );
43 for (
int i = 1; i<npoints; ++i)
45 this->eval_into(paramSamples.col(i), cp);
47 v1 = msh.addVertex( cp );
#define short_t
Definition: gsConfig.h:35
Provides declaration of the Mesh class.
Provides functions to generate structured point data.