Cleanup: use BM_mesh_* prefix for BMesh functions

This commit is contained in:
Campbell Barton 2016-01-14 13:00:11 +11:00
parent bc3db85da8
commit f5604af464
6 changed files with 7 additions and 7 deletions

View File

@ -142,7 +142,7 @@ static void editmesh_tessface_calc_intern(BMEditMesh *em)
em->looptris = looptris;
/* after allocating the em->looptris, we're ready to tessellate */
BM_bmesh_calc_tessellation(em->bm, em->looptris, &em->tottri);
BM_mesh_calc_tessellation(em->bm, em->looptris, &em->tottri);
}

View File

@ -1267,12 +1267,12 @@ void BM_face_as_array_loop_quad(BMFace *f, BMLoop *r_loops[4])
/**
* \brief BM_bmesh_calc_tessellation get the looptris and its number from a certain bmesh
* \brief BM_mesh_calc_tessellation get the looptris and its number from a certain bmesh
* \param looptris
*
* \note \a looptris Must be pre-allocated to at least the size of given by: poly_to_tri_count
*/
void BM_bmesh_calc_tessellation(BMesh *bm, BMLoop *(*looptris)[3], int *r_looptris_tot)
void BM_mesh_calc_tessellation(BMesh *bm, BMLoop *(*looptris)[3], int *r_looptris_tot)
{
/* use this to avoid locking pthread for _every_ polygon
* and calling the fill function */

View File

@ -32,7 +32,7 @@ struct Heap;
#include "BLI_compiler_attrs.h"
void BM_bmesh_calc_tessellation(BMesh *bm, BMLoop *(*looptris)[3], int *r_looptris_tot);
void BM_mesh_calc_tessellation(BMesh *bm, BMLoop *(*looptris)[3], int *r_looptris_tot);
void BM_face_calc_tessellation(
const BMFace *f, const bool use_fixed_quad,

View File

@ -234,7 +234,7 @@ static DerivedMesh *applyModifier_bmesh(
looptris = MEM_mallocN(sizeof(*looptris) * looptris_tot, __func__);
BM_bmesh_calc_tessellation(bm, looptris, &tottri);
BM_mesh_calc_tessellation(bm, looptris, &tottri);
/* postpone this until after tessellating
* so we can use the original normals before the vertex are moved */

View File

@ -1257,7 +1257,7 @@ static PyObject *bpy_bmesh_calc_tessface(BPy_BMElem *self)
looptris_tot = poly_to_tri_count(bm->totface, bm->totloop);
looptris = PyMem_MALLOC(sizeof(*looptris) * looptris_tot);
BM_bmesh_calc_tessellation(bm, looptris, &tottri);
BM_mesh_calc_tessellation(bm, looptris, &tottri);
ret = PyList_New(tottri);
for (i = 0; i < tottri; i++) {

View File

@ -894,7 +894,7 @@ static PyObject *C_BVHTree_FromBMesh(PyObject *UNUSED(cls), PyObject *args, PyOb
looptris = MEM_mallocN(sizeof(*looptris) * (size_t)tris_len, __func__);
BM_bmesh_calc_tessellation(bm, looptris, &tris_len_dummy);
BM_mesh_calc_tessellation(bm, looptris, &tris_len_dummy);
BLI_assert(tris_len_dummy == (int)tris_len);
}