Blender V5.3
BKE_mball.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8#include "BLI_span.hh"
9
13
14namespace blender {
15
16struct Base;
17struct Depsgraph;
18struct Main;
19struct MetaBall;
20struct MetaElem;
21struct Object;
22struct Scene;
23
24MetaBall *BKE_mball_add(Main *bmain, const char *name);
25
29
35bool BKE_mball_is_same_group(const Object *ob1, const Object *ob2);
40bool BKE_mball_is_basis_for(const Object *ob1, const Object *ob2);
47bool BKE_mball_is_basis(const Object *ob);
57Object *BKE_mball_basis_find(const Main &bmain, Scene *scene, Object *ob);
58
68void BKE_mball_properties_copy(Main *bmain, MetaBall *metaball_src);
69
71 const MetaBall *mb, float min[3], float max[3], const float obmat[4][4], short flag);
72
73/* Basic vertex data functions. */
74
75bool BKE_mball_minmax(const MetaBall *mb, float min[3], float max[3]);
76bool BKE_mball_center_median(const MetaBall *mb, float r_cent[3]);
77bool BKE_mball_center_bounds(const MetaBall *mb, float r_cent[3]);
78void BKE_mball_transform(MetaBall *mb, const float mat[4][4], bool do_props);
79void BKE_mball_translate(MetaBall *mb, const float offset[3]);
80
87
96
97/* *** Select functions *** */
98
99int BKE_mball_select_count(const MetaBall *mb);
107
108/* **** Depsgraph evaluation **** */
109
110void BKE_mball_data_update(Depsgraph *depsgraph, Scene *scene, Object *ob);
111
112} // namespace blender
btScalar max
BMesh Iterators.
bool BKE_mball_is_same_group(const Object *ob1, const Object *ob2)
Definition mball.cc:278
bool BKE_mball_select_all_multi_ex(Span< Base * > bases)
MetaElem * BKE_mball_element_add(MetaBall *mb, int type)
Definition mball.cc:179
void BKE_mball_data_update(Depsgraph *depsgraph, Scene *scene, Object *ob)
Definition mball.cc:648
void BKE_mball_translate(MetaBall *mb, const float offset[3])
Definition mball.cc:549
bool BKE_mball_is_basis(const Object *ob)
Definition mball.cc:255
bool BKE_mball_minmax(const MetaBall *mb, float min[3], float max[3])
Definition mball.cc:482
bool BKE_mball_deselect_all_multi_ex(Span< Base * > bases)
bool BKE_mball_center_bounds(const MetaBall *mb, float r_cent[3])
Definition mball.cc:511
bool BKE_mball_select_swap(MetaBall *mb)
Definition mball.cc:625
bool BKE_mball_select_swap_multi_ex(Span< Base * > bases)
int BKE_mball_select_count(const MetaBall *mb)
Definition mball.cc:556
int BKE_mball_select_count_multi(Span< Base * > bases)
VecBase< float, 2 > float2
bool BKE_mball_minmax_ex(const MetaBall *mb, float min[3], float max[3], const float obmat[4][4], short flag)
Definition mball.cc:449
bool BKE_mball_is_basis_for(const Object *ob1, const Object *ob2)
Definition mball.cc:294
Object * BKE_mball_basis_find(const Main &bmain, Scene *scene, Object *ob)
Definition mball.cc:417
void BKE_mball_transform(MetaBall *mb, const float mat[4][4], bool do_props)
Definition mball.cc:523
void BKE_mball_properties_copy(Main *bmain, MetaBall *metaball_src)
Definition mball.cc:340
float BKE_mball_element_display_radius_calc(const MetaElem *ml)
Definition mball.cc:245
float2 BKE_mball_element_display_radius_calc_with_stiffness(const MetaElem *ml)
Definition mball.cc:226
bool BKE_mball_is_any_unselected(const MetaBall *mb)
Definition mball.cc:321
bool BKE_mball_deselect_all(MetaBall *mb)
Definition mball.cc:601
MetaBall * BKE_mball_add(Main *bmain, const char *name)
Definition mball.cc:173
bool BKE_mball_is_any_selected(const MetaBall *mb)
Definition mball.cc:299
bool BKE_mball_select_all(MetaBall *mb)
Definition mball.cc:578
bool BKE_mball_is_any_selected_multi(Span< Base * > bases)
bool BKE_mball_center_median(const MetaBall *mb, float r_cent[3])
Definition mball.cc:493
#define min(a, b)
Definition sort.cc:38