Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qconvexmeshshape.cpp
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qconvexmeshshape_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
/*!
10
\qmltype ConvexMeshShape
11
\inherits CollisionShape
12
\inqmlmodule QtQuick3D.Physics
13
\since 6.4
14
\brief A convex collision shape based on a 3D mesh.
15
16
This type defines a convex shape based on the same 3D mesh file format used by
17
\l [QtQuick3D]{Model::source}{QtQuick3D.Model}. If the mesh is not convex, the convex hull of the
18
mesh will be used.
19
20
\sa {Qt Quick 3D Physics Shapes and Bodies}{Shapes and Bodies overview documentation}, TriangleMeshShape
21
*/
22
23
/*!
24
\qmlproperty url ConvexMeshShape::source
25
This property defines the location of the mesh file used to define the shape. If the
26
mesh is not convex, the convex hull of the mesh will be used. The maximum number of faces
27
and vertices is 255: If the mesh is more detailed than that, it will be simplified.
28
29
Internally, ConvexMeshShape converts the mesh to an optimized data structure. This conversion
30
can be done in advance. See the \l{Qt Quick 3D Physics Cooking}{cooking overview documentation}
31
for details.
32
33
\note If both the \l{ConvexMeshShape::}{geometry} and \l{ConvexMeshShape::}{source} properties
34
are set then only \l{ConvexMeshShape::}{geometry} will be used.
35
\sa ConvexMeshShape::geometry
36
*/
37
38
/*!
39
\qmlproperty Geometry ConvexMeshShape::geometry
40
This property defines the geometry of a mesh used to define the shape. If the
41
mesh is not convex, the convex hull of the mesh will be used. The maximum number of faces
42
and vertices is 255: If the mesh is more detailed than that, it will be simplified.
43
44
\note If both the \l{ConvexMeshShape::}{geometry} and \l{ConvexMeshShape::}{source} properties
45
are set then only \l{ConvexMeshShape::}{geometry} will be used.
46
\sa ConvexMeshShape::source
47
\since 6.7
48
*/
49
50
QMeshShape::MeshType QConvexMeshShape::shapeType()
const
51
{
52
return
QMeshShape::MeshType::CONVEX;
53
}
54
55
bool
QConvexMeshShape::isStaticShape()
const
56
{
57
return
false
;
58
}
59
60
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtquick3dphysics
src
quick3dphysics
qconvexmeshshape.cpp
Generated on
for Qt by
1.16.1