C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
MbApproxWeightConstraint< Vector > Struct Template Reference

Parameters for the approximation by a NURBS curve. More...

#include <mb_smooth_nurbs_fit_curve.h>

Public Member Functions

 MbApproxWeightConstraint ()
 Default constructor.
 
 MbApproxWeightConstraint (const MbApproxWeightConstraint &that)
 The copy constructor.

 
 MbApproxWeightConstraint (double weight, double weightDer, const Vector &deriv)
 The constructor by parameters.
 
 MbApproxWeightConstraint (double weight)
 The constructor by parameters.
 
MbApproxWeightConstraintoperator= (const MbApproxWeightConstraint &that)
 The assignment operator.
 
double GetWeightPoint () const
 Get point weight.
 
double GetWeightDer () const
 Get derivative weight.
 
const Vector & GetDerivative () const
 Get derivative.
 
bool IsDerivativeConstraintDefined () const
 Whether derivative constraint defined.
 
bool IsPointFixed () const
 Whether point fixed.
 
bool IsDerivativeFixed () const
 Whether derivative fixed.
 
void SetWeightPoint (double wt)
 Set point weight.
 
void SetWeightDerivative (double wt, const Vector &der)
 Set derivative weight.
 

Public Attributes

double _weight
 Point's weight. Negative weight means that point is fixed.
 
double _weightDer
 Derivative's weight. Negative weight means that point is fixed. Zero weight means there is no constraint.
 
Vector _deriv
 Derivative value.
 

Detailed Description

template<class Vector>
struct MbApproxWeightConstraint< Vector >

Parameters for the approximation by a NURBS curve.

Parameters for the approximation by a NURBS curve. There are two constraint types - interpolational and approximational. A sign of an interpolation constrain is any negative weight.


The documentation for this struct was generated from the following file: