Ejemplo n.º 1
0
    void UpdateMesh()
    {
        mm.shearOn = showShear;
        mm.bendOn  = showBend;
        if (orientation == Vector3.right)
        {
            mm.axis1 = Vector3.up;
            mm.axis2 = Vector3.forward;
        }
        else if (orientation == Vector3.up)
        {
            mm.axis1 = Vector3.right;
            mm.axis2 = Vector3.forward;
        }
        else
        {
            mm.axis1 = Vector3.right;
            mm.axis2 = Vector3.up;
        }
        mm.delta   = edgeDel;
        mm.dimX    = dimNX;
        mm.dimY    = dimNY;
        mm.initPos = startPosition;

        mm.ReMesh();
        meshChanged = false;
    }