// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // // Creation Date: March 22 1997 // // Description: // Global function to ensure the options for extrude are set. // // Input Arguments: // Force the factory setting or not. // // Return Value: // None. // global proc freeFormFilletSetOptionVars( int $forceFactorySettings ) // // // { // depth. // if ($forceFactorySettings || !`optionVar -exists freeFormFilletDepth`) { optionVar -floatValue freeFormFilletDepth 0.5; } // bias. // if ($forceFactorySettings || !`optionVar -exists freeFormFilletBias`) { optionVar -floatValue freeFormFilletBias 0.0; } // filletOutputPolygons (int) - 0|1 for polygon or Nurbs output // if ($forceFactorySettings || !`optionVar -exists freeFormFilletOutputPolygons`){ optionVar -intValue freeFormFilletOutputPolygons 0; } // use global Vs local tolerance. // // Tolerances - To use global Vs local tolerances. // tolerance (boolean), local positional tolerance (float), // local tangent Tolerance (float). // if ($forceFactorySettings || !`optionVar -exists freeFormFilletUseGlobalTolerance`) { optionVar -intValue freeFormFilletUseUseGlobalTolerance 1; } if ($forceFactorySettings || !`optionVar -exists freeFormFilletLocalPositionalTolerance`) { optionVar -floatValue freeFormFilletLocalPositionalTolerance 0.01; } if ($forceFactorySettings || !`optionVar -exists freeFormFilletLocalTangentTolerance`) { optionVar -floatValue freeFormFilletLocalTangentTolerance 0.1; } }