Form2:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace _2
{
public partial class Form2 : Form
{List<POINT> ets = new List<POINT>();
public Form2()
{
InitializeComponent();
}
public int Count
{get{return ets.Count;}}
private POINT this[int i]
{
get { return ets[i]; }
}
private void PointCloud(List<POINT> p)
{ this.ets=p;
}
// public this[int i]
//{
// return ets[i];
//}
private int[] ToTagsFromID(List<POINT> p)
{
int[] IDs = new int[p.Count];
for (int i = 0; i < p.Count; i++)
{
IDs[i] = p[i].ID;
}
return IDs;
}
private double[,] ToArray(List<POINT> p)
{
double[,] xyz = new double[ p.Count,3];
for (int i = 0; i < p.Count; i++)
for(int j=0;j<3;j++)
{xyz[i,0]=p[i].x;