> ## 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.

# MoGePointMapToMesh - ComfyUI Built-in Node Documentation

> This node converts a MoGe point map into a 3D mesh.

This node converts a MoGe point map into a 3D mesh. It takes geometry data produced by a MoGe depth estimation node and triangulates it into a mesh with UV coordinates and an optional texture.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `moge_geometry` | The MoGe geometry data containing point maps, depth, and optionally the source image. | MOGE\_GEOMETRY | Yes | N/A |
| `batch_index` | Which image of a batched MoGe geometry to mesh. Per-image vertex counts differ, so batches can't be stacked into a single MESH (default: 0). | INT | Yes | 0 to 4096 |
| `decimation` | Vertex stride; 1 = full resolution (default: 1). | INT | Yes | 1 to 8 |
| `discontinuity_threshold` | Drop pixels whose 3x3 depth span exceeds this fraction. 0 = off (default: 0.04). | FLOAT | Yes | 0.0 to 1.0 |
| `texture` | Carry the source image through as the baseColor texture (default: True). | BOOLEAN | Yes | True/False |

Note: `batch_index` must be smaller than the batch size of the input `moge_geometry`; selecting an out-of-range index raises an error. The input must contain a points output, otherwise the node raises an error. If the triangulation produces an empty mesh, the node raises an error — setting `discontinuity_threshold` to 0 disables the depth-discontinuity filter. The output mesh is converted to glTF coordinates: perspective MoGe data (X right, Y down, Z forward) is flipped to match glTF (Y up, Z back), and panoramic data (geometry without intrinsic parameters) is rotated accordingly with corrected winding. When `texture` is enabled, the source image from `moge_geometry` is used as the baseColor texture.

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `MESH` | A 3D mesh with vertices, faces, UV coordinates, and an optional baseColor texture from the source image. | MESH |

> 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/MoGePointMapToMesh/en.md)

***

**Source fingerprint (SHA-256):** `626925866eed6805d2ce87529909fc76b9484cd2e8118fdd1669a237d44b9b0b`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.