2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * Contributor(s): none yet.
25 * ***** END GPL LICENSE BLOCK *****
27 #ifndef __BKE_MBALL_H__
28 #define __BKE_MBALL_H__
40 void BKE_mball_unlink(struct MetaBall *mb);
41 void BKE_mball_free(struct MetaBall *mb);
42 struct MetaBall *BKE_mball_add(const char *name);
43 struct MetaBall *BKE_mball_copy(struct MetaBall *mb);
45 void BKE_mball_make_local(struct MetaBall *mb);
47 void BKE_mball_cubeTable_free(void);
49 void BKE_mball_polygonize(struct Scene *scene, struct Object *ob, struct ListBase *dispbase);
50 int BKE_mball_is_basis_for(struct Object *ob1, struct Object *ob2);
51 int BKE_mball_is_basis(struct Object *ob);
52 struct Object *BKE_mball_basis_find(struct Scene *scene, struct Object *ob);
54 void BKE_mball_texspace_calc(struct Object *ob);
55 float *BKE_mball_make_orco(struct Object *ob, struct ListBase *dispbase);
57 void BKE_mball_properties_copy(struct Scene *scene, struct Object *active_object);
59 int BKE_mball_minmax(struct MetaBall *mb, float min[3], float max[3]);
60 int BKE_mball_center_median(struct MetaBall *mb, float r_cent[3]);
61 int BKE_mball_center_bounds(struct MetaBall *mb, float r_cent[3]);
62 void BKE_mball_translate(struct MetaBall *mb, float offset[3]);
64 struct MetaElem *BKE_mball_element_add(struct MetaBall *mb, const int type);