createCurveFor2DContact

MDL FunctionDesignable FunctionCreates two curves that can be used to define a 2D contact.

Description

The curve defined by the user may not satisfy the requirement of the 2D contact in MotionSolve; two equivalent curves can be created by calling this function. You can also specify which points need to be made designable in the new curves created.

Signature

curve_i, curve_j = createCurveFor2DContact(
                      paramCurveI,
                      paramCurveJ,
                      designableIndexI=[],
                      boundsI=[],
                      designableIndexJ=[],
                      boundsJ=[]):

Input Arguments

paramCurveI
The first parametric curve upon which 2D contact is defined.
paramCurveJ
The second parametric curve upon which 2D contact is defined.
designableIndexI
Specifies the points in Curve I that should be made designable.
boundsI
Specifies the upper and lower bounds of designable points in Curve I.
designableIndexJ
Specifies the points in Curve J that should be made designable.
boundsJ
Specifies the upper and lower bounds of designable points in Curve J.

Return Value

curve_i
Newly created curve that is equivalent to paramCurveI.
curve_j
Newly created curve that is equivalent to paramCurveJ.

Usage

# Create 2 ParamCurves to be used in 2D Contact
newparCrv1, newparCrv2 = createCurveFor2DContact(
     paramCurveI = parCrv1,
     designableIndexI = [11,12,13,14,15,16,17,18,19,20,21,22],
     boundsI = [],
     paramCurveJ = parCrv2,
     designableIndexJ = [],  
     boundsJ = [], 
    )