コード例 #1
0
        //public PointRadiusBuffer CreateRadiusBuffer(float[] radius)
        //{
        //    return (this.Factory as PointGridFactory).CreateRadiusBufferData(this, radius);
        //}

        //public PointRadiusBuffer CreateRadiusBuffer(float radius)
        //{
        //    return (this.Factory as PointGridFactory).CreateRadiusBufferData(this, radius);
        //}

        protected override Rectangle3D InitSourceActiveBounds()
        {
            if (this.Positions == null || this.Positions.Length <= 0)
            {
                throw new ArgumentException("Points has No Value");
            }

            vec3 v      = this.Positions[0];
            var  rect3d = new Rectangle3D(v, v);

            for (int i = 0; i < this.Positions.Length; i++)
            {
                rect3d.Union(this.Positions[i]);
            }
            return(rect3d);
        }
コード例 #2
0
        protected override Rectangle3D InitSourceActiveBounds()
        {
            if (this.NodeNum <= 0)
            {
                throw new ArgumentException("No nodes found");
            }

            vec3[] nodes = this.Nodes;
            var    rect  = new Rectangle3D(nodes[0], nodes[0]);

            for (int i = 0; i < nodes.Length; i++)
            {
                rect.Union(nodes[i]);
            }
            return(rect);
        }
コード例 #3
0
        //public PointRadiusBuffer CreateRadiusBuffer(float[] radius)
        //{
        //    return (this.Factory as PointGridFactory).CreateRadiusBufferData(this, radius);
        //}
        //public PointRadiusBuffer CreateRadiusBuffer(float radius)
        //{
        //    return (this.Factory as PointGridFactory).CreateRadiusBufferData(this, radius);
        //}
        protected override Rectangle3D InitSourceActiveBounds()
        {
            if (this.Positions == null || this.Positions.Length <= 0)
            { throw new ArgumentException("Points has No Value"); }

            vec3 v = this.Positions[0];
            var rect3d = new Rectangle3D(v, v);
            for (int i = 0; i < this.Positions.Length; i++)
            {
                rect3d.Union(this.Positions[i]);
            }
            return rect3d;
        }