几何尺寸与公差论坛

 找回密码
 注册
查看: 3030|回复: 2

How to get the current tolerance parameters of Tessellate curve?

[复制链接]
发表于 2007-5-20 09:21:37 | 显示全部楼层 |阅读模式
Q:
Hi,
I want to get the boundary of 3D model. In other words, I want to get the display or tessellation data of Curve in wireframe mode.
How to get the current chordTolerance and lengthTolerance for curve objects?
Your API is given below:
vTessPnts = swCurve.GetTessPts ( chordTolerance, lengthTolerance, vStartPnt, vEndPnt );

yogy
 楼主| 发表于 2007-5-20 09:22:09 | 显示全部楼层

回复: How to get the current tolerance parameters of Tessellate curve?

R:
Dear,
You should be able to find the chordTolerance from Tessellation::CurveChordTolerance.  The length tolerance doesn't have a default value.  The minium for both is .00000001.
Regards,
Robin Richter
SolidWorks Technical Support
 楼主| 发表于 2007-5-20 09:23:14 | 显示全部楼层

回复: How to get the current tolerance parameters of Tessellate curve?

R:
Dear,
The main controlling factor to determine the number of tessellated points is chordTolerance. So here is my suggestions on how to use function GetTessPts():

(1) Set lengthTolerance to be the same as chordTolerance.
(2) The SW default value for chordTolerance is 0.0001m.
(3) If the curve is long (say 100m etc.), 0.0001m may be too small as too many tessellated points will be generated. In this case, users have to come up with their own value of chordTolerance. On example is that they can set up a rough upper limit of the number of tessellated points needed: nPoints. Then get the full length of the curve: lLength. Given these two parameters, they can calculate a chordTolerance = (lLength/ nPoints) and pass this value into GetTessPts().
Regards,
Robin Richter
SolidWorks Technical Support
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 00:07 , Processed in 0.038547 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表