4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
30 #ifndef BLI_SCANFILL_H
31 #define BLI_SCANFILL_H
33 /** \file BLI_storage.h
37 * \brief Filling meshes.
41 * @attention Defined in scanfill.c
43 extern struct ListBase fillvertbase;
44 extern struct ListBase filledgebase;
45 extern struct ListBase fillfacebase;
53 /* scanfill.c: used in displist only... */
54 struct EditVert *BLI_addfillvert(float *vec);
55 struct EditEdge *BLI_addfilledge(struct EditVert *v1, struct EditVert *v2);
56 int BLI_edgefill(short mat_nr);
57 void BLI_end_edgefill(void);
59 /* These callbacks are needed to make the lib finction properly */
62 * Set a function taking a char* as argument to flag errors. If the
63 * callback is not set, the error is discarded.
64 * @param f The function to use as callback
65 * @attention used in creator.c
67 void BLI_setErrorCallBack(void (*f)(const char*));
70 * Set a function to be able to interrupt the execution of processing
71 * in this module. If the function returns true, the execution will
72 * terminate gracefully. If the callback is not set, interruption is
74 * @param f The function to use as callback
75 * @attention used in creator.c
77 void BLI_setInterruptCallBack(int (*f)(void));