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

Function parseMaterial

viewer/js/three.js:7835–7857  ·  view source on GitHub ↗
( material )

Source from the content-addressed store, hash-verified

7833 var materials = {};
7834
7835 var parseMaterial = function ( material ) {
7836
7837 if ( output.materials === undefined ) {
7838
7839 output.materials = [];
7840
7841 }
7842
7843 if ( materials[ material.uuid ] === undefined ) {
7844
7845 var json = material.toJSON();
7846
7847 delete json.metadata;
7848
7849 materials[ material.uuid ] = json;
7850
7851 output.materials.push( json );
7852
7853 }
7854
7855 return material.uuid;
7856
7857 };
7858
7859 //
7860

Callers 1

parseObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected