Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/tools/bmesh_decimate_unsubdivide.c
| Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | else if (BM_edge_is_wire(e)) { | ||||
| tot_edge_wire++; | tot_edge_wire++; | ||||
| } | } | ||||
| tot_edge++; | tot_edge++; | ||||
| } | } | ||||
| if (tot_edge == 2) { | if (tot_edge == 2) { | ||||
| /* check for 2 wire verts only */ | /* check for 2 wire verts only */ | ||||
| if (tot_edge_wire == 2) { | if (tot_edge_wire == 2) { | ||||
| return (BM_vert_collapse_edge(bm, v->e, v, true, true) != NULL); | return (BM_vert_collapse_edge(bm, v->e, v, true, true, true) != NULL); | ||||
| } | } | ||||
| } | } | ||||
| else if (tot_edge == 4) { | else if (tot_edge == 4) { | ||||
| /* check for 4 faces surrounding */ | /* check for 4 faces surrounding */ | ||||
| if (tot_edge_boundary == 0 && tot_edge_manifold == 4) { | if (tot_edge_boundary == 0 && tot_edge_manifold == 4) { | ||||
| /* good to go! */ | /* good to go! */ | ||||
| tot_loop = 4; | tot_loop = 4; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines | |||||