MCPcopy Index your code
hub / github.com/processing/p5.js / _makeTriangleEdges

Method _makeTriangleEdges

src/webgl/p5.Geometry.js:1293–1303  ·  view source on GitHub ↗

* Create a 2D array for establishing stroke connections * @private * @chainable

()

Source from the content-addressed store, hash-verified

1291 * @chainable
1292 */
1293 _makeTriangleEdges() {
1294 this.edges.length = 0;
1295
1296 for (let j = 0; j < this.faces.length; j++) {
1297 this.edges.push([this.faces[j][0], this.faces[j][1]]);
1298 this.edges.push([this.faces[j][1], this.faces[j][2]]);
1299 this.edges.push([this.faces[j][2], this.faces[j][0]]);
1300 }
1301
1302 return this;
1303 }
1304
1305 /**
1306 * @example

Callers 4

makeEdgesFromFacesMethod · 0.95
loadingFunction · 0.95
primitives3DFunction · 0.95
cbFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected