예제 #1
0
        /// <summary>
        /// Отрисовка геометрии антенны
        /// </summary>
        /// <param name="surfaceGeometry"></param>
        public void Draw(Aperture surfaceGeometry)
        {
            List <double> vertexX = surfaceGeometry.ListX;
            List <double> vertexY = surfaceGeometry.ListY;
            List <double> vertexZ = surfaceGeometry.ListZ;



            Point3D[] points = new Point3D[surfaceGeometry.Count];

            for (int i = 0; i < surfaceGeometry.Count; i++)
            {
                points[i] = surfaceGeometry[i].Center;
            }

            //if (ScaleFactor < surfaceGeometry.DiagonalSize)
            //{
            //    ScaleFactor = (float)surfaceGeometry.DiagonalSize;
            //}

            if (Antenna != null)
            {
                removingAntenna();
            }
            Color color = new Color(50, 100, 100);

            Antenna = new AntennaMesh("", points, color);
            Scene.Instance.addRenderObject(Antenna);
        }
예제 #2
0
 public void removingAntenna()
 {
     Scene.Instance.removeRenderObject(Antenna);
     Antenna.Dispose();
     Antenna = null;
 }