Builds a mesh geometry for a collection of points.
Наследование: HelixToolkit.Wpf.ScreenGeometryBuilder
Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref = "BillboardVisual3D" /> class.
        /// </summary>
        public BillboardVisual3D()
        {
            this.builder = new PointGeometryBuilder(this);
            this.Mesh = new MeshGeometry3D
                {
                    TriangleIndices = this.builder.CreateIndices(1),
                    TextureCoordinates =
                        new PointCollection { new Point(0, 1), new Point(0, 0), new Point(1, 1), new Point(1, 0) }
                };

            this.Model = new GeometryModel3D { Geometry = this.Mesh };
            this.Content = this.Model;
            this.OnMaterialChanged();
            this.OnGeometryChanged();
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref = "BillboardVisual3D" /> class.
        /// </summary>
        public BillboardVisual3D()
        {
            this.builder = new PointGeometryBuilder(this);
            this.Mesh    = new MeshGeometry3D
            {
                TriangleIndices    = this.builder.CreateIndices(1),
                TextureCoordinates =
                    new PointCollection {
                    new Point(0, 1), new Point(0, 0), new Point(1, 1), new Point(1, 0)
                }
            };

            this.Model = new GeometryModel3D {
                Geometry = this.Mesh
            };
            this.Content = this.Model;
            this.OnMaterialChanged();
            this.OnGeometryChanged();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref = "PointsVisual3D" /> class.
 /// </summary>
 public PointsVisual3D()
 {
     this.builder = new PointGeometryBuilder(this);
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref = "PointsVisual3D" /> class.
 /// </summary>
 public PointsVisual3D()
 {
     this.builder = new PointGeometryBuilder(this);
 }