// =========================================================================== // 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: Mar. 14, 1997 // // Description: // Global function to make sure the options for insertKnot are set. // // Input Arguments: // Force the factory setting or not. // // Return Value: // None. // global proc insertKnotSetOptionVars( int $forceFactorySettings ) { // Keep Original option var. This corresponds to the // "-rpo/-replaceOriginal" flag for insertKnot commands. if ($forceFactorySettings || !`optionVar -exists insertKnotKeepOriginal`) { optionVar -intValue insertKnotKeepOriginal 0; } // -nk/-numberOfKnots int if ($forceFactorySettings || !`optionVar -exists insertKnotNumberOfKnotsToInsert`) { optionVar -intValue insertKnotNumberOfKnotsToInsert 1; } // -add/-addKnots boolean if ($forceFactorySettings || !`optionVar -exists insertKnotAddOrComplement`) { optionVar -intValue insertKnotAddOrComplement 1; } // -ib/-insertBetween boolean if ($forceFactorySettings || !`optionVar -exists insertKnotBetween`) { optionVar -intValue insertKnotBetween 0; } if ($forceFactorySettings || !`optionVar -exists insertIsoKeepOriginal`) { optionVar -intValue insertIsoKeepOriginal 0; } if ($forceFactorySettings || !`optionVar -exists insertIsoNumberOfIsosToInsert`) { optionVar -intValue insertIsoNumberOfIsosToInsert 1; } if ($forceFactorySettings || !`optionVar -exists insertIsoAddOrComplement`) { optionVar -intValue insertIsoAddOrComplement 1; } if ($forceFactorySettings || !`optionVar -exists insertIsoBetween`) { optionVar -intValue insertIsoBetween 0; } if ($forceFactorySettings || !`optionVar -exists insertKnotIsoparm`) { optionVar -intValue insertKnotIsoparm 0; } }