- Qt 6.12
- Qt Quick 3D Physics
- QML Types
- QtQuick3D.Physics.Helpers
- CapsuleGeometry
- Qt Quick 3D Physics | Commercial or GPLv3

# CapsuleGeometry QML Type

A geometry for generating a capsule model. More...

Import Statement: | `import QtQuick3D.Physics.Helpers`
Since: | Qt 6.4
Inherits: | Geometry
Status: | Deprecated since 6.10

This type is deprecated since QtQuick3D.Physics.Helpers 6.10. We strongly advise against using it in new code.

- List of all members, including inherited members

## Properties

- diameter : real
- enableNormals : bool
- enableUV : bool
- height : real
- latitudes : int
- longitudes : int
- rings : int

## Detailed Description

Deprecated, use QtQuick3D.Helpers.CapsuleGeometry instead.

A geometry for generating a capsule model.

## Property Documentation

### diameter : real `[default: 100]`

Diameter on the xz plane.

### enableNormals : bool `[default: true]`

Generate mesh face normals.

### enableUV : bool `[default: false]`

Generate mesh uv coordinates.

### height : real `[default: 100]`

Height of the middle cylinder on the y axis, excluding the hemispheres.

### latitudes : int `[default: 16]`

Number of latitudes, distributed by inclination. Must be even. Values above 1024 are clamped.

### longitudes : int `[default: 32]`

Number of longitudes, or meridians, distributed by azimuth. Values above 1024 are clamped.

### rings : int `[default: 1]`

Number of sections in cylinder between hemispheres. Values above 1024 are clamped.