MCPcopy Create free account
hub / github.com/microsoft/SandDance / streamLine

Function streamLine

docs/app/js/sanddance-app.js:132036–132041  ·  view source on GitHub ↗
(coordinates, stream, closed)

Source from the content-addressed store, hash-verified

132034 }
132035};
132036function streamLine(coordinates, stream, closed) {
132037 var i = -1, n = coordinates.length - closed, coordinate;
132038 stream.lineStart();
132039 while(++i < n)coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);
132040 stream.lineEnd();
132041}
132042function streamPolygon(coordinates, stream) {
132043 var i = -1, n = coordinates.length;
132044 stream.polygonStart();

Callers 2

sanddance-app.jsFile · 0.70
streamPolygonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected