> For the complete documentation index, see [llms.txt](https://help.vectary.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.vectary.com/api/model-api/api-reference/createcone.md).

# createCone

#### createCone

Creates a cone primitive and adds it to the scene.

#### Signature

```typescript
createCone(options?: CreatePrimitiveOptions): Promise<SceneObject>
```

#### Parameters

<table><thead><tr><th width="132.8828125">Parameter</th><th width="226.24609375">Type</th><th width="99.40234375">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>options</code></td><td><a href="/api/model-api/api-reference.md#createprimitiveoptions"><mark style="color:blue;"><code>CreatePrimitiveOptions</code></mark></a></td><td>No</td><td>Transform and primitive-specific settings</td></tr></tbody></table>

#### PrimitiveConeSettings fields

<table><thead><tr><th width="257.26953125">Field</th><th width="163.13671875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>coneRadiusBottom</code></td><td><code>number</code></td><td>Radius at the base</td></tr><tr><td><code>coneHeight</code></td><td><code>number</code></td><td>Height of the cone</td></tr><tr><td><code>coneRadiusSegments</code></td><td><code>number</code></td><td>Radial segments</td></tr><tr><td><code>coneHeightSegments</code></td><td><code>number</code></td><td>Height segments</td></tr><tr><td><code>coneCloseEnds</code></td><td><code>boolean</code></td><td>Close the bottom cap</td></tr><tr><td><code>roundnessEnabled</code></td><td><code>boolean</code></td><td>Enable rounded base edge</td></tr><tr><td><code>roundnessRadius</code></td><td><code>number</code></td><td>Roundness radius</td></tr><tr><td><code>roundnessRadiusSegments</code></td><td><code>number</code></td><td>Segments for roundness curve</td></tr><tr><td><code>computeNormals</code></td><td><code>boolean</code></td><td>Recompute normals</td></tr></tbody></table>

#### Returns

`Promise<SceneObject>` - the created object.

#### Examples

```javascript
// Create cone with custom size and rotation
const cone = await api.createCone({
  rotation: { x: 0, y: 0, z: 90 },
  primitiveSettings: {
    coneRadiusBottom: 1.5,
    coneHeight: 3,
  },
});
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.vectary.com/api/model-api/api-reference/createcone.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
