5 #ifndef _MGKnotVector_HH_
6 #define _MGKnotVector_HH_
11 #include "mg/NDDArray.h"
142 void divide_span(
int num);
164 bool in_range(
double t)
const;
172 int locate(
double tau,
int left)
const;
173 int locate(
double tau)
const;
183 int locate_multi(
int start,
int multi,
int& index)
const;
202 double param_error()
const;
205 double param_span()
const;
209 double param_normalize(
double t)
const;
214 double range(
double t)
const;
221 double reverse_param(
double t)
const;
238 void size_change(
int order,
int bdim);
int order() const
Return order.
Definition: KnotVector.h:193
MGNDDArray & operator+=(double)
int length() const
Return the length of MGNDDArray.
Definition: NDDArray.h:179
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
MGNDDArray & operator*=(double scale)
bool operator==(const MGNDDArray &t2) const
Copmarison operator.
MGNDDArray & operator-=(double)
MGNDDArray operator-() const
virtual int restore(MGIfstream &)
Restore Function.
void set_null()
Set this as a null.
Definition: KnotVector.h:228
virtual int dump_size() const
virtual int locate(double tau) const
Defines Knot vector of B-Representation.
Definition: KnotVector.h:28
virtual void set_null()
Set this as a null NDDArray.
MG_DLL_DECLR friend std::ostream & operator<<(std::ostream &, const MGNDDArray &)
String stream Function.
MG_DLL_DECLR friend MGNDDArray operator*(double scale, const MGNDDArray &nd)
Friend Function.
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
virtual void change_range(double ts, double te)
bool operator!=(const MGNDDArray &t2) const
Definition: NDDArray.h:144
MGNDDArray & operator=(const MGNDDArray &vec2)
Assignment.
Defines non-decreasing double data array.
Definition: NDDArray.h:27
Defines Array of Knots.
Definition: KnotArray.h:26
virtual int dump(MGOfstream &) const
Dump Function.
double operator()(int i) const
Definition: NDDArray.h:117
virtual int locate_multi(int start, int multi, int &index) const
double param_e() const
Return end parameter value.
Definition: KnotVector.h:196
double param_s() const
Return start parameter value.
Definition: KnotVector.h:199
MGNDDArray operator+(double) const
int bdim() const
Definition: KnotVector.h:122