Files
test/source/blender/bmesh/tools/bmesh_beautify.h
Campbell Barton c434782e3a File headers: SPDX License migration
Use a shorter/simpler license convention, stops the header taking so
much space.

Follow the SPDX license specification: https://spdx.org/licenses

- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile

While most of the source tree has been included

- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
  use different header conventions.

doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.

See P2788 for the script that automated these edits.

Reviewed By: brecht, mont29, sergey

Ref D14069
2022-02-11 09:14:36 +11:00

39 lines
1.2 KiB
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup bmesh
*/
enum {
/** Vertices tags must match (special case). */
VERT_RESTRICT_TAG = (1 << 0),
/** Don't rotate out of degenerate state (needed for iterative rotation). */
EDGE_RESTRICT_DEGENERATE = (1 << 1),
};
/**
* \note This function sets the edge indices to invalid values.
*/
void BM_mesh_beautify_fill(BMesh *bm,
BMEdge **edge_array,
int edge_array_len,
short flag,
short method,
short oflag_edge,
short oflag_face);
/**
* Assuming we have 2 triangles sharing an edge (2 - 4),
* check if the edge running from (1 - 3) gives better results.
*
* \return (negative number means the edge can be rotated, lager == better).
*/
float BM_verts_calc_rotate_beauty(const BMVert *v1,
const BMVert *v2,
const BMVert *v3,
const BMVert *v4,
short flag,
short method);