HelixToolkit.Wpf.PointsVisual3D.UpdateGeometry C# (CSharp) Метод

UpdateGeometry() защищенный Метод

Updates the geometry.
protected UpdateGeometry ( ) : void
Результат void
        protected override void UpdateGeometry()
        {
            this.Mesh.Positions = null;
            if (this.Points == null)
            {
                return;
            }

            int n = this.Points.Count;
            if (n > 0)
            {
                if (this.Mesh.TriangleIndices.Count != n * 6)
                {
                    this.Mesh.TriangleIndices = this.builder.CreateIndices(n);
                }

                this.Mesh.Positions = this.builder.CreatePositions(this.Points, this.Size, this.DepthOffset);
            }
        }