# 3.3: 断面 (Cross Section)

Karamba3D提供了梁、壳体和弹性元件的断面定义。可以使&#x7528;**“Cross Sections（断面）”**&#x591A;元运算器生成上述元件，其底部下拉列表可用于选择断面类型。

每个断面的尺寸可以手动定义，也可以参考断面列表进行定义（参见第[3.3.10](/chinese_1_3_3/3-in-depth-component-reference/3.3-cross-section/3.3.10-cross-section-selector.md)节）。

![图3.3.1：具有四种不同种类断面的悬臂](/files/-M9XuR_gJEfEe4sj2P3v)

断面可以直接接入用于创建元素的（**“LineToBeam（由线到梁）”**、**“MeshToShell（由网格面到壳体）”**&#x7B49;运算器）。抑或，当断面被输入&#x5230;**“Assemble（模型构建）”**&#x8FD0;算器时（见图3.3.1），它们作用于那些标识符&#x4E0E;**“Elem|Id”**&#x7ED9;出字符串相匹配的元素。如果&#x5728;**“Elem|Id”**&#x8F93;入端口提供元素，则其标识符可用于将断面附加到元素。通&#x8FC7;**“Assemble（模型构建）”**&#x8FD0;算器添加的断面自动覆盖由元素创建运算器直接提供的断面。

通&#x8FC7;**“Assemble（模型构建）”**&#x8FD0;算器间接指定的断面具有以下优点：可以使用正则表达式指定元素。构建后，将所有元素标识符与断面&#x7684;**“Elem|Id”**&#x6761;目进行比较。如果匹配，则可将断面连接到该元素。空字符串（默认值）则表示该断面适用于所有元素。如果两个断面指向同一个元素，则稍后由模型构建运算器处理的断面将获得优先权。将梁的断面归于壳体的尝试是无效的，反之亦然–任何此类尝试均将被Karamba3D视为无效。


---

# 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.3-cross-section.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.
