# 3.4: 材料 (Material)

在Karamba3D中有两种定义材料的方法：从材料列表中选择一种材料（参阅第[3.4.2](/chinese_1_3_3/3-in-depth-component-reference/3.4-material/3.4.2-material-selection.md)节），或手动设置机械材料属性（详见下文）。

{% hint style="info" %}
&#x20;附录（见[A.2.1](/chinese_1_3_3/appendix/a.4-background-information/a.4.1-basic-properties-of-materials.md)节）包含相关材料机械性能的更多信息。
{% endhint %}

材料构成断面的属性。有两种将材料附着到断面的方法：

1. 为了将材料直接分配给断面，可将其接入相应的断面创建运算器中。如下文所述，通&#x8FC7;**“Assemble（模型构建）”**&#x8FD0;算器的方式可以覆写所有间接的材料定义。
2. 此外，也可以将材料（如断面）接&#x5165;**“Assemble（模型构建）”**&#x8FD0;算器中。借&#x52A9;**“Elems|Ids”**&#x5C5E;性可以了解要应用的元素（或元素集）：这是一组包含元素标识符的字符串（请参阅[3.1.6](/chinese_1_3_3/3-in-depth-component-reference/3.1-model/3.1.6-line-to-beam.md)）或是与一组元素标识符相匹配的正则表达式（element-ID）。模型构建后，将每个element-id与材料的所&#x6709;**“Elems|Ids”**&#x6761;目进行比较。如匹配，则将材料附加到元素上。空字符串（默认值）则表示该材料可应用于所有元素。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual-1-3.karamba3d.com/chinese_1_3_3/3-in-depth-component-reference/3.4-material.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
