Blender  V3.3
geom_cube_gizmo.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 Blender Foundation. All rights reserved. */
3 
8 #include "../gizmo_geometry.h"
9 
10 static const float verts[][3] = {
11  {1.000000, 1.000000, -1.000000},
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  {0.999999, -1.000001, 1.000000},
17  {-1.000000, -1.000000, 1.000000},
18  {-1.000000, 1.000000, 1.000000},
19 };
20 
21 static const float normals[][3] = {
22  {0.577349, 0.577349, -0.577349},
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 };
31 
32 static const ushort indices[] = {
33  1, 2, 3, 7, 6, 5, 4, 5, 1, 5, 6, 2, 2, 6, 7, 0, 3, 7,
34  0, 1, 3, 4, 7, 5, 0, 4, 1, 1, 5, 2, 3, 2, 7, 4, 0, 7,
35 };
36 
38  .nverts = 8,
39  .ntris = 12,
40  .verts = verts,
41  .normals = normals,
42  .indices = indices,
43 };
unsigned short ushort
Definition: BLI_sys_types.h:68
GizmoGeomInfo wm_gizmo_geom_data_cube
static const ushort indices[]
static const float verts[][3]
static const float normals[][3]