예제 #1
0
        private void SetRadiusValue(object data)
        {
            var radius = (double)data;
            if (Builder.Node.Children.Count == 0)
                return;
            if (radius > 0)
            {
                BeginUpdate();

                Builder[1].RefTransformedPoint3D = NodeBuilderUtils.PointForNewArcRadius(Builder,
                                                                                     Builder[0].RefTransformedPoint3D,
                                                                                     Builder[1].RefTransformedPoint3D,
                                                                                     radius);
                Builder[2].RefTransformedPoint3D = NodeBuilderUtils.PointForNewArcRadius(Builder,
                                                                                     Builder[0].RefTransformedPoint3D,
                                                                                     Builder[2].RefTransformedPoint3D,
                                                                                     radius);

                Builder.ExecuteFunction();
                NodeBuilderUtils.UpdateSketchesOnFaces(new NodeBuilder(Parent));
                EndVisualUpdate("");
            }
        }