Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_mirror.c
| Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | static Mesh *doBiscetOnMirrorPlane(MirrorModifierData *mmd, | ||||
| /* Delete verts across the mirror plane. */ | /* Delete verts across the mirror plane. */ | ||||
| BM_ITER_MESH_MUTABLE (v, v_next, &viter, bm, BM_VERTS_OF_MESH) { | BM_ITER_MESH_MUTABLE (v, v_next, &viter, bm, BM_VERTS_OF_MESH) { | ||||
| if (plane_point_side_v3(plane_offset, v->co) > 0.0f) { | if (plane_point_side_v3(plane_offset, v->co) > 0.0f) { | ||||
| BM_vert_kill(bm, v); | BM_vert_kill(bm, v); | ||||
| } | } | ||||
| } | } | ||||
| result = BKE_mesh_from_bmesh_for_eval_nomain(bm, NULL); | result = BKE_mesh_from_bmesh_for_eval_nomain(bm, NULL, mesh); | ||||
| BM_mesh_free(bm); | BM_mesh_free(bm); | ||||
| return result; | return result; | ||||
| } | } | ||||
| static Mesh *doMirrorOnAxis(MirrorModifierData *mmd, | static Mesh *doMirrorOnAxis(MirrorModifierData *mmd, | ||||
| const ModifierEvalContext *UNUSED(ctx), | const ModifierEvalContext *UNUSED(ctx), | ||||
| Object *ob, | Object *ob, | ||||
| ▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines | |||||