Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh_mirror.c
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | Mesh *BKE_mesh_mirror_bisect_on_mirror_plane_for_modifier(MirrorModifierData *mmd, | ||||
| int axis, | int axis, | ||||
| const float plane_co[3], | const float plane_co[3], | ||||
| float plane_no[3]) | float plane_no[3]) | ||||
| { | { | ||||
| bool do_bisect_flip_axis = ((axis == 0 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_X) || | bool do_bisect_flip_axis = ((axis == 0 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_X) || | ||||
| (axis == 1 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_Y) || | (axis == 1 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_Y) || | ||||
| (axis == 2 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_Z)); | (axis == 2 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_Z)); | ||||
| const float bisect_distance = 0.001f; | const float bisect_distance = mmd->bisect_threshold; | ||||
| Mesh *result; | Mesh *result; | ||||
| BMesh *bm; | BMesh *bm; | ||||
| BMIter viter; | BMIter viter; | ||||
| BMVert *v, *v_next; | BMVert *v, *v_next; | ||||
| bm = BKE_mesh_to_bmesh_ex(mesh, | bm = BKE_mesh_to_bmesh_ex(mesh, | ||||
| &(struct BMeshCreateParams){0}, | &(struct BMeshCreateParams){0}, | ||||
| ▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines | |||||