Ejemplo n.º 1
0
        protected override void OnInitialize()
        {
            Reset();

            Rendering = Graphic.Create(null, null, LawsonRelaxGraphics.GetGraphic(lawson));

            //	SelectionTypes = new[] { typeof(DesignFace), typeof(CustomObject) }; bzc
        }
Ejemplo n.º 2
0
        private void StartThread()
        {
            isThreadRunning = true;
            thread          = new System.Threading.Thread((System.Threading.ThreadStart) delegate {
                while (isThreadRunning)
                {
                    buttonCapsule.UpdateProperties();
                    for (int i = 0; i < 20; i++)
                    {
                        lawson.Iterate();
                    }

                    Rendering  = Graphic.Create(null, null, LawsonRelaxGraphics.GetGraphic(lawson));
                    StatusText = string.Format("Iteration {0}  Error {1}  Max {2}", lawson.Iteration, lawson.CumulativeError, lawson.MaxError);
                }
            });
            thread.Start();
        }