unwrapUVs
Automatically generate and optimize UV coordinates for 3D meshes, enabling efficient texturing with customizable methods, margins, and packing options.
Instructions
Generate UV coordinates using automatic unwrapping
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| items | Yes | UV unwrapping operations | 
Input Schema (JSON Schema)
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "properties": {
    "items": {
      "description": "UV unwrapping operations",
      "items": {
        "additionalProperties": false,
        "properties": {
          "channel": {
            "default": 0,
            "description": "Target UV channel",
            "minimum": 0,
            "type": "integer"
          },
          "margin": {
            "default": 0.01,
            "description": "Margin between UV islands",
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          },
          "meshId": {
            "description": "Mesh identifier",
            "type": "string"
          },
          "method": {
            "default": "angle",
            "description": "Unwrapping method",
            "enum": [
              "angle",
              "conformal",
              "lscm",
              "abf",
              "sphere",
              "box",
              "cylinder"
            ],
            "type": "string"
          },
          "normalizeUVs": {
            "default": true,
            "description": "Whether to normalize UVs to 0-1 range",
            "type": "boolean"
          },
          "packIslands": {
            "default": true,
            "description": "Whether to pack UV islands efficiently",
            "type": "boolean"
          }
        },
        "required": [
          "meshId"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "items"
  ],
  "type": "object"
}