> For the complete documentation index, see [llms.txt](https://manual.karamba3d.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.karamba3d.com/beta/3-in-depth-component-reference/3.4-material.md).

# 3.5: Material

There are two ways for defining materials in Karamba3D: Either select a material by name from a list of materials (see section [3.4.2](/beta/3-in-depth-component-reference/3.4-material/3.4.2-material-selection.md)) or set mechanical material properties manually (see below).

{% hint style="info" %}
The Appendix (see section [A.2.1](/beta/appendix/a.4-background-information/a.4.1-basic-properties-of-materials.md)) contains additional information on mechanical properties of materials.
{% endhint %}

Materials constitute a property of cross sections. There are two ways of attaching materials to cross sections:

1. In order to directly assign a material to a cross section, plug it into the corresponding cross section creation component. This is overridden by indirect material definitions via the **“Assemble”** component as described below.
2. Materials (like cross sections) may be plugged into the **“Assemble”** component. They know about the elements (or element sets) they apply to by their **“Elems|Ids”** property: This is a list of strings containing element identifiers (see section [3.1.6](/beta/3-in-depth-component-reference/3.1-model/3.1.6-create-linear-element/3.1.6-line-to-beam.md)) or regular expressions that match a group of element identifiers (element-ids). Upon assembly each element-id is compared to all **“Elems|Ids”** entries of a material. In case they match the material is attached to the element. An empty string – which is the default value – signifies that the material shall be applied to all elements.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.karamba3d.com/beta/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.
