Code Cleanup: spelling
This commit is contained in:
parent
717bf85545
commit
61ff3dfdda
@ -324,7 +324,7 @@ def edge_loops_from_edges(mesh, edges=None):
|
|||||||
def ngon_tessellate(from_data, indices, fix_loops=True):
|
def ngon_tessellate(from_data, indices, fix_loops=True):
|
||||||
"""
|
"""
|
||||||
Takes a polyline of indices (fgon) and returns a list of face
|
Takes a polyline of indices (fgon) and returns a list of face
|
||||||
indicie lists. Designed to be used for importers that need indices for an
|
index lists. Designed to be used for importers that need indices for an
|
||||||
fgon to create from existing verts.
|
fgon to create from existing verts.
|
||||||
|
|
||||||
:arg from_data: either a mesh, or a list/tuple of vectors.
|
:arg from_data: either a mesh, or a list/tuple of vectors.
|
||||||
|
@ -172,7 +172,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel):
|
|||||||
obj_name = obj.name
|
obj_name = obj.name
|
||||||
for group in bpy.data.groups:
|
for group in bpy.data.groups:
|
||||||
# XXX this is slow and stupid!, we need 2 checks, one thats fast
|
# XXX this is slow and stupid!, we need 2 checks, one thats fast
|
||||||
# and another that we can be sure its not a name collission
|
# and another that we can be sure its not a name collision
|
||||||
# from linked library data
|
# from linked library data
|
||||||
group_objects = group.objects
|
group_objects = group.objects
|
||||||
if obj_name in group.objects and obj in group_objects[:]:
|
if obj_name in group.objects and obj in group_objects[:]:
|
||||||
|
@ -433,7 +433,7 @@ void BLI_polyfill_calc_arena(
|
|||||||
|
|
||||||
struct MemArena *arena)
|
struct MemArena *arena)
|
||||||
{
|
{
|
||||||
unsigned int *indicies = BLI_memarena_alloc(arena, sizeof(*indicies) * coords_tot);
|
unsigned int *indices = BLI_memarena_alloc(arena, sizeof(*indices) * coords_tot);
|
||||||
eSign *coords_sign = BLI_memarena_alloc(arena, sizeof(*coords_sign) * coords_tot);
|
eSign *coords_sign = BLI_memarena_alloc(arena, sizeof(*coords_sign) * coords_tot);
|
||||||
|
|
||||||
BLI_polyfill_calc_ex(
|
BLI_polyfill_calc_ex(
|
||||||
@ -441,9 +441,9 @@ void BLI_polyfill_calc_arena(
|
|||||||
r_tris,
|
r_tris,
|
||||||
/* cache */
|
/* cache */
|
||||||
|
|
||||||
indicies, coords_sign);
|
indices, coords_sign);
|
||||||
|
|
||||||
/* indicies & coords_sign are no longer needed,
|
/* indices & coords_sign are no longer needed,
|
||||||
* caller can clear arena */
|
* caller can clear arena */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -452,7 +452,7 @@ void BLI_polyfill_calc(
|
|||||||
const unsigned int coords_tot,
|
const unsigned int coords_tot,
|
||||||
unsigned int (*r_tris)[3])
|
unsigned int (*r_tris)[3])
|
||||||
{
|
{
|
||||||
unsigned int *indicies = BLI_array_alloca(indicies, coords_tot);
|
unsigned int *indices = BLI_array_alloca(indices, coords_tot);
|
||||||
eSign *coords_sign = BLI_array_alloca(coords_sign, coords_tot);
|
eSign *coords_sign = BLI_array_alloca(coords_sign, coords_tot);
|
||||||
|
|
||||||
BLI_polyfill_calc_ex(
|
BLI_polyfill_calc_ex(
|
||||||
@ -460,5 +460,5 @@ void BLI_polyfill_calc(
|
|||||||
r_tris,
|
r_tris,
|
||||||
/* cache */
|
/* cache */
|
||||||
|
|
||||||
indicies, coords_sign);
|
indices, coords_sign);
|
||||||
}
|
}
|
||||||
|
@ -174,7 +174,7 @@ static void bm_face_calc_poly_center_mean_vertex_cos(BMFace *f, float r_cent[3],
|
|||||||
* For tools that insist on using triangles, ideally we would cache this data.
|
* For tools that insist on using triangles, ideally we would cache this data.
|
||||||
*
|
*
|
||||||
* \param r_loops Store face loop pointers, (f->len)
|
* \param r_loops Store face loop pointers, (f->len)
|
||||||
* \param r_index Store triangle triples, indicies into \a r_loops, ((f->len - 2) * 3)
|
* \param r_index Store triangle triples, indices into \a r_loops, ((f->len - 2) * 3)
|
||||||
*/
|
*/
|
||||||
void BM_face_calc_tessellation(const BMFace *f, BMLoop **r_loops, unsigned int (*r_index)[3])
|
void BM_face_calc_tessellation(const BMFace *f, BMLoop **r_loops, unsigned int (*r_index)[3])
|
||||||
{
|
{
|
||||||
|
@ -377,7 +377,7 @@ static void bm_edge_update_beauty_cost(BMEdge *e, Heap *eheap, HeapNode **eheap_
|
|||||||
/* Beautify Fill */
|
/* Beautify Fill */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \note This function sets the edge indicies to invalid values.
|
* \note This function sets the edge indices to invalid values.
|
||||||
*/
|
*/
|
||||||
void BM_mesh_beautify_fill(BMesh *bm, BMEdge **edge_array, const int edge_array_len,
|
void BM_mesh_beautify_fill(BMesh *bm, BMEdge **edge_array, const int edge_array_len,
|
||||||
const short flag, const short method,
|
const short flag, const short method,
|
||||||
|
@ -1103,7 +1103,7 @@ PyDoc_STRVAR(M_Geometry_points_in_planes_doc,
|
|||||||
"\n"
|
"\n"
|
||||||
" :arg planes: List of planes (4D vectors).\n"
|
" :arg planes: List of planes (4D vectors).\n"
|
||||||
" :type planes: list of :class:`mathutils.Vector`\n"
|
" :type planes: list of :class:`mathutils.Vector`\n"
|
||||||
" :return: two lists, once containing the vertices inside the planes, another containing the plane indicies used\n"
|
" :return: two lists, once containing the vertices inside the planes, another containing the plane indices used\n"
|
||||||
" :rtype: pair of lists\n"
|
" :rtype: pair of lists\n"
|
||||||
);
|
);
|
||||||
/* note: this function could be optimized by some spatial structure */
|
/* note: this function could be optimized by some spatial structure */
|
||||||
|
@ -530,7 +530,7 @@ static PyObject *gPyGetBlendFileList(PyObject *, PyObject *args)
|
|||||||
|
|
||||||
if ((dp = opendir(cpath)) == NULL) {
|
if ((dp = opendir(cpath)) == NULL) {
|
||||||
/* todo, show the errno, this shouldnt happen anyway if the blendfile is readable */
|
/* todo, show the errno, this shouldnt happen anyway if the blendfile is readable */
|
||||||
fprintf(stderr, "Could not read directoty (%s) failed, code %d (%s)\n", cpath, errno, strerror(errno));
|
fprintf(stderr, "Could not read directory (%s) failed, code %d (%s)\n", cpath, errno, strerror(errno));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user