first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# make_material_rmaterial
|
||||
|
||||
## API Definition
|
||||
|
||||
```python
|
||||
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
|
||||
```
|
||||
|
||||
*Source: operations.py*
|
||||
|
||||
## Import Surface
|
||||
|
||||
- top-level: `from simplecadapi import make_material_rmaterial`
|
||||
|
||||
## Description
|
||||
|
||||
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(...)`.
|
||||
Reference in New Issue
Block a user