[Bf-blender-cvs] [74e784b] transform-manipulators: Add missing file

Julian Eisel noreply at git.blender.org
Sun Oct 23 23:37:38 CEST 2016


Commit: 74e784b3e51ccc4dd641d9118896d6442a4f1e48
Author: Julian Eisel
Date:   Sun Oct 23 23:36:44 2016 +0200
Branches: transform-manipulators
https://developer.blender.org/rB74e784b3e51ccc4dd641d9118896d6442a4f1e48

Add missing file

===================================================================

A	source/blender/windowmanager/manipulators/intern/manipulator_library/geom_cube.c

===================================================================

diff --git a/source/blender/windowmanager/manipulators/intern/manipulator_library/geom_cube.c b/source/blender/windowmanager/manipulators/intern/manipulator_library/geom_cube.c
new file mode 100644
index 0000000..7f843c4
--- /dev/null
+++ b/source/blender/windowmanager/manipulators/intern/manipulator_library/geom_cube.c
@@ -0,0 +1,64 @@
+/*
+ * ***** BEGIN GPL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file blender/windowmanager/manipulators/intern/manipulator_library/geom_cube.c
+ *  \ingroup wm
+ */
+
+int _MANIPULATOR_nverts_cube = 8;
+int _MANIPULATOR_ntris_cube = 12;
+
+float _MANIPULATOR_verts_cube[][3] = {
+	{1.000000, 1.000000, -1.000000},
+	{1.000000, -1.000000, -1.000000},
+	{-1.000000, -1.000000, -1.000000},
+	{-1.000000, 1.000000, -1.000000},
+	{1.000000, 1.000000, 1.000000},
+	{0.999999, -1.000001, 1.000000},
+	{-1.000000, -1.000000, 1.000000},
+	{-1.000000, 1.000000, 1.000000},
+};
+
+float _MANIPULATOR_normals_cube[][3] = {
+	{0.577349, 0.577349, -0.577349},
+	{0.577349, -0.577349, -0.577349},
+	{-0.577349, -0.577349, -0.577349},
+	{-0.577349, 0.577349, -0.577349},
+	{0.577349, 0.577349, 0.577349},
+	{0.577349, -0.577349, 0.577349},
+	{-0.577349, -0.577349, 0.577349},
+	{-0.577349, 0.577349, 0.577349},
+};
+
+unsigned short _MANIPULATOR_indices_cube[] = {
+	1, 2, 3,
+	7, 6, 5,
+	4, 5, 1,
+	5, 6, 2,
+	2, 6, 7,
+	0, 3, 7,
+	0, 1, 3,
+	4, 7, 5,
+	0, 4, 1,
+	1, 5, 2,
+	3, 2, 7,
+	4, 0, 7,
+};
+




More information about the Bf-blender-cvs mailing list