public MeshTriangle(MeshVertex vertex1, MeshVertex vertex2, MeshVertex vertex3) { this.Vertex1 = vertex1; this.Vertex2 = vertex2; this.Vertex3 = vertex3; this.visible = true; this.CurrentBarycentricCoordinate = BarycentricCoordinate.Zero; this.material = null; }
protected Primitive() { this.material = new PhongMaterial(); }