MCPcopy
hub / github.com/mapillary/OpenSfM / getNormalIndex

Function getNormalIndex

viewer/js/three.js:10121–10136  ·  view source on GitHub ↗
( normal )

Source from the content-addressed store, hash-verified

10119 }
10120
10121 function getNormalIndex( normal ) {
10122
10123 var hash = normal.x.toString() + normal.y.toString() + normal.z.toString();
10124
10125 if ( normalsHash[ hash ] !== undefined ) {
10126
10127 return normalsHash[ hash ];
10128
10129 }
10130
10131 normalsHash[ hash ] = normals.length / 3;
10132 normals.push( normal.x, normal.y, normal.z );
10133
10134 return normalsHash[ hash ];
10135
10136 }
10137
10138 function getColorIndex( color ) {
10139

Callers 1

three.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected