Overview
/
KCL Standard Library
/
Functions
/
appearance

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

NameTypeDescriptionRequired
solids[Solid; 1+] or ImportedGeometry or PlaneThe solid(s), imported geometry, or plane whose appearance is being set.Yes
colorstringColor of the new material, a hex string like '#ff0000'.Yes
metalnessnumber(_)Metalness of the new material, a percentage like 95.7.No
roughnessnumber(_)Roughness of the new material, a percentage like 95.7.No
opacitynumber(_)Opacity. Defaults to 100 (totally opaque). 0 would be totally transparent.No

Returns

[Solid; 1+] or ImportedGeometry or Plane

Examples