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
2013-03-18style cleanupCampbell Barton
2013-03-17code cleanup: incorrect sized array args, remove some redundant code.Campbell Barton
2013-03-16Stop dyntopo updates from happening in masked areasNicholas Bishop
Fixes [#34348] Collapse short edges affects masked geometry /projects.blender.org/tracker/?func=detail&aid=34348&group_id=9&atid=498 Fixed by disallowing topology updates on edges with a vertex masked at 50% or greater. This is a necessarily arbitrary choice; can't do halfway updates for topology like we can with displacement.
2013-03-10style cleanup: whitespaceCampbell Barton
2013-03-08style cleanupCampbell Barton
2013-03-04patch [#34103] use boolean in path functions and add comments.Campbell Barton
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-03-01style cleanup: braces with multi-line statements, also add some comments.Campbell Barton
2013-02-25Fix for collapse-edges crash in dyntopoNicholas Bishop
Was incorrectly testing for a vertex in a set with BLI_ghash_lookup rather than BLI_ghash_haskey; the key in this case is always null so the test failed. This could leave the PBVH in an inconsistent state, since the top-level map of BMesh vertices to PBVH nodes would indicate the vertex was in a node, but that node wouldn't actually have any faces using the vertex. That inconsistent state would eventually lead to a crash in pbvh_bmesh_vert_remove(). Fixes http://projects.blender.org/tracker/?func=detail&atid=498&aid=34370&group_id=9
2013-02-02style cleanupCampbell Barton
2013-01-26Check for deletion before moving vert in dyntopo collapse edgeNicholas Bishop
Fixes [#33964] Dyntopo crash with edge collapse + undo projects.blender.org/tracker/?func=detail&aid=33964&group_id=9&atid=498
2013-01-20Delete loose edges left behind by sculpting with collapse-short-edgesNicholas Bishop
After deleting a face, check for unused edges and delete them. Fixes bug [#33891] projects.blender.org/tracker/?func=detail&aid=33891&group_id=9&atid=498
2013-01-19Skip hidden faces in PBVH BMesh ray intersection testNicholas Bishop
Moved the GPU function gpu_bmesh_face_visible() to BKE_paint and inverted the test to match equivalent tests for other mesh types: paint_is_bmesh_face_hidden(). Changed BKE_pbvh_bmesh_node_save_orig() to not save hidden faces into the triangle array. Modified the non-use-original branch of pbvh_bmesh_node_raycast() to skip hidden faces. Fixes bug #33914: projects.blender.org/tracker/index.php?func=detail&aid=33914&group_id=9&atid=498
2013-01-19dyntopo optimization - fast path for edges with 2 faces using it, was ↵Campbell Barton
counting the edge-faces then using an iterator, instead use BM_edge_loop_pair()
2013-01-17minor speedup for dyntopo edge queue - replace iterator with while loop.Campbell Barton
2013-01-17fix bug in dyntopo - check to remove pbvh vert was always false.Campbell Barton
2013-01-17code cleanup: rename BMVert *v[3]; --> 'v_tri', since 'v' is normally for ↵Campbell Barton
single verts.
2013-01-17speed-up dyn-topo by storing the edge-loops rather then edge-faces.Campbell Barton
- no need for bm_triangle_other_vert_find(), the other vert is known relative to the loop. - no need for bm_face_edge_backwards(), the verts are in order in the loop.
2013-01-17optimize bmesh operations that use triangle BMFace's (dyn-topo and mesh ↵Campbell Barton
conversion).
2013-01-14use booleans for bmesh api.Campbell Barton
2013-01-02extend BLI_bufferCampbell Barton
- add option to calloc or not, existing code wasnt consistent here, would calloc on first alloc but not on realloc, also - the static memory was never zero'd. use flag BLI_BUFFER_USE_CALLOC to ensure all new memory is zero'd (static/alloc/realloc's). - add BLI_buffer_declare_static / BLI_buffer_declare so its possible to have a buffer that never uses static memory.
2012-12-31add ".hh" as an extension for source scripts.Campbell Barton
2012-12-31rename BM_edge_calc_squared_length -> BM_edge_calc_length_squared, matching ↵Campbell Barton
len_v3, len_squared_v3
2012-12-31style cleanupCampbell Barton
2012-12-30Code cleanup: rename BLI_pbvh to BKE_pbvhNicholas Bishop
2012-12-30Add dynamic topology support to the PBVHNicholas Bishop
* Add BLI_pbvh_build_bmesh(), similar to the other PBVH builders but specialized for BMesh. Whereas the PBVH leaf nodes for mesh and grids only store a start-index and count into the primitive indices array, the BMesh version uses GHashes to store the full set of faces and vertices in leaf nodes * Update PBVH iterator to handle BMesh * Make some of the pbvh.c functions non-static so they can be used by the new pbvh_bmesh code * The BLI_pbvh_bmesh_update_topology() function is the main reason for adding BMesh support to the PBVH. This function is used during a sculpt stroke to dynamically collapse edges that are particular short and subdivide edges that are particularly long.