Q:
Robin,
Thanks.
How to get TessMin?
tessDeviation result which is calculated by my code is 83 according to your formula. Which unit does tessDeviation used?
If its unit is meter, it looks that tessDeviation value is too large.
My code as follows:
// get qualityNum
long qualityNum = dModelDoc.GetTessellationQuality();
// get TessMax
double tessMax = dModelDoc.GetUserPreferenceDoubleValue ( swImageQualityShadedDeviation);
dModelDoc.DetachDispatch();
// get qualityIndex
double qualityIndex = qualityNum / 100 * tessMax;
if (qualityIndex > 0)
tessDeviation = bodyDiameter / qualityIndex * 0.025;
return tessDeviation;
Are you sure the following formula is correct? Pls check it and tell me the correct formula.
qualityIndex = TessMin + qualityNum*((TessMax-TessMin)/100)
Deviation = 0.025 * (BodyDiameter) / qualityIndex
|