// Copyright (C) 1997-2004 Alias Systems Corp.
// 
// The information in this file is provided for the exclusive use of the
// licensees of Alias.  Such users have the right to use, modify,
// and incorporate this code into other products for purposes authorized
// by the Alias license agreement, without fee.
// 
// ALIAS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
// INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
// EVENT SHALL ALIAS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
// CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
// DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
// TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.

//
//  Alias Script File
//  MODIFY THIS AT YOUR OWN RISK
//
//  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;
	}
}

