// =========================================================================== // 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: April 21 1997 // // Description: // Global function to ensure the options for bevel are set. // // Input Arguments: // Force the factory setting or not. // // Return Value: // None. // global proc bevelSetOptionVars( int $forceFactorySettings ) // // // { if ($forceFactorySettings || !`optionVar -exists bevelWidth`) { optionVar -floatValue bevelWidth 0.1 ; } if ($forceFactorySettings || !`optionVar -exists bevelDepth`) { optionVar -floatValue bevelDepth 0.1 ; } if ($forceFactorySettings || !`optionVar -exists bevelExtrudeHeight`) { optionVar -floatValue bevelExtrudeHeight 1.0 ; } // default is circular. // if ($forceFactorySettings || !`optionVar -exists bevelCorner`){ optionVar -intValue bevelCorner 2; } // straight. // if ($forceFactorySettings || !`optionVar -exists bevelCapEdge`){ optionVar -intValue bevelCapEdge 1; } // attach Surfaces. // attach is set to true. // if ($forceFactorySettings || !`optionVar -exists bevelAttachSurfaces`){ optionVar -intValue bevelAttachSurfaces 1; } // Number of sides. // 1 - only extrude. // 2 - bevel top and extrude. // 3 - bevel bottom and extrude. // 4 - bevel both ends and extrude. // if ($forceFactorySettings || !`optionVar -exists bevelNSides`){ optionVar -intValue bevelNSides 4; } // bevelCurveRangePartial (int) - either 0|1 for using the complete // curve or only a partial curve for the operation. // if ($forceFactorySettings || !`optionVar -exists bevelCurveRangePartial`){ optionVar -intValue bevelCurveRangePartial 0; } // bevelOutputPolygons (int) - 0|1 for polygon or Nurbs output // if ($forceFactorySettings || !`optionVar -exists bevelOutputPolygons`){ optionVar -intValue bevelOutputPolygons 0; } // Global or local tolerance: if( $forceFactorySettings || !`optionVar -exists bevelUseGlobalTol` ){ optionVar -intValue bevelUseGlobalTol false; } // Tolerance for bevel if ($forceFactorySettings || !`optionVar -exists bevelTolerance`){ optionVar -floatValue bevelTolerance 0.05; } }