import Vertice from './MeshVertice' ; export default class Triangle { constructor ( public v1 , public v2 , public v3 ) { } setColor ( c ) { this . v1 . c = this . v2 . c = this . v3 . c = c ; } static assembleQuad ( leftTop , leftBottom , rightTop , rightBottom ) { return [ new Triangle ( leftTop , leftBottom , rightTop ) , new Triangle ( rightTop , leftBottom , rightBottom ) ] ; } } ;