For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

AppDef_Variational Parameters

Anonymous's picture

Hi folks,

what is the difference between the max error criterion and the size error criterion? what is the meaning of the 3 smoothing parameters?

thanks and bye, Stefan

Igor Feoktistov's picture

class AppDef_TheVariational (in fact it is AppParCurves_Variational) provides approximation according minimization of complex criterion:

J = w0*J0 + wq*Jq, where J0 is usual least square criterion and Jq is quality criterion. Jq is : Jq = w1*J1 + w2*J2 + w3*J3, where J1, J2 and J3 represent correspondently linear tension, linear flexion and linear jerk. w1+w2+w3 = 1 and can be set by SetCriteriumWeigth(...) If WithMinMax = true (case max error criterion) algorithm will try to minimize max error (max distance between given multipoint and obtained curve) too and try to make it less then given tolerance. In other case (WithMinMax = false) tolerance is used to define wq.

Best regards, Igor

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.