StringToList
public static List<Vertex3D> StringToList(string pointString, string[] separatingString)
문자열 포인트를 List Collection으로 변환
Parameters
| Name | Type | Description |
|---|---|---|
| pointString | string | 문자열 포인트. 예) 324225.0,2654.0,7484.0,322463.0,2654.0,7484.0 |
| separatingString | string[] | 구분자. 예) ',' |
Returns
| Type | Description |
|---|---|
| List<Vertex3D> | Vertex List Collection |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
string points = "322463.0,2654.0,7484.0,322460.0,2654.0,7484.0,320530.0,2654.0,7484.0";
List<VIZCore3D.NET.Data.Vertex3D> items
= VIZCore3D.NET.Data.Vertex3D.StringToList(points, new string[] { "," });
for (int i = 0; i < items.Count; i++)
{
VIZCore3D.NET.Data.Vertex3D item = items[i];
// Some code here...S
}
}