namespace Mapbox.Unity.MeshGeneration.Data { using System; using System.Collections.Generic; using UnityEngine; using Utils; // TODO: Do we need this class? Why not just use `Mesh`? public class MeshData { public Vector3 PositionInTile; public List Edges; public Vector2 MercatorCenter; public RectD TileRect; public List Vertices; public List Normals; public List Tangents; public List> Triangles; public List> UV; public MeshData() { Edges = new List(); Vertices = new List(); Normals = new List(); Tangents = new List(); Triangles = new List>(); UV = new List>(); UV.Add(new List()); } internal void Clear() { Edges.Clear(); Vertices.Clear(); Normals.Clear(); Tangents.Clear(); foreach (var item in Triangles) { item.Clear(); } foreach (var item in UV) { item.Clear(); } } } }