Blender V2.61 - r43446
|
00001 /* 00002 * 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00021 * All rights reserved. 00022 * 00023 * The Original Code is: all of this file. 00024 * 00025 * Contributor(s): Ken Hughes 00026 * 00027 * ***** END GPL LICENSE BLOCK ***** 00028 */ 00029 00035 /* 00036 * This file contains various definitions used across the modules 00037 */ 00038 00039 /* 00040 * define operator>> for faces, edges and vertices, and also add some 00041 * debugging functions for displaying various internal data structures 00042 */ 00043 00044 // #define BOP_DEBUG 00045 00046 #define HASH(x) ((x) >> 5) /* each "hash" covers 32 indices */ 00047 // #define HASH_PRINTF_DEBUG /* uncomment to enable debug output */ 00048 00049 /* 00050 * temporary: control which method is used to merge final triangles and 00051 * quads back together after an operation. If both methods are included, 00052 * the "rt" debugging button on the Scene panel (F10) is used to control 00053 * which is active. Setting it to 100 enables the original method, any 00054 * other value enables the new method. 00055 */ 00056 00057 #define BOP_ORIG_MERGE /* include original merge code */ 00058 #define BOP_NEW_MERGE /* include new merge code */