---
title: "object.addCone: Cone — Scene kit command — Kition"
description: "Adds a cone mesh with bottom and top radii and `depth` at `location` (with rotation, scale and `name`) and answers its name and object id; name it to address it in the same run."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/object.addCone"
---

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

# object.addCone

**Cone.** Adds a cone mesh with bottom and top radii and `depth` at `location` (with rotation, scale and `name`) and answers its name and object id; name it to address it in the same run.

- 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 |
| --- | --- | --- | --- |
| `depth` | `number` | no | Height in metres (2) |
| `fill` | `"nothing" \| "ngon" \| "triangleFan"` | no | How the ends are closed |
| `location` | `number[]` | no | Where to put it, in metres (the origin when left out) [x, y, z] |
| `name` | `string` | no | The object's name |
| `radius1` | `number` | no | Bottom radius in metres (1) |
| `radius2` | `number` | no | Top radius in metres (0) |
| `rotation` | `number[]` | no | Rotation in degrees, XYZ Euler [x, y, z] |
| `scale` | `number[]` | no | Scale [x, y, z] |
| `vertices` | `integer` | no | Vertices around (32) |

## Call through scene_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `depth`, `fill`, `location`, `name`, `radius1`, `radius2`, `rotation`, `scale`, `vertices`. 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": {
    "depth": {
      "description": "Height in metres (2)",
      "type": "number"
    },
    "fill": {
      "description": "How the ends are closed",
      "enum": [
        "nothing",
        "ngon",
        "triangleFan"
      ],
      "type": "string"
    },
    "location": {
      "description": "Where to put it, in metres (the origin when left out) [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "name": {
      "description": "The object's name",
      "type": "string"
    },
    "radius1": {
      "description": "Bottom radius in metres (1)",
      "type": "number"
    },
    "radius2": {
      "description": "Top radius in metres (0)",
      "type": "number"
    },
    "rotation": {
      "description": "Rotation in degrees, XYZ Euler [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "scale": {
      "description": "Scale [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "vertices": {
      "description": "Vertices around (32)",
      "type": "integer"
    }
  },
  "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).
