Esempio n. 1
0
        public override void Update()
        {
            AdnInventorUtilities.Timer Timer = new AdnInventorUtilities.Timer();

            while (_radius < 0.3)
            {
                double dT = Timer.ElapsedSeconds;

                _radius += dT * _speed;

                this.DeleteGraphics();

                SurfaceBody surface =
                    AdnInventorUtilities.InventorApplication.TransientBRep.CreateSolidSphere(
                        _pos,
                        _radius);

                SurfaceGraphics surfGraph = this.GraphicsManager.DrawSurface(
                    surface, 
                    this.GraphicsNode);

                this.GraphicsManager.UpdateView();
            }

            this.DeleteGraphics();
            this.GraphicsManager.UpdateView();
        }
Esempio n. 2
0
        public override void Update()
        {
            AdnInventorUtilities.Timer Timer = new AdnInventorUtilities.Timer();

            while (_radius < 0.3)
            {
                double dT = Timer.ElapsedSeconds;

                _radius += dT * _speed;

                this.DeleteGraphics();

                SurfaceBody surface =
                    AdnInventorUtilities.InventorApplication.TransientBRep.CreateSolidSphere(
                        _pos,
                        _radius);

                SurfaceGraphics surfGraph = this.GraphicsManager.DrawSurface(
                    surface,
                    this.GraphicsNode);

                this.GraphicsManager.UpdateView();
            }

            this.DeleteGraphics();
            this.GraphicsManager.UpdateView();
        }