MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / addThreeMaterial

Function addThreeMaterial

src/utilities/geometry/ThreeJS.cpp:96–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void addThreeMaterial(std::vector<ThreeMaterial>& materials, std::map<std::string, std::string>& materialMap, const ThreeMaterial& material) {
97 materialMap[material.name()] = material.uuid();
98 materials.push_back(material);
99}
100
101std::string getThreeMaterialId(const std::string& materialName, std::map<std::string, std::string>& materialMap) {
102 auto it = materialMap.find(materialName);

Callers 4

buildMaterialsFunction · 0.85
modelToThreeJSMethod · 0.85
makeMaterialMethod · 0.85
toThreeSceneMethod · 0.85

Calls 3

nameMethod · 0.45
uuidMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected