4dc35836ad
code cleanup: remove unused variable assignents and added bmesh submodule links, doc correction reported by dfelinto.
2012-03-09 21:23:15 +00:00
dfdfa3d51b
code cleanup: replace macros VECCOPY, VECADD, VECSUB, INPR - with BLI_math funcs.
...
added copy float/double funcs: copy_v3fl_v3db(), copy_v3db_v3fl(). 2d & 4d too.
2012-03-09 06:04:17 +00:00
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
e61339a76f
code cleanup: duplicate checks and double assignments.
2012-03-08 04:38:35 +00:00
db4a85162d
edits to rna/tessface UV layer needed to get OBJ import/export functional.
...
add the function to create new UV layers, this only works when there are no polygon layers already created (to prevent confusion since scripts with polygon layers should be adding MTexPoly and MLoopUV layers)
2012-03-07 21:58:58 +00:00
bffeab99ae
Fix for fracture object crash
...
Issue was caused by incorrect resetting of tesselated fave data in copy_mesh:
- CustomData_free will free data from original mesh because layers in new mesh
are pointing to the same memory just after copy. So it's needed only to
set some pointers to NULL.
- It was incorrect filling fdata with zeroes because of incorrect structure size used.
2012-03-06 16:22:41 +00:00
a5eadf14e0
copying a mesh was generating tessfaces which isnt needed
2012-03-05 18:05:06 +00:00
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
9d49fa0e63
style cleanup - spelling corrections & update some incorrect comments.
2012-03-03 11:45:08 +00:00
7bbf4b7831
style cleanup
...
- spelling - turns out we had tessellation spelt wrong all over.
- use \directive for doxy (not @directive)
- remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-02 16:05:54 +00:00
9aafe32147
bmmesh api - use struct rather than int[4] to initialize mesh sizes.
...
also correct bad assert() in previous commit.
2012-03-01 20:09:17 +00:00
ea13ec1699
Spelling Cleanup
2012-03-01 12:20:18 +00:00
1ebb6e3360
Code cleanup for the neighbor_average() sculpt function.
...
Moved some of the code into a couple new mesh functions for searching
in poly loops to simplify the function, the rest is just cosmetic
changes.
2012-02-28 23:08:40 +00:00
132544dd02
Fix a couple typos in comments.
2012-02-28 20:55:55 +00:00
2a7f1af61e
Code Cleanup:
...
- apply some rules for function naming conventions, added to main bmesh doc in bmesh.h.
- remove unused function BM_loops_to_corners().
2012-02-28 19:10:53 +00:00
ed04c21374
code cleanup: use float vector size in function definitions, and const's where the values are unchanged.
2012-02-28 14:05:00 +00:00
79fbd39aab
Remove DerivedMesh.getFaceMap and create_vert_face_map().
...
Not used anymore, both have BMesh replacements (DerivedMesh.getPolyMap
and create_vert_poly_map.)
2012-02-28 04:00:56 +00:00
3fc2fbc333
style cleanup, use { on newline after function definition.
...
spelling 'impliment' -> 'implement'
2012-02-25 16:49:59 +00:00
6ca7d82932
code cleanup: white space, spelling & ';;' end of lines.
2012-02-25 16:04:03 +00:00
53fece44cf
style cleanup for blenkernel, no functional changes.
2012-02-23 02:17:50 +00:00
3c38830013
fix [ #30264 ] B-Mesh: Crash when unwrapping ngon mesh with Smart UV project
2012-02-21 03:43:57 +00:00
1953f042e6
added boolean type for bmesh operators, will make python wrapping clearer and also makes existing calls more obvious.
...
also corrected some error reports.
2012-02-20 01:52:35 +00:00
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
576ce5928f
* correct bad pointer check in expand_local_mesh()
...
* check total polygons rather then faces in draw_mesh_object()
2012-02-15 14:40:45 +00:00
cf0aeddfc9
marked navmesh as BMESH_TODO, mixed mface/mpoly functions were being used for navmesh too, now editing funcs use polygons only.
2012-02-13 04:52:41 +00:00
59d45d0ea6
* remove the MFace parts of join (we only need polygon data)
...
* other minor cleanups
2012-02-12 19:11:09 +00:00
9a92cd8008
bmesh minor refactor
...
* add DM_to_bmesh_ex, DM_to_bmesh for converting a derived mesh to a BMesh (rather than a BMEditMesh)
* have a generic variable for allocsize: bm_mesh_allocsize_default, rather than copying the values about.
2012-02-12 17:44:10 +00:00
b6dcdb065d
code refactor, function renaming for bmesh.
...
These changes are to make the bmesh api more consistent and easier to learn, grouping similar functions which is convenient for autocomplete.
This uses similar convention to RNA.
* use face/loop/edge/vert as a prefix for functions.
* use 'elem' as a prefix too for functions that can take any type with a BMHeader.
* changed from camel case to underscore separated (like RNA).
2012-02-12 10:51:45 +00:00
b228685e92
fix [ #30101 ] Vertex colors disappear after leaving edit mode
...
this commit makes vertex paint check if it needs to rebuild the modifier stack when painting.
- when painting with no modifiers, do partial updates from polys to tessfaces while painting, skip re-tesselation.
- when painting onto a modified mesh, dont bother adjusting tessface colors - since the modifier stack will do this anyway.
both cases should be faster then before.
2012-02-08 11:52:44 +00:00
76ccd3d5ed
Code Cleanup:
...
macro for copying polygon settings
2012-02-08 09:02:10 +00:00
18763fd9c8
Minor Improvements...
...
- more efficient array growing
- use BM_NGON_STACK_SIZE for more static arrays
- dont use BLI_array for bevel code where size is known.
2012-02-05 23:09:07 +00:00
baa843d0d3
Code Cleanup: use vector functions for copying / adding UV's
2012-02-05 13:25:42 +00:00
543fb27fd0
support for 'origspace' data layer - used for hair on subsurf mesh.
...
currently only works for 3/4 sided faces.
2012-02-05 11:30:26 +00:00
1d21e2386e
ensure tessface's are available while sculpting.
2012-02-05 07:12:46 +00:00
776ec0ec61
add function for getting a polygon map: dm->getPolyMap(ob, dm).
...
polygon version of dm->getFaceMap(ob, dm)
sculpt uses this for checking connectivity.
2012-02-05 06:20:51 +00:00
db785d1656
fix for crash converting a curve into a mesh (Alt+C conversion), this would crash on entering editmode.
...
now curves convert to polygons directly, rather then faces, and polygons after.
2012-02-03 04:58:55 +00:00
5f2e1b8f1a
avoid storing over allocated arrays in tesselated custom data, was reserving initial arrays wrong the wrong array length.
2012-01-25 23:59:28 +00:00
288ed10fbf
fix for own error in tesselating as quad
2012-01-25 22:55:12 +00:00
e80f265c55
enable tesselating 4 sided faces to quads.
...
will help for particles and tangents
2012-01-25 21:33:37 +00:00
c7e8af13d4
remove cellalloc, from my tests jemalloc beats cellalloc, so we better just use a better malloc replacement.
...
See Details:
http://wiki.blender.org/index.php/User:Ideasman42/BMeshBranchReview#Update_43694
2012-01-25 20:18:12 +00:00
4fae6cd38d
svn merge ^/trunk/blender -r43685:43693
2012-01-25 18:13:58 +00:00
3f31145d29
define to enable tesselate to quads, this way files from trunk tesselate back into their original geometry with the same face order.
...
this will be needed for tangents and most likely hair if its to load correctly from trunk.
disabled for now until this is working correctly - hair still needs more work.
2012-01-24 20:58:43 +00:00
644e44e7b6
remove unneeded re-tessellation converting metaball to mesh.
2012-01-24 00:52:26 +00:00
2d3b3f9bf1
minor refactor to main tesselation function
...
- reserve the array sizes to avoid re-allocing (even though its a lower limit it still helps)
- increase array size in larger steps then 1 by 1.
- avoid a few array lookups.
- use more obvious variable naming to make the function more readable.
2012-01-23 13:36:11 +00:00
4966982a5a
svn merge ^/trunk/blender -r43564:43609
2012-01-22 18:04:35 +00:00
a98a75346c
quiet warnings and possible NULL checking crash fix for indentation functions.
2012-01-20 23:03:41 +00:00
fe71f40f88
misc changes from bmesh, syncing across to trunk, no functional changes
2012-01-20 02:24:01 +00:00
20d0205d99
error in last fix, used negate to check it was working.
2012-01-19 22:04:13 +00:00
3fdf33f7d9
fix for error copying face normals from poly normals in mesh_recalcTesselation()
2012-01-19 21:58:20 +00:00
bc745a32d3
argument to mesh_recalcTesselation to skip copying normals from polygons.
2012-01-19 17:51:52 +00:00