|
ModelUtilsSetMaterialOpacity(Model3D, Double, Boolean, Boolean) Method |
Goes through all models in the models hierarchy and sets the opacity (or alpha color) in all materials to the specified opacity.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static void SetMaterialOpacity(
Model3D model,
double newOpacity,
bool setAlphaColor = true,
bool preserveFrozenMaterial = false
)
Parameters
- model Model3D
- GeometryModel3D or Model3DGroup
- newOpacity Double
- new opacity value that is set to materials (1 means fully opaque - no transparency; 0 means fully transparent)
- setAlphaColor Boolean (Optional)
- when true (by default) then in SolidColorBrush the Alpha color is changed instead of Brush's Opacity.
- preserveFrozenMaterial Boolean (Optional)
- when false (false by default) then frozen materials are cloned so that their opacity can be changed; when true frozen materials are not changed
See Also