Builds a mesh geometry for a collection of points.
Inheritance: 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();
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref = "PointsVisual3D" /> class.
 /// </summary>
 public PointsVisual3D()
 {
     this.builder = new PointGeometryBuilder(this);
 }
コード例 #4
0
ファイル: PointsVisual3D.cs プロジェクト: litdev1/LitDev
 /// <summary>
 /// Initializes a new instance of the <see cref = "PointsVisual3D" /> class.
 /// </summary>
 public PointsVisual3D()
 {
     this.builder = new PointGeometryBuilder(this);
 }