|
C3D Toolkit
Kernel - 118058, Vision - 2.15.0.1823
|
Weights of a NURBS curve. More...
#include <mb_nurbs_function.h>
Public Member Functions | |
| MbWeightVector () | |
| Default constructor. | |
| MbWeightVector (const MbWeightVector &wv) | |
| Copy-constructor. | |
| size_t | Count () const |
| Number of weights. | |
| size_t | size () const |
| Number of weights. | |
| bool | IsCommonWeight () const |
| Is it used a common weight? | |
| bool | InitWeights (double wt, size_t cnt) |
| Initialize by common weight. | |
| template<class Vector > | |
| bool | InitWeights (const Vector &wts, size_t count=0) |
| Initialize by weights array. | |
| bool | InitWeights (const MbWeightVector &wv) |
| Initialize by weights vector. | |
| template<class Vector > | |
| void | GetWeights (Vector &wts, bool clear=false) const |
| Get weights array. | |
| template<class Vector > | |
| bool | SetWeights (const Vector &wts) |
| Get weights array. | |
| double | GetWeight (size_t index) const |
| Get weight by index. | |
| bool | SetWeight (size_t index, double wt) |
| Set weight by index. | |
| void | AddWeight (double wt) |
| Add weight. | |
| void | InsertWeight (size_t index, double wt) |
| Insert weight. | |
| bool | RemoveWeight (size_t index) |
| Remove weight at index. | |
| bool | RemoveWeights (size_t index1, size_t index2) |
| Remove group of weights in the [index1, index2) interval. | |
| double | GetCommonWeight () const |
| Get common weight (to be used after checking IsCommonWeight). | |
| void | Reverse () |
| Reverse weights. | |
| void | FlushData () |
| Flush data. | |
| template<class Vector > | |
| bool | CanAdjust (const Vector &wts, double eps=DOUBLE_REGION) const |
| Is it possible to adjust memory of weights array? | |
| bool | Adjust (double eps=DOUBLE_REGION) |
| Adjust memory of weights array. | |
| MbWeightVector & | operator= (const MbWeightVector &wv) |
| Assignment operator. | |
| template<class Vector > | |
| MbWeightVector & | operator= (const Vector &wv) |
| Assignment operator. | |
| double | operator[] (size_t index) const |
| Get weight by index. | |
| bool | IsSame (const MbWeightVector &wv, double eps=DOUBLE_REGION) const |
| Comparison. | |
| template<class WeightVector > | |
| bool | IsSame (const WeightVector &wv, double eps=DOUBLE_REGION) const |
| Comparison. | |
Weights of a NURBS curve.
Weights of a NURBS curve.