Blender V5.3
geom_cube_gizmo.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "../gizmo_geometry.h"
10
11namespace blender {
12
13static const float verts[][3] = {
14 {1.000000, 1.000000, -1.000000},
15 {1.000000, -1.000000, -1.000000},
16 {-1.000000, -1.000000, -1.000000},
17 {-1.000000, 1.000000, -1.000000},
18 {1.000000, 1.000000, 1.000000},
19 {0.999999, -1.000001, 1.000000},
20 {-1.000000, -1.000000, 1.000000},
21 {-1.000000, 1.000000, 1.000000},
22};
23
24static const float normals[][3] = {
25 {0.577349, 0.577349, -0.577349},
26 {0.577349, -0.577349, -0.577349},
27 {-0.577349, -0.577349, -0.577349},
28 {-0.577349, 0.577349, -0.577349},
29 {0.577349, 0.577349, 0.577349},
30 {0.577349, -0.577349, 0.577349},
31 {-0.577349, -0.577349, 0.577349},
32 {-0.577349, 0.577349, 0.577349},
33};
34
35static const ushort indices[] = {
36 1, 2, 3, 7, 6, 5, 4, 5, 1, 5, 6, 2, 2, 6, 7, 0, 3, 7,
37 0, 1, 3, 4, 7, 5, 0, 4, 1, 1, 5, 2, 3, 2, 7, 4, 0, 7,
38};
39
41 /*nverts*/ 8,
42 /*ntris*/ 12,
43 /*verts*/ verts,
44 /*normals*/ normals,
45 /*indices*/ indices,
46};
47
48} // namespace blender
BMesh Iterators.
static const float verts[][3]
GizmoGeomInfo wm_gizmo_geom_data_cube
unsigned short ushort
Definition BKE_text.h:56
static const float normals[][3]
static const ushort indices[]