MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / pushLine

Function pushLine

Three.js/js/Three66.js:8220–8236  ·  view source on GitHub ↗
( a, b )

Source from the content-addressed store, hash-verified

8218 };
8219
8220 var pushLine = function ( a, b ) {
8221
8222 var v1 = _vertexPool[ a ];
8223 var v2 = _vertexPool[ b ];
8224
8225 _line = getNextLineInPool();
8226
8227 _line.id = object.id;
8228 _line.v1.copy( v1 );
8229 _line.v2.copy( v2 );
8230 _line.z = ( v1.positionScreen.z + v2.positionScreen.z ) / 2;
8231
8232 _line.material = object.material;
8233
8234 _renderData.elements.push( _line );
8235
8236 };
8237
8238 var pushTriangle = function ( a, b, c ) {
8239

Callers

nothing calls this directly

Calls 1

getNextLineInPoolFunction · 0.70

Tested by

no test coverage detected