35 typedef memory::shared_ptr< gsCurve >
Ptr;
38 typedef memory::unique_ptr< gsCurve >
uPtr;
55 "Coefficient matrix cannot be empty.\n");
61 private:
virtual gsCurve * clone_impl()
const = 0;
62 public:
inline uPtr clone()
const {
return uPtr(clone_impl()); }
68 void toMesh(
gsMesh<T> & msh,
int npoints = 100)
const;
74 this->
basis().reverse();
77 virtual bool isOn(
gsMatrix<T> const &, T = 1e-3)
const
85 #ifndef GISMO_BUILD_LIB
86 #include GISMO_HPP_HEADER(gsCurve.hpp)
Abstract base class representing a geometry map.
Definition: gsGeometry.h:92
gsMatrix< T > m_coefs
Coefficient matrix of size coefsSize() x geoDim()
Definition: gsGeometry.h:624
#define GISMO_NO_IMPLEMENTATION
Definition: gsDebug.h:129
Abstract base class representing a curve.
Definition: gsCurve.h:30
void reverse()
Reverse the coefficients.
Definition: gsCurve.h:71
#define short_t
Definition: gsConfig.h:35
S give(S &x)
Definition: gsMemory.h:266
Provides declaration of Geometry abstract interface.
#define GISMO_ASSERT(cond, message)
Definition: gsDebug.h:89
Class Representing a triangle mesh with 3D vertices.
Definition: gsMesh.h:31
gsCurve(const gsBasis< T > &basis, gsMatrix< T > coefs)
Definition: gsCurve.h:51
memory::shared_ptr< gsCurve > Ptr
Shared pointer for gsCurve.
Definition: gsCurve.h:35
memory::unique_ptr< gsCurve > uPtr
Unique pointer for gsCurve.
Definition: gsCurve.h:38
gsCurve()
Default empty constructor.
Definition: gsCurve.h:47
virtual const gsBasis< T > & basis() const =0
Returns a const reference to the basis of the geometry.
short_t domainDim() const
Dimension d of the parameter domain (overriding gsFunction::domainDim()).
Definition: gsCurve.h:64
A basis represents a family of scalar basis functions defined over a common parameter domain...
Definition: gsBasis.h:78
gsMatrix< T > & coefs()
Definition: gsGeometry.h:340