Blender  V3.3
Enumerations | Functions
bmesh_beautify.h File Reference

Go to the source code of this file.

Enumerations

enum  { VERT_RESTRICT_TAG = (1 << 0) , EDGE_RESTRICT_DEGENERATE = (1 << 1) }
 

Functions

void BM_mesh_beautify_fill (BMesh *bm, BMEdge **edge_array, int edge_array_len, short flag, short method, short oflag_edge, short oflag_face)
 
float BM_verts_calc_rotate_beauty (const BMVert *v1, const BMVert *v2, const BMVert *v3, const BMVert *v4, short flag, short method)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VERT_RESTRICT_TAG 

Vertices tags must match (special case).

EDGE_RESTRICT_DEGENERATE 

Don't rotate out of degenerate state (needed for iterative rotation).

Definition at line 9 of file bmesh_beautify.h.

Function Documentation

◆ BM_mesh_beautify_fill()

void BM_mesh_beautify_fill ( BMesh bm,
BMEdge **  edge_array,
int  edge_array_len,
short  flag,
short  method,
short  oflag_edge,
short  oflag_face 
)

◆ BM_verts_calc_rotate_beauty()

float BM_verts_calc_rotate_beauty ( const BMVert v1,
const BMVert v2,
const BMVert v3,
const BMVert v4,
short  flag,
short  method 
)

Assuming we have 2 triangles sharing an edge (2 - 4), check if the edge running from (1 - 3) gives better results.

Returns
(negative number means the edge can be rotated, lager == better).

Definition at line 231 of file bmesh_beautify.c.

References bm_edge_calc_rotate_beauty__angle(), bm_edge_calc_rotate_beauty__area(), BM_elem_flag_test, BM_ELEM_TAG, BMVert::co, EDGE_RESTRICT_DEGENERATE, UNLIKELY, v1, v2, and VERT_RESTRICT_TAG.

Referenced by bm_edge_calc_rotate_beauty(), BM_face_triangulate(), and bmesh_calc_tessellation_for_face_beauty().