Skip to main content

material

Function material 

Source
pub fn material(id: &str) -> Result<Material, Error>
Expand description

The built-in material with id id, such as "abs", "kraft_phenolic" or "birch_plywood". hpr_design::materials lists them all, each with its density’s source.

§Errors

Error::UnknownMaterial if no built-in material has that id.