Пример #1
0
        /// <summary>
        /// Tessellate Reference Point to render package for visualization.
        /// </summary>
        /// <param name="package"></param>
        /// <param name="tol"></param>
        /// <param name="gridLines"></param>
        void IGraphicItem.Tessellate(IRenderPackage package, double tol, int gridLines)
        {
            if (!IsAlive)
            {
                return;
            }

            package.PushPointVertex(X, Y, Z);
        }
Пример #2
0
        /// <summary>
        /// Tessellate Reference Point to render package for visualization.
        /// </summary>
        /// <param name="package"></param>
        /// <param name="tol"></param>
        /// <param name="gridLines"></param>
        void IGraphicItem.Tessellate(IRenderPackage package, double tol, int gridLines)
        {
            if (!IsAlive)
            {
                return;
            }

            if (this.InternalElement.IsValidObject)
            {
                package.PushPointVertex(X, Y, Z);
            }
        }
Пример #3
0
        internal override bool TessellateCore(IRenderPackage package)
        {
            if (base.TessellateCore(package))
            {
                return(true);
            }

            Color c = (this.Color == null) ? Color.Yellow : this.Color;

            package.PushPointVertex(this.X, this.Y, this.Z);
            package.PushPointVertexColor(c.RedValue, c.GreenValue, c.BlueValue, c.AlphaValue);
            return(true);
        }
Пример #4
0
        internal override bool TessellateCore(IRenderPackage package)
        {
            if (base.TessellateCore(package))
                return true;

            Color c = (this.Color == null) ? Color.Yellow : this.Color;
            package.PushPointVertex(this.X, this.Y, this.Z);
            package.PushPointVertexColor(c.RedValue, c.GreenValue, c.BlueValue, c.AlphaValue);
            return true;
        }
Пример #5
0
 public void Tessellate(IRenderPackage package, double tol = -1, int maxGridLines = 512)
 {
     // This example contains information to draw a point
     package.PushPointVertex(point.X, point.Y, point.Z);
     package.PushPointVertexColor(255, 0, 0, 255);
 }
Пример #6
0
 /// <summary>
 /// Tessellate Reference Point to render package for visualization.
 /// </summary>
 /// <param name="package"></param>
 /// <param name="tol"></param>
 void IGraphicItem.Tessellate(IRenderPackage package, double tol, int gridLines)
 {
     package.PushPointVertex(this.X, this.Y, this.Z);
 }
Пример #7
0
        /// <summary>
        /// Tessellate Reference Point to render package for visualization.
        /// </summary>
        /// <param name="package"></param>
        /// <param name="tol"></param>
        /// <param name="gridLines"></param>
        void IGraphicItem.Tessellate(IRenderPackage package, double tol, int gridLines)
        {
            if (!IsAlive)
                return;

            package.PushPointVertex(X, Y, Z);
        }
Пример #8
0
        /// <summary>
        /// Tessellate Reference Point to render package for visualization.
        /// </summary>
        /// <param name="package"></param>
        /// <param name="tol"></param>
        /// <param name="gridLines"></param>
        void IGraphicItem.Tessellate(IRenderPackage package, double tol, int gridLines)
        {
            if (!IsAlive)
                return;

            if (this.InternalElement.IsValidObject)
            {
                package.PushPointVertex(X, Y, Z);
            }
        }