# Curve

Todo: Lot of examples.

# Curve Example

    // Parameters:
    vectorType: string, //"V3" or "V2", this param will be removed
    points:     number [][] | Vector2[] | Vector3[],
    size:       number, 
    color:      number, 
    emissive:   number
    // Curve need array of way points 
    // class CatmullRomCurve3 will generate curve path 
    const curveSin  = mw.add.curve ( 'V3', sinPoints, 20,  0x00FF00, 0xffd144, )
    //Default material options
    public paramMaterial = {

        transparent:        true,
        opacity:            1,

        color:              0xFF0000,        
        emissive:           0xffd144,
        emissiveIntensity:  0.7,
        roughness:          0.5,
        metalness:          1,

        side:               DoubleSide,
        flatShading:        true,
        blending:           1,
        fog:                false,
        wireframe:          false
    }

Curve and fat curve example:

Curve