Blender V4.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
9#include "../gizmo_geometry.h"
10
11static const float verts[][3] = {
12 {1.000000, 1.000000, -1.000000},
13 {1.000000, -1.000000, -1.000000},
14 {-1.000000, -1.000000, -1.000000},
15 {-1.000000, 1.000000, -1.000000},
16 {1.000000, 1.000000, 1.000000},
17 {0.999999, -1.000001, 1.000000},
18 {-1.000000, -1.000000, 1.000000},
19 {-1.000000, 1.000000, 1.000000},
20};
21
22static const float normals[][3] = {
23 {0.577349, 0.577349, -0.577349},
24 {0.577349, -0.577349, -0.577349},
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};
32
33static const ushort indices[] = {
34 1, 2, 3, 7, 6, 5, 4, 5, 1, 5, 6, 2, 2, 6, 7, 0, 3, 7,
35 0, 1, 3, 4, 7, 5, 0, 4, 1, 1, 5, 2, 3, 2, 7, 4, 0, 7,
36};
37
39 /*nverts*/ 8,
40 /*ntris*/ 12,
41 /*verts*/ verts,
42 /*normals*/ normals,
43 /*indices*/ indices,
44};
unsigned short ushort
GizmoGeomInfo wm_gizmo_geom_data_cube
static const ushort indices[]
static const float verts[][3]
static const float normals[][3]