ArcGIS Procedural Runtime  3.2.10650
Functions
prtx::MaterialUtils Namespace Reference

Description

Utility functions for working with prtx::Material instances.

Functions

std::vector< std::wstring > getMaterialAsCGAStrings (const prtx::Material &mat, bool changedOnly)
 

Function Documentation

◆ 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
matMaterial to convert.
changedOnlycontrols 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().