> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# MeshToFile3D - ComfyUI Built-in Node Documentation

> This node serializes a mesh into a GLB file object that can be passed to Save 3D or Preview 3D nodes.

This node serializes a mesh into a GLB file object that can be passed to Save 3D or Preview 3D nodes. It carries all mesh data along, including UVs, colors, normals, texture, normal/occlusion/emissive maps, and material settings. Only the first item of a multi-item batch is used.

## Inputs

| Parameter | Description                                                                                                                                                                                                                  | Data Type | Required | Range       |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ----------- |
| `mesh`    | The mesh to convert into a GLB file, including UVs, colors, normals, texture, normal/occlusion/emissive maps, and material. Only one item per batch is supported; if a batch contains multiple items, the first one is used. | MESH      | Yes      | Single mesh |

Note: The node supports one item per batch only. If the input mesh contains more than one item in its batch, a warning is logged and the first item is used. The mesh must contain at least one vertex and one face; an empty mesh raises an error.

## Outputs

| Output Name | Description                                                                                                       | Data Type |
| ----------- | ----------------------------------------------------------------------------------------------------------------- | --------- |
| `model_3d`  | A GLB (glTF Binary) file object containing the serialized mesh, ready to be saved or previewed by other 3D nodes. | FILE3D    |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/MeshToFile3D/en.md)

***

**Source fingerprint (SHA-256):** `f004c2907c0df2e0127e49b4767d1624bf89c72665fc7028347a0b8a63a5772e`
