QSphereGeometry Class

class Qt3DExtras::QSphereGeometry

The QSphereGeometry class allows creation of a sphere in 3D space. * * * * * The QSphereGeometry class is most commonly used internally by the QSphereMesh * but can also be used in custom Qt3DRender::QGeometryRenderer subclasses. More...

Header: #include <Qt3DExtras/QSphereGeometry>
qmake: QT += 3dextras
Since: Qt 5.7
Instantiated By: SphereGeometry
Inherits: Qt3DRender::QGeometry

This class was introduced in Qt 5.7.

Public Functions

QSphereGeometry(Qt3DCore::QNode *parent = nullptr)
void updateIndices()
void updateVertices()

Detailed Description

* * * *

Member Function Documentation

QSphereGeometry::QSphereGeometry(Qt3DCore::QNode *parent = nullptr)

Constructs a new QSphereGeometry with parent.

void QSphereGeometry::updateIndices()

Updates indices based on rings and slices properties.

void QSphereGeometry::updateVertices()

Updates vertices based on rings, slices, and radius properties