//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); }
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); }
//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; }