|
Q:
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?
R:
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 [url=mkMSITStore:Cocuments%20and%20SettingsrrichterMy%20Documentshelpapi%2007sldworksAPI.chm::/Face2/Face2__GetTrimCurves2.htm]Face2::GetTrimCurves2[/url] 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
|
|