private void TransferNodes(InputGeometry data)
{
List<Vertex> points = data.points;
this.invertices = points.Count;
this.mesh_dim = 2;
if (this.invertices < 3)
{
logger.Error("Input must have at least three input vertices.", "MeshReader.TransferNodes()");
throw new Exception("Input must have at least three input vertices.");
}
this.nextras = points[0].attributes == null ? 0 : points[0].attributes.Length;
foreach (Vertex vertex in points)
{
vertex.hash = this.hash_vtx++;
vertex.id = vertex.hash;
this.vertices.Add(vertex.hash, vertex);
}
this.bounds = data.Bounds;
}