public void addTriangle(Vector3 a, Vector3 b, Vector3 c) { TriangleData tri = ScriptableObject.CreateInstance <TriangleData>(); tri.create(a, b, c); triangles.Add(tri); }