Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qssgmeshbvh_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QSSGMESHBVH_H
5#define QSSGMESHBVH_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick3DUtils/private/qtquick3dutilsglobal_p.h>
19#include <QtQuick3DUtils/private/qssgbounds3_p.h>
20
21#include <QtGui/QVector2D>
22#include <QtCore/QVector>
23
25
26struct Q_QUICK3DUTILS_EXPORT QSSGMeshBVHNode {
28 delete left;
29 delete right;
30 }
31
32 // Internal
36 //splitAxis
37
38 // Leaf
39 int offset = 0;
40 int count = 0;
41};
42
43struct Q_QUICK3DUTILS_EXPORT QSSGMeshBVHTriangle {
51};
52
53struct Q_QUICK3DUTILS_EXPORT QSSGMeshBVH
54{
56 const QVector<QSSGMeshBVHTriangle *> &bvhTriangles)
57 : roots(bvhRoots)
58 , triangles(bvhTriangles)
59 {}
61
64};
65
67
68#endif // QSSGMESHBVH_H
Definition qlist.h:74
Class representing 3D range or axis aligned bounding box.
The QVector2D class represents a vector or vertex in 2D space.
Definition qvectornd.h:31
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
GLdouble GLdouble right
GLint left
GLenum GLuint GLintptr offset
static const struct TessellationModeTab triangles[]
QSSGBounds3 boundingData
QVector< QSSGMeshBVHTriangle * > triangles
QSSGMeshBVH(const QVector< QSSGMeshBVHNode * > &bvhRoots, const QVector< QSSGMeshBVHTriangle * > &bvhTriangles)
QVector< QSSGMeshBVHNode * > roots