Ejemplo n.º 1
0
        private void GetRotateValue(ref object resultvalue)
        {
            var nb = new NodeBuilder(Parent);

            if (nb.FunctionName != FunctionNames.Sketch)
            {
                return;
            }

            var interpreter = Parent.Get <TransformationInterpreter>();

            if (interpreter == null)
            {
                return;
            }
            var transformations = NodeBuilderUtils.GetTransformations(nb);
            var multiplied      = new gpTrsf();

            foreach (var trsf in transformations)
            {
                multiplied = multiplied.Multiplied(trsf);
            }
            var matr = multiplied.VectorialPart;
            // extract rotation from matrix
        }