![]() |
What is the range of tolerance value for Modeler::SetToleranceValue?
Q(Question):
Robin, I got it. What is the range of tolerance value for Modeler::SetToleranceValue? And what is the default or optimized value of tolerance in SW modeler? What is the value range for ModelDoc2.SetTessationQuality? And what is the default or optimized value for tessellation of OPENGL? yogy |
回复: What is the range of tolerance value for Modeler::SetToleranceValue?
R:
Yogy, For SetTolerance below is information about the default values. I don’t think there is a range. For SetTessationQuality the range is 0-100, the default is 46. The default tolerance setting for 3D geometry output is 0.01 meters, while 2D geometry uses a 1e-4 dimensionless tolerance value. If your 3D trim curves are coming out too far from the surfaces they are trimming or are not close to the 2D trim curves, then you might want to tighten the tolerance. Set the tolerances before any extraction of geometry. The tolerance values can be reset by other AddIns such as IGES. Make sure that they are set to your values when you need them. The tolerance settings only affect other AddIn applications. However, you should be careful to reset the tolerances so that other AddIn applications are not affected by your choice of tolerance. The swUVCurveOutputTol tolerance is used during the extraction of UV (SP) trim curves. The Face2::GetTrimCurves2 method is affected by this setting. This tolerance value represents a fraction of the characteristic small dimension of a face (the tolerance is dimensionless). For example, if you set the swUVCurveOutputTol tolerance value to 3e-6 and the smallest dimension of the face is 0.4 meters, then the largest deviation of the trim curve will be: (0.4 x 3e-6) meters For reference, the SolidWorks IGES processor lets you control the swUVCurveOutputTol tolerance setting in the user preferences area. The normal setting under IGES uses a tolerance of 1e-4, while the high setting changes this tolerance to 3e-6. The IGES setting does not affect your application. Higher tolerance settings can increase processing time and the size of any output results. Robin Richter |
回复: What is the range of tolerance value for Modeler::SetToleranceValue?
Q:
Subject: What is the largest deviation and unit relative to the default (46) for FACE? Happy New Year! You mentioned that for SetTessationQuality the range is 0-100, the default is 46. Thanks. What is the largest deviation and unit relative to the default (46) for FACE? I want to know the mapping relation between range and largest deviation. Yogy |
回复: What is the range of tolerance value for Modeler::SetToleranceValue?
R:
Yogy, Happ New Year to you also. The numeric deviation value changes based on the current part. This deviation is calculated as follows: qualityIndex = TessMin + qualityNum*((TessMax-TessMin)/100)
Deviation = 0.025 * (BodyDiameter) / qualityIndex
Robin Richter |
所有的时间均为北京时间。 现在的时间是 09:25 AM. |