---
title: "mesh.symmetrize: Symmetrize — Scene kit command — Kition"
description: "Makes the whole edited mesh, whatever is selected, symmetric across `axis`, copying one side to the other."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/mesh.symmetrize"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/mesh.symmetrize](https://developer.kition.ai/docs/kits/scene/commands/mesh.symmetrize)

# mesh.symmetrize

**Symmetrize.** Makes the whole edited mesh, whatever is selected, symmetric across `axis`, copying one side to the other.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `axis` | `"x" \| "y" \| "z"` | no | The axis whose plane the mesh is mirrored across (x) |
| `direction` | `"positive" \| "negative"` | no | Which side replaces the other (positive) |
| `elements` | `object` | no | Runs the command in this mesh's edit mode on these elements and puts the mode and the selections back afterwards, so no `mode.set` or `mesh.select` step is needed: `object` (the mesh, an id or a name), `vertices` and `faces` (indices from 0, as `mesh.select` takes them; every vertex when both are left out) |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "mesh.symmetrize" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `axis`, `direction`, `elements`. scene_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "axis": {
      "description": "The axis whose plane the mesh is mirrored across (x)",
      "enum": [
        "x",
        "y",
        "z"
      ],
      "type": "string"
    },
    "direction": {
      "description": "Which side replaces the other (positive)",
      "enum": [
        "positive",
        "negative"
      ],
      "type": "string"
    },
    "elements": {
      "additionalProperties": false,
      "description": "Runs the command in this mesh's edit mode on these elements and puts the mode and the selections back afterwards, so no `mode.set` or `mesh.select` step is needed: `object` (the mesh, an id or a name), `vertices` and `faces` (indices from 0, as `mesh.select` takes them; every vertex when both are left out)",
      "properties": {
        "faces": {
          "description": "Face indices, from 0",
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "object": {
          "description": "The mesh object",
          "oneOf": [
            {
              "description": "the object's id",
              "type": "integer"
            },
            {
              "description": "the object's name",
              "type": "string"
            }
          ],
          "x-khp-name": "name",
          "x-khp-role": "object",
          "x-khp-types": [
            "Object"
          ]
        },
        "vertices": {
          "description": "Vertex indices, from 0",
          "items": {
            "type": "integer"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
