Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 347 Bytes

File metadata and controls

11 lines (7 loc) · 347 Bytes

Solid.addTriangle()

Appends a counter-clockwise triangle labeled with faceName to the authored mesh buffers. The solid is marked dirty and the method returns this.

Usage

solid.addTriangle('TOP', [0, 0, 1], [1, 0, 1], [0, 1, 1]);

Use identical shared vertex coordinates if you want neighboring triangles to reuse vertices.