Blender  V2.59
BKE_booleanops_mesh.h
Go to the documentation of this file.
00001 /*
00002  * $Id: BKE_booleanops_mesh.h 34962 2011-02-18 13:05:18Z jesterking $
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): none yet.
00026  *
00027  * ***** END GPL LICENSE BLOCK *****
00028  */
00029 #ifndef BKE_PyBooleanOps_h
00030 #define BKE_PyBooleanOps_h
00031 
00036 #include "CSG_BooleanOps.h"
00037 
00043 struct Base;
00044 struct Object;
00045 struct CSG_MeshDescriptor;
00046 
00047 typedef void (*CSG_DestroyMeshFunc)(struct CSG_MeshDescriptor *);
00048 
00049 typedef struct CSG_MeshDescriptor {
00050         struct Base *base; // Ptr to base of original blender object - used in creating a new object
00051         CSG_MeshPropertyDescriptor m_descriptor;
00052         CSG_FaceIteratorDescriptor m_face_iterator;
00053         CSG_VertexIteratorDescriptor m_vertex_iterator;
00054         CSG_DestroyMeshFunc m_destroy_func;
00055 } CSG_MeshDescriptor;
00056 
00057 
00058 extern
00059         int
00060 CSG_LoadBlenderMesh(
00061         struct Object * obj,
00062         CSG_MeshDescriptor *output
00063 );
00064 
00072 extern
00073         void
00074 CSG_DestroyMeshDescriptor(
00075         CSG_MeshDescriptor *mesh
00076 );
00077 
00087 extern
00088         int 
00089 CSG_PerformOp(
00090         CSG_MeshDescriptor *mesh1,
00091         CSG_MeshDescriptor *mesh2,
00092         int op_type,
00093         CSG_MeshDescriptor *output
00094 );
00095 
00096 
00097 
00102 extern
00103         int
00104 CSG_AddMeshToBlender(
00105         CSG_MeshDescriptor *mesh
00106 );
00107 
00112 extern
00113         int
00114 NewBooleanMeshTest(
00115         struct Base * base,
00116         struct Base * base_select,
00117         int op_type
00118 );
00119 
00120 #endif
00121