Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-23- fix for python freeing its own bmesh clearing the global mirror cache.Campbell Barton
- fix for own mistake (Ctrl+T didnt set beauty peroperty). - remove bad level includes in bmesh.
2012-04-23code cleanup: change C naming convention (so py and C api match), eg:Campbell Barton
C: BM_face_calc_area(f), Py: BMFace.calc_area()
2012-04-21style cleanup: correct typosCampbell Barton
2012-04-19code cleanup: remove unused BMesh args.Campbell Barton
2012-04-19remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the ↵Campbell Barton
maceros had unused args in both cases).
2012-04-19code cleanup: first step to replace BM_ITER BM_ITER_INDEX macros.Campbell Barton
2012-04-19BMESH_TODO: xsort of vertices working again.Bastien Montagne
This commits adds a new function which can remap vertices/edges/faces of a BMesh in a new given order: void BM_mesh_remap(BMesh *bm, int *vert_idx, int *edge_idx, int *face_idx)
2012-04-19style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITERCampbell Barton
2012-04-03bmesh iterators were passing the BMesh as data argument to BM_iter_new(), ↵Campbell Barton
harmless but incorrect. replace these cases with iterator macro.
2012-03-18spelling cleanupCampbell Barton
2012-03-14Add 'level' field to struct MDisps, companion to 'totdisp'.Nicholas Bishop
Gets initialized when loading old files and updated at the same places totdisp is updated. Saves having to do log+sqrt to extract level from totdisp.
2012-03-11remove Object member from BMesh struct - was only used for undo and ↵Campbell Barton
BMEditMesh already stores an object pointer. also fix for own mistake with mesh conversion refactor, shape key index was off by 1 when switching editmode.
2012-03-11fix for debug assignment left in from own commit r44778Campbell Barton
also removed private face normal update functions - they were same as public.
2012-03-11bmesh python api additions:Campbell Barton
- BMesh.is_wrapped - BMesh.copy() - BMesh.clear() - BMesh.free() - BMesh.from_object(obj, apply_modifiers=True) - BMEdge.calc_length() - BMLoop.calc_normal() - BMLoop.calc_tangent()
2012-03-10Speedup for ngon normal calculationCampbell Barton
- BM_mesh_normals_update was looping over all faces to find the largest one, this is no longer needed. - calculating a face normal was looping over every faces corners twice, now only once - using the loops directly (not an iterator). - face vert locations were being copied an array, now use directly. - calculating the normals would copy a float vector for the next point in the face, which was never used (only current and previous used). - was copying vectors to compute the normal, now just assign the float pointers.
2012-03-08building without python works again, cleanup bmesh include paths (cmake and ↵Campbell Barton
scons).
2012-03-07fix for error in r44711, needed to update sequencer callback.Campbell Barton
also quiet some warnings.
2012-03-02fix bug [#30426] crash in bmesh python api.Campbell Barton
if blender freed the BMesh before python was finished (on exit editmode for eg), python would attempt to access the bmesh to clear python pointers in it.
2012-03-02minor edits to last commit - use fixed chunksize, rather than the number of ↵Campbell Barton
verts/edges/faces in bm_mempool_init().
2012-03-02Code Cleanup: update to mempool, use flag rather then bool args.Campbell Barton
2012-03-02bmesh - changes to mempool allocationsCampbell Barton
* double default edge allocation size (double the number of verts/faces). * CustomData_bmesh_init_pool was using allocsize & chunksize as the same variable. Now use type specific chunk size. * bmesh copy and editmode conversion now allocate the BMesh mempool size needed for the entire vert/edge/loop/face arrays since its known already.
2012-03-02bmmesh api - use struct rather than int[4] to initialize mesh sizes.Campbell Barton
also correct bad assert() in previous commit.
2012-03-01Spelling CleanupCampbell Barton
2012-02-29update doxygen comments for bmesh.Campbell Barton
2012-02-28Code Cleanup:Campbell Barton
- apply some rules for function naming conventions, added to main bmesh doc in bmesh.h. - remove unused function BM_loops_to_corners().
2012-02-28more header re-arranging.Campbell Barton
Some function comments were in headers, some in the C files, some in both. Moved function comments from headers into the C files.
2012-02-28code cleanup:Campbell Barton
use bmo_* prefix for operator defs, was confusing with bmesh_* api functions.
2012-02-27minor bmesh api naming edits.Campbell Barton
2012-02-26replace BMESH_ERROR with BMESH_ASSERT, most areas it was used are better ↵Campbell Barton
suited to an assert anyway. also tag all error cases as UNLIKELY() for better branch prediction.
2012-02-26replace bmesh_error with macro that gives the file/line/func the error ↵Campbell Barton
happens on.
2012-02-26bmesh api cleanupCampbell Barton
* better type safety for BM_elem_flag_* and BM_elem_index_* functions. * add BMElem type to be used where BMFace/Edge/Vert/Loop can be interchanged. * fix bug in select manifold, found when making functions more strict.
2012-02-25bmesh api:Campbell Barton
* added BM_elem_flag_set, BMO_elem_flag_set. to avoid 'if(...) enable(); else disable();' all over the place. * added bmesh_operator_api_inline.c, the header file was getting messy.
2012-02-24bmesh py api (some api changes and doc additions)Campbell Barton
* remove 'select' and 'hide' from BMLoop * remove BMesh.update * add BMesh.normal_update(skip_hidden=False) * add BMElemSet.index_update(), eg: bm.verts.index_update() bmesh api * BM_mesh_normals_update() now takes skip_hidden as an argument (previously this was default behavior), however this isnt good when using BMesh modifiers, where you want all normals to be recalculated. * add bm_iter_itype_htype_map[], to get the iter type from a BMesh iterator.
2012-02-20added boolean type for bmesh operators, will make python wrapping clearer ↵Campbell Barton
and also makes existing calls more obvious. also corrected some error reports.
2012-02-19copying bmesh dir on its own from bmesh branchCampbell Barton