コード例 #1
0
        public override void Input(MN_Operator_InputData data)
        {
            var input = MN.GetInput(applyTo);

            input.Scale(new Vector3d(XScale, YScale, ZScale));
            input.Normalize();
            MN.SetInput(applyTo, input);
        }
コード例 #2
0
        public override void Input(MN_Operator_InputData data)
        {
            var input = MN.GetInput(applyTo);

            var nx = (rotationMatrix.m00 * input.x) + (rotationMatrix.m10 * input.y) + (rotationMatrix.m20 * input.z);
            var ny = (rotationMatrix.m01 * input.x) + (rotationMatrix.m11 * input.y) + (rotationMatrix.m21 * input.z);
            var nz = (rotationMatrix.m02 * input.x) + (rotationMatrix.m12 * input.y) + (rotationMatrix.m22 * input.z);

            MN.SetInput(applyTo, new Vector3d(nx, ny, nz));
        }
コード例 #3
0
        public override void Input(MN_Operator_InputData data)
        {
            var input = MN.GetInput(applyTo);

            double x = input.x;
            double y = input.y;
            double z = input.z;

            double x2 = pX.GetValue(x + pertubeX1, y + pertubeX2, z + pertubeX3) * power;
            double y2 = pY.GetValue(x + pertubeY1, y + pertubeY2, z + pertubeY3) * power;
            double z2 = pZ.GetValue(x + pertubeZ1, y + pertubeZ2, z + pertubeZ3) * power;

            input = new Vector3d(x + x2, y + y2, z + z2).normalized;

            MN.SetInput(applyTo, input);
        }
コード例 #4
0
 public virtual void Input(MN_Operator_InputData data)
 {
 }