66 lines
2.8 KiB
C++
66 lines
2.8 KiB
C++
/*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bmesh
|
|
*/
|
|
|
|
float BM_loop_uv_calc_edge_length_squared(const BMLoop *l,
|
|
const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
|
|
ATTR_NONNULL();
|
|
float BM_loop_uv_calc_edge_length(const BMLoop *l,
|
|
const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
|
|
ATTR_NONNULL();
|
|
|
|
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]) ATTR_NONNULL();
|
|
void BM_face_uv_calc_center_median(const BMFace *f, const int cd_loop_uv_offset, float r_cent[2])
|
|
ATTR_NONNULL();
|
|
|
|
float BM_face_uv_calc_cross(const BMFace *f, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
|
|
ATTR_NONNULL();
|
|
|
|
void BM_face_uv_minmax(const BMFace *f, float min[2], float max[2], const int cd_loop_uv_offset);
|
|
void BM_face_uv_transform(BMFace *f, const float matrix[2][2], const int cd_loop_uv_offset);
|
|
|
|
bool BM_loop_uv_share_edge_check_with_limit(BMLoop *l_a,
|
|
BMLoop *l_b,
|
|
const float limit[2],
|
|
const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
|
|
ATTR_NONNULL();
|
|
|
|
bool BM_loop_uv_share_edge_check(BMLoop *l_a,
|
|
BMLoop *l_b,
|
|
const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
|
|
ATTR_NONNULL();
|
|
|
|
bool BM_edge_uv_share_vert_check(BMEdge *e, BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset)
|
|
ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
bool BM_loop_uv_share_vert_check(BMLoop *l_a,
|
|
BMLoop *l_b,
|
|
const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
|
|
ATTR_NONNULL();
|
|
|
|
bool BM_face_uv_point_inside_test(const BMFace *f,
|
|
const float co[2],
|
|
const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
|
|
ATTR_NONNULL();
|