Tri constructor

Tri(
  1. Vertex? v1,
  2. Vertex? v2,
  3. Vertex? v3,
  4. int a,
  5. int b,
  6. int c,
)

Implementation

Tri(this.v1,this.v2,this.v3,this.a,this.b,this.c) {
	computeNormal();

	v1?.faces.add(this);
	v1?.addUniqueNeighbor(v2);
	v1?.addUniqueNeighbor(v3);

	v2?.faces.add(this);
	v2?.addUniqueNeighbor(v1);
	v2?.addUniqueNeighbor(v3);


	v3?.faces.add(this);
	v3?.addUniqueNeighbor(v1);
	v3?.addUniqueNeighbor(v2);
}