- Qt 6.10
- Qt Quick 3D Physics
- QML Types
- CapsuleGeometry
- Qt Quick 3D Physics | Commercial or GPLv3

# CapsuleGeometry QML Type

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

Since: | Qt 6.4
Inherits: | Geometry
Status: | Deprecated since 6.10

This type is deprecated since 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.

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.

longitudes : int `[default: 32]`

Number of longitudes, or meridians, distributed by azimuth.

rings : int `[default: 1]`

Number of sections in cylinder between hemispheres.