Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-03 20:37:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-03 20:37:23 +0400
commit4770848871c9b19caf113f250a0346b4954a8c2e (patch)
treee61129948234f91acb31bc0f50b16ba552a34307 /source/blender/bmesh/intern/bmesh_queries.h
parent31761f5e5b06a394a4165ddc2eca27e644b1282a (diff)
code cleanup: bmesh use 'const' for query functions.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_queries.h')
-rw-r--r--source/blender/bmesh/intern/bmesh_queries.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/source/blender/bmesh/intern/bmesh_queries.h b/source/blender/bmesh/intern/bmesh_queries.h
index 25f0d773b72..2c931de995e 100644
--- a/source/blender/bmesh/intern/bmesh_queries.h
+++ b/source/blender/bmesh/intern/bmesh_queries.h
@@ -58,26 +58,26 @@ int BM_edge_face_count(BMEdge *e);
int BM_vert_face_count(BMVert *v);
BMEdge *BM_vert_other_disk_edge(BMVert *v, BMEdge *e);
-bool BM_vert_is_wire(BMVert *v);
-bool BM_edge_is_wire(BMEdge *e);
+bool BM_vert_is_wire(const BMVert *v);
+bool BM_edge_is_wire(const BMEdge *e);
-bool BM_vert_is_manifold(BMVert *v);
-bool BM_edge_is_manifold(BMEdge *e);
-bool BM_vert_is_boundary(BMVert *v);
-bool BM_edge_is_boundary(BMEdge *e);
-bool BM_edge_is_contiguous(BMEdge *e);
-bool BM_edge_is_convex(BMEdge *e);
+bool BM_vert_is_manifold(const BMVert *v);
+bool BM_edge_is_manifold(const BMEdge *e);
+bool BM_vert_is_boundary(const BMVert *v);
+bool BM_edge_is_boundary(const BMEdge *e);
+bool BM_edge_is_contiguous(const BMEdge *e);
+bool BM_edge_is_convex(const BMEdge *e);
-bool BM_loop_is_convex(BMLoop *l);
+bool BM_loop_is_convex(const BMLoop *l);
float BM_loop_calc_face_angle(BMLoop *l);
void BM_loop_calc_face_normal(BMLoop *l, float r_normal[3]);
void BM_loop_calc_face_direction(BMLoop *l, float r_normal[3]);
void BM_loop_calc_face_tangent(BMLoop *l, float r_tangent[3]);
-float BM_edge_calc_face_angle(BMEdge *e);
-float BM_edge_calc_face_angle_signed(BMEdge *e);
-void BM_edge_calc_face_tangent(BMEdge *e, BMLoop *e_loop, float r_tangent[3]);
+float BM_edge_calc_face_angle(const BMEdge *e);
+float BM_edge_calc_face_angle_signed(const BMEdge *e);
+void BM_edge_calc_face_tangent(const BMEdge *e, const BMLoop *e_loop, float r_tangent[3]);
float BM_vert_calc_edge_angle(BMVert *v);
float BM_vert_calc_shell_factor(BMVert *v);
@@ -108,15 +108,15 @@ BMVert *BM_edge_share_vert(BMEdge *e1, BMEdge *e2);
BMLoop *BM_face_vert_share_loop(BMFace *f, BMVert *v);
BMLoop *BM_face_edge_share_loop(BMFace *f, BMEdge *e);
-void BM_edge_ordered_verts(BMEdge *edge, BMVert **r_v1, BMVert **r_v2);
-void BM_edge_ordered_verts_ex(BMEdge *edge, BMVert **r_v1, BMVert **r_v2,
- BMLoop *edge_loop);
+void BM_edge_ordered_verts(const BMEdge *edge, BMVert **r_v1, BMVert **r_v2);
+void BM_edge_ordered_verts_ex(const BMEdge *edge, BMVert **r_v1, BMVert **r_v2,
+ const BMLoop *edge_loop);
-bool BM_edge_is_any_vert_flag_test(BMEdge *e, const char hflag);
-bool BM_face_is_any_vert_flag_test(BMFace *f, const char hflag);
-bool BM_face_is_any_edge_flag_test(BMFace *f, const char hflag);
+bool BM_edge_is_any_vert_flag_test(const BMEdge *e, const char hflag);
+bool BM_face_is_any_vert_flag_test(const BMFace *f, const char hflag);
+bool BM_face_is_any_edge_flag_test(const BMFace *f, const char hflag);
-bool BM_face_is_normal_valid(BMFace *f);
+bool BM_face_is_normal_valid(const BMFace *f);
float BM_mesh_calc_volume(BMesh *bm, bool is_signed);