CapsuleGeometry QML Type

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

Since: Qt 6.4
Inherits:

Geometry

Properties

Detailed Description

A geometry for generating a capsule model.

Property Documentation

diameter : float [default: 100]

Diameter on the xz plane.


enableNormals : bool [default: true]

Generate mesh face normals.


enableUV : bool [default: false]

Generate mesh uv coordinates.


height : float [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.


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.