22 const float aspect[2],
23 const int cd_loop_uv_offset,
27 r_uv[0] = uv[0] * aspect[0];
28 r_uv[1] = uv[1] * aspect[1];
35 #define UV_ASPECT(l, r_uv) uv_aspect(l, aspect, cd_loop_uv_offset, r_uv)
38 const float aspect[2],
39 const int cd_loop_uv_offset,
51 float uv_prev[2], uv_curr[2];
58 const float w_curr =
len_v2v2(uv_curr, uv_next);
59 const float w = (w_curr + w_prev);
64 }
while ((l_iter = l_iter->
next) != l_first);
70 r_cent[0] /= aspect[0];
71 r_cent[1] /= aspect[1];
85 }
while ((l_iter = l_iter->
next) != l_first);
100 }
while ((l_iter = l_iter->
next) != l_first);
112 }
while ((l_iter = l_iter->
next) != l_first);
123 }
while ((l_iter = l_iter->
next) != l_first);
133 if (l_a->
v !=
l_b->
v) {
typedef float(TangentPoint)[2]
CustomData interface, see also DNA_customdata_types.h.
#define BLI_array_alloca(arr, realsize)
float cross_poly_v2(const float verts[][2], unsigned int nr)
bool isect_point_poly_v2(const float pt[2], const float verts[][2], unsigned int nr, bool use_holes)
void mul_m2_v2(const float M[2][2], float v[2])
MINLINE void madd_v2_v2fl(float r[2], const float a[2], float f)
MINLINE void mul_v2_fl(float r[2], float f)
MINLINE void copy_v2_v2(float r[2], const float a[2])
void minmax_v2v2_v2(float min[2], float max[2], const float vec[2])
MINLINE void add_v2_v2(float r[2], const float a[2])
MINLINE bool equals_v2v2(const float v1[2], const float v2[2]) ATTR_WARN_UNUSED_RESULT
MINLINE void zero_v2(float r[2])
MINLINE float len_v2v2(const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
Read Guarded memory(de)allocation.
#define BM_FACE_FIRST_LOOP(p)
#define BM_ELEM_CD_GET_VOID_P(ele, offset)
bool BM_face_is_normal_valid(const BMFace *f)
BMLoop * BM_loop_other_vert_loop_by_edge(BMLoop *l, BMEdge *e)
ATTR_WARN_UNUSED_RESULT const BMLoop * l
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMLoop * l_b
bool BM_edge_uv_share_vert_check(BMEdge *e, BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset)
static void uv_aspect(const BMLoop *l, const float aspect[2], const int cd_loop_uv_offset, float r_uv[2])
void BM_face_uv_transform(BMFace *f, const float matrix[2][2], const int cd_loop_uv_offset)
bool BM_loop_uv_share_vert_check(BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset)
bool BM_loop_uv_share_edge_check(BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset)
void BM_face_uv_minmax(const BMFace *f, float min[2], float max[2], const int cd_loop_uv_offset)
void BM_face_uv_calc_center_median(const BMFace *f, const int cd_loop_uv_offset, float r_cent[2])
bool BM_face_uv_point_inside_test(const BMFace *f, const float co[2], const int cd_loop_uv_offset)
float BM_face_uv_calc_cross(const BMFace *f, const int cd_loop_uv_offset)
void BM_face_uv_calc_center_median_weighted(const BMFace *f, const float aspect[2], const int cd_loop_uv_offset, float r_cent[2])
#define UV_ASPECT(l, r_uv)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.