MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / getGeomPropValue

Method getGeomPropValue

source/MaterialXCore/Document.cpp:337–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337ValuePtr Document::getGeomPropValue(const string& geomPropName, const string& geom) const
338{
339 ValuePtr value;
340 for (GeomInfoPtr geomInfo : getGeomInfos())
341 {
342 if (!geomStringsMatch(geom, geomInfo->getActiveGeom()))
343 {
344 continue;
345 }
346 GeomPropPtr geomProp = geomInfo->getGeomProp(geomPropName);
347 if (geomProp)
348 {
349 value = geomProp->getValue();
350 }
351 }
352 return value;
353}
354
355vector<OutputPtr> Document::getMaterialOutputs() const
356{

Callers 5

mainFunction · 0.80
updateMaterialsMethod · 0.80
setValuesMethod · 0.80
Geom.cppFile · 0.80
loadDocumentMethod · 0.80

Calls 3

getGeomInfosFunction · 0.85
geomStringsMatchFunction · 0.85
getValueMethod · 0.45

Tested by

no test coverage detected