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

[default: 100] diameter : real

Diameter on the xz plane.


[default: true] enableNormals : bool

Generate mesh face normals.


[default: false] enableUV : bool

Generate mesh uv coordinates.


[default: 100] height : real

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


[default: 16] latitudes : int

Number of latitudes, distributed by inclination. Must be even.


[default: 32] longitudes : int

Number of longitudes, or meridians, distributed by azimuth.


[default: 1] rings : int

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.