高级会员
注册日期: 06-11
帖子: 1527
精华: 15
现金: 6353 标准币
资产: 6353 标准币
|
回复: How to get such parameters as qualityIndex, TessMin, qualityNum, TessMax, BodyDiamet
Q:
Robin,
I don’t think so. I need your strict and patient guidance.
I found that quality number was equal as quality index.
long qualityNumber = 100;
dModelDoc.SetTessellationQuality(qualityNumber);
// qualityIndex is 100 in watch window
long qualityIndex = dModelDoc.GetTessellationQuality();
As view as your given formula, qualityIndex value is between TessMin and TessMax and its unit is meter.
qualityIndex = TessMin + qualityNum*((TessMax-TessMin)/100)
Example:
Consider TessMax is 0.001, TessMin is 0 and qualityNum is 100, qualityIndex is 0.001.
But, as view as SW_API help doc, qualityIndex should be number, not value with unit.
SW_API help doc as follows:
Number between 0 and 100 that indicates the quality of tessellation to use for this part; a higher index means finer tessellation
|