1 /* 2 * This program is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU General Public License 4 * as published by the Free Software Foundation; either version 2 5 * of the License, or (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software Foundation, 14 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15 */ 16 17 #pragma once 18 19 /** \file 20 * \ingroup bmesh 21 */ 22 23 enum { 24 /** Vertices tags must match (special case). */ 25 VERT_RESTRICT_TAG = (1 << 0), 26 /** Don't rotate out of degenerate state (needed for iterative rotation). */ 27 EDGE_RESTRICT_DEGENERATE = (1 << 1), 28 }; 29 30 void BM_mesh_beautify_fill(BMesh *bm, 31 BMEdge **edge_array, 32 const int edge_array_len, 33 const short flag, 34 const short method, 35 const short oflag_edge, 36 const short oflag_face); 37 38 float BM_verts_calc_rotate_beauty(const BMVert *v1, 39 const BMVert *v2, 40 const BMVert *v3, 41 const BMVert *v4, 42 const short flag, 43 const short method); 44