MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / addFace

Function addFace

MathBox/mathbox-bundle.js:9610–9623  ·  view source on GitHub ↗
( a, b, c )

Source from the content-addressed store, hash-verified

9608 }
9609
9610 var addFace = function ( a, b, c ) {
9611
9612 var vertexNormals = normals !== undefined ? [ tempNormals[ a ].clone(), tempNormals[ b ].clone(), tempNormals[ c ].clone() ] : [];
9613 var vertexColors = colors !== undefined ? [ scope.colors[ a ].clone(), scope.colors[ b ].clone(), scope.colors[ c ].clone() ] : [];
9614
9615 scope.faces.push( new THREE.Face3( a, b, c, vertexNormals, vertexColors ) );
9616
9617 if ( uvs !== undefined ) {
9618
9619 scope.faceVertexUvs[ 0 ].push( [ tempUVs[ a ].clone(), tempUVs[ b ].clone(), tempUVs[ c ].clone() ] );
9620
9621 }
9622
9623 };
9624
9625 if ( indices !== undefined ) {
9626

Callers 1

mathbox-bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected