Debian Codegraph @

tests/manual/transforms-qml/TrefoilKnot.qml

raw
1 // Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 import Qt3D.Core 2.0
5 import Qt3D.Render 2.0
6
7 Entity {
8 id: root
9
10 property vector3d translation: Qt.vector3d(0.0, 0.0, 0.0)
11 property real scale: 1.0
12 property real theta: 0.0
13 property real phi: 0.0
14 property Material material
15
16 components: [ transform, mesh, root.material ]
17
18 Transform {
19 id: transform
20 translation: root.translation
21 rotation: fromEulerAngles(theta, phi, 0)
22 scale: root.scale
23 }
24
25 Mesh {
26 id: mesh
27 source: "assets/obj/trefoil.obj"
28 }
29 }