public Simplification(Vector3[] vertices, int[] triangles) { this.vertices = vertices; this.triangles = triangles; this.faceDb = new FaceDatabase(); this.vertexInfos = InitVertexInfos(); this.costs = InitCosts(); }
public Face(FaceDatabase db, int v0, int v1, int v2) { this._db = db; this._v0 = v0; this._v1 = v1; this._v2 = v2; this._db.Add(this); }