tpm_tracesetmaxres

Land Desktop Development ARX CPP SDK

Up a level
tpm_tracesetmaxres
 
 

Sets maximum resistance for the shortest path algorithm.

int

tpm_tracesetmaxres(

ade_id trace_id,

ads_real maxres);

Returns RTNORM or an error code.

trace_id The tracing model ID, returned from tpm_tracealloc.
maxres The maximum allowed accumulated path resistance.

This function sets an accumulated resistance value for path tracing.

For the shortest path trace to succeed, the total calculated resistance cannot be greater than the value set for the maximum resistance or less than the value set for the minimum resistance. See tpm_tracesetminres. See tpm_traceshort.