// =========================================================================== // 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 22 1997 // // Description: // Global function to ensure the options for projectTangent are set. // // Input Arguments: // Force the factory setting or not. // // Return Value: // None. // global proc projectTangentSetOptionVars( int $forceFactorySettings ) // // Description : // projectTangent option default setting. // { // keep original (for in place operations is on-1 or off-0). // if ($forceFactorySettings || !`optionVar -exists projectTangentKeepOriginal`) { optionVar -intValue projectTangentKeepOriginal 0; } // keep curvature. Turned off by default. // if ($forceFactorySettings || !`optionVar -exists projectTangentKeepCurvature`) { optionVar -intValue projectTangentKeepCurvature 0; } // reverseTangent. // if ($forceFactorySettings || !`optionVar -exists projectTangentReverseValue`) { optionVar -intValue projectTangentReverseValue 0; } // tangent Align direction. // Possible Values : 1 (u direction), 2 (v direction), 3 ( normal) if ($forceFactorySettings || !`optionVar -exists projectTangentAlignDirection`) { optionVar -intValue projectTangentAlignDirection 1; } // rotation. // if ($forceFactorySettings || !`optionVar -exists projectTangentRotation`) { optionVar -floatValue projectTangentRotation 0.0; } // tangent scale. // if ($forceFactorySettings || !`optionVar -exists projectTangentTangentScaleValue`) { optionVar -floatValue projectTangentTangentScaleValue 1.0; } // curvature scale. // if ($forceFactorySettings || !`optionVar -exists projectTangentCurvatureScale`) { optionVar -floatValue projectTangentCurvatureScale 0.0; } }