make_material_rmaterial
Kind: Function
Domain: Modeling and geometry
Canonical import: from cadflow import make_material_rmaterial
Signature
def make_material_rmaterial(material_id: 'str', name: 'Optional[str]' = None, density: 'Optional[float]' = None, density_unit: 'Optional[str]' = None, color: 'Optional[Tuple[float, float, float]]' = None) -> 'Material'
Description
Create a material definition for later Part assignment.
Create a material definition for later Part assignment.
Material is deliberately separate from make_part_rpart(...); the only correct workflow is to create a material and then assign it to a Part with assign_material_rpart(...).
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
material_id | 'str' | yes | - | Not explicitly described in the source docstring. |
name | 'Optional[str]' | no | None | Not explicitly described in the source docstring. |
density | 'Optional[float]' | no | None | Not explicitly described in the source docstring. |
density_unit | 'Optional[str]' | no | None | Not explicitly described in the source docstring. |
color | 'Optional[Tuple[float, float, float]]' | no | None | Not explicitly described in the source docstring. |
Returns
Type: 'Material'
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Behavior and constraints
- The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.
Import check
from cadflow import make_material_rmaterial