public ViewerFace(int primFaceNumber) { this.primFaceNumber = primFaceNumber; this.v1 = new Coord(); this.v2 = new Coord(); this.v3 = new Coord(); this.coordIndex1 = this.coordIndex2 = this.coordIndex3 = -1; // -1 means not assigned yet this.n1 = new Coord(); this.n2 = new Coord(); this.n3 = new Coord(); this.uv1 = new UVCoord(); this.uv2 = new UVCoord(); this.uv3 = new UVCoord(); }
public ViewerVertex(Coord coord, Coord normal, UVCoord uv) { this.v = coord; this.n = normal; this.uv = uv; }