Jump to content
Mr. Bodo Hasubek

Using .setNumberOfEvaluationsForParametrization() and .setApproximationTolerance()

Recommended Posts

Dear all,

 

I would like do have a defined accuracy for my imagecurves and offsetcurves.

I found two settings that may influence that:

 

1) .setNumberOfEvaluationsForParametrization()

2) .setApproximationTolerance()

 

(both apparently work for imagecurves and offsetcurves)

 

Questions:

 

i) What exactly do they do and what is the interaction/dependence between these two parameters?

ii) Which one should be used?

iii) What are the standard values for those parameters? (I couldn't find the corresponding get... functions)

 

Thank you and kind regards,

Bodo

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Hi Bodo,

 

an image curve will be default be the exact curve as the source curve. When you change the parametrization to e.g. "Unit Speed", then the curve will be approximated with new control points to fit the original curve within a certain approximation tolerance.

 

The command .setNumberOfEvaluationForParametrization() is not used anymore and should not have any effect on the curve.

 

The default value of the approximation tolerance is 1e-5

post-85-0-51458200-1510589664_thumb.png

 

best regards

 

Carsten

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...