appearanceFunction in std::solid
Set the appearance of a solid, imported geometry, or plane. This does not work on sketches or individual paths.
This will work on any solid, including extruded solids, revolved solids, and shelled solids.
For planes, only color is used.
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
solids | [Solid; 1+] or ImportedGeometry or Plane | The solid(s), imported geometry, or plane whose appearance is being set. | Yes |
color | string | Color of the new material, a hex string like '#ff0000'. | Yes |
metalness | number(_) | Metalness of the new material, a percentage like 95.7. | No |
roughness | number(_) | Roughness of the new material, a percentage like 95.7. | No |
opacity | number(_) | Opacity. Defaults to 100 (totally opaque). 0 would be totally transparent. | No |
Returns
[Solid; 1+] or ImportedGeometry or Plane