Utility functions for working with prtx::Material instances.
◆ getMaterialAsCGAStrings()
std::vector<std::wstring> prtx::MaterialUtils::getMaterialAsCGAStrings |
( |
const prtx::Material & |
mat, |
|
|
bool |
changedOnly |
|
) |
| |
Converts the material to a set of CGA attributes, analogous the CGA getMaterial() function.
- Parameters
-
mat | Material to convert. |
changedOnly | controls whether all attributes and their values are returned or only the ones which got changed, i.e. set via the CGA set() operation or via an inserted asset. |
- Returns
- a vector of strings in the format { atr name 1, value1, attr name 2, value2, ...}
- See also
- prtx::ShapeUtils::combineMaterials().