|
ModelUtilsReplaceMaterial Method |
Goes through all models and replaces the materialToFind with newMaterial.
When isBackMaterial is set to true, BackMaterial is replaced instead of Material.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static void ReplaceMaterial(
Model3D model,
Material materialToFind,
Material newMaterial,
bool isBackMaterial = false
)
Parameters
- model Model3D
- GeometryModel3D or Model3DGroup
- materialToFind Material
- Material that will be replaced by newMaterial
- newMaterial Material
- Material that will be used instead of materialToFind
- isBackMaterial Boolean (Optional)
- if true then BackMaterial is replaced instead of Material
See Also