38template<
short_t d,
class T>
68 typedef memory::shared_ptr< gsRationalTHBSpline >
Ptr;
71 typedef memory::unique_ptr< gsRationalTHBSpline >
uPtr;
104 std::ostream &
print(std::ostream &os)
const
105 { os <<
"Tensor-NURBS geometry "<<
"R^"<< this->
parDim() <<
106 " --> R^"<< this->
geoDim()<<
", #control pnts= "<< this->
coefsSize() <<
": "
109 << this->
basis().weights().at(0) <<
" ... "
A univariate B-spline basis.
Definition gsBSplineBasis.h:700
Abstract base class representing a geometry map.
Definition gsGeometry.h:93
gsMatrix< T > & coefs()
Definition gsGeometry.h:340
gsMatrix< T >::RowXpr coef(index_t i)
Returns the i-th coefficient of the geometry as a row expression.
Definition gsGeometry.h:346
short_t geoDim() const
Dimension n of the absent physical space.
Definition gsGeometry.h:292
virtual const gsBasis< T > & basis() const =0
Returns a const reference to the basis of the geometry.
short_t parDim() const
Dimension d of the parameter domain (same as domainDim()).
Definition gsGeometry.hpp:190
gsBasis< T > * m_basis
Pointer to the basis of this geometry.
Definition gsGeometry.h:632
gsMatrix< T > m_coefs
Coefficient matrix of size coefsSize() x geoDim()
Definition gsGeometry.h:629
index_t coefsSize() const
Return the number of coefficients (control points)
Definition gsGeometry.h:371
Class for representing a knot vector.
Definition gsKnotVector.h:80
A matrix with arbitrary coefficient type and fixed or dynamic size.
Definition gsMatrix.h:41
A rational Truncated Hierarchical B-Spline basis.
Definition gsRationalTHBSplineBasis.h:37
A rational truncated hierarchical B-Spline function of parametric dimension d, with arbitrary target ...
Definition gsRationalTHBSpline.h:40
memory::unique_ptr< gsRationalTHBSpline > uPtr
Unique pointer for gsRationalTHBSpline.
Definition gsRationalTHBSpline.h:71
util::conditional< d==1, gsConstantFunction< T >, gsRationalTHBSpline< static_cast< short_t >(d-1), T > >::type BoundaryGeometryType
Associated boundary geometry type.
Definition gsRationalTHBSpline.h:62
gsRationalTHBSpline()
Default empty constructor.
Definition gsRationalTHBSpline.h:76
const gsMatrix< T > & weights() const
Returns the NURBS weights.
Definition gsRationalTHBSpline.h:158
gsRationalTHBSplineBasis< d-1, T > BoundaryBasisType
Associated boundary basis type.
Definition gsRationalTHBSpline.h:65
T & weight(int i) const
Access to i-th weight.
Definition gsRationalTHBSpline.h:155
gsBSplineBasis< T > Family_t
Family type.
Definition gsRationalTHBSpline.h:52
gsMatrix< T > & weights()
Returns the NURBS weights as non-const reference.
Definition gsRationalTHBSpline.h:161
std::ostream & print(std::ostream &os) const
Prints the object as a string.
Definition gsRationalTHBSpline.h:104
gsRationalTHBSpline(const gsTensorNurbs< d, T > &nurbs)
Construct B-Spline from a Tensor B-Spline.
Definition gsRationalTHBSpline.h:83
memory::shared_ptr< gsRationalTHBSpline > Ptr
Shared pointer for gsRationalTHBSpline.
Definition gsRationalTHBSpline.h:68
Truncated hierarchical B-spline basis.
Definition gsTHBSplineBasis.h:36
A tensor product B-spline basis.
Definition gsTensorBSplineBasis.h:37
A tensor product Non-Uniform Rational B-spline function (NURBS) of parametric dimension d,...
Definition gsTensorNurbs.h:41
const gsMatrix< T > & weights() const
Returns the NURBS weights.
Definition gsTensorNurbs.h:266
Provides forward declarations of types and structs.
Provides declaration of Geometry abstract interface.
Provides declaration of RationalTHBSplineBasis abstract interface.
The G+Smo namespace, containing all definitions for the library.
S give(S &x)
Definition gsMemory.h:266