Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/operators/bmo_primitive.c
| Show First 20 Lines • Show All 1,501 Lines • ▼ Show 20 Lines | void bmo_create_cone_exec(BMesh *bm, BMOperator *op) | ||||
| if (calc_uvs) { | if (calc_uvs) { | ||||
| BM_mesh_calc_uvs_cone(bm, mat, dia2, dia1, segs, cap_ends, FACE_MARK, cd_loop_uv_offset); | BM_mesh_calc_uvs_cone(bm, mat, dia2, dia1, segs, cap_ends, FACE_MARK, cd_loop_uv_offset); | ||||
| } | } | ||||
| if (!cap_tris) { | if (!cap_tris) { | ||||
| BMO_op_callf(bm, op->flag, "dissolve_faces faces=%ff", FACE_NEW); | BMO_op_callf(bm, op->flag, "dissolve_faces faces=%ff", FACE_NEW); | ||||
| } | } | ||||
| BMO_op_callf(bm, op->flag, "remove_doubles verts=%fv dist=%f", VERT_MARK, 0.000001); | BMO_op_callf(bm, op->flag, "remove_doubles verts=%fv dist=%f", VERT_MARK, 0.0000005 * depth); | ||||
| BMO_slot_buffer_from_enabled_flag(bm, op, op->slots_out, "verts.out", BM_VERT, VERT_MARK); | BMO_slot_buffer_from_enabled_flag(bm, op, op->slots_out, "verts.out", BM_VERT, VERT_MARK); | ||||
| } | } | ||||
| /** | /** | ||||
| * Fills first available UVmap with cylinder/cone-like UVs for all faces OpFlag-ged by given flag. | * Fills first available UVmap with cylinder/cone-like UVs for all faces OpFlag-ged by given flag. | ||||
| * | * | ||||
| * \param bm: The BMesh to operate on. | * \param bm: The BMesh to operate on. | ||||
| * \param mat: The transform matrix applied to the created cone/cylinder. | * \param mat: The transform matrix applied to the created cone/cylinder. | ||||
| ▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines | |||||