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>2016-05-12 13:01:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-05-12 13:59:48 +0300
commit8d3f367c0157799d8beb778bec443c2ffa6bffca (patch)
tree3e7158701dd688ce60c97d39d681359825d8bf9d
parentea41207c3b5ff301ff4274235b3199b2b82a9a29 (diff)
Correct debug prints
-rw-r--r--source/blender/bmesh/tools/bmesh_intersect.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/bmesh/tools/bmesh_intersect.c b/source/blender/bmesh/tools/bmesh_intersect.c
index e6437aa6c59..70143586b99 100644
--- a/source/blender/bmesh/tools/bmesh_intersect.c
+++ b/source/blender/bmesh/tools/bmesh_intersect.c
@@ -85,6 +85,8 @@
/* insert bl_debug_draw_quad_clear... here */
#endif
+// #define USE_DUMP
+
static void tri_v3_scale(
float v1[3], float v2[3], float v3[3],
const float t)
@@ -652,7 +654,7 @@ static void bm_isect_tri_tri(
#endif
if (e) {
#ifdef USE_DUMP
- printf(" adding to edge %d\n", BM_elem_index_get(e));
+ printf("# adding to edge %d\n", BM_elem_index_get(e));
#endif
edge_verts_add(s, e, fv_b[i_b], true);
}
@@ -776,7 +778,7 @@ static void bm_isect_tri_tri(
STACK_PUSH(iv_ls_a, iv);
STACK_PUSH(iv_ls_b, iv);
#ifdef USE_DUMP
- printf(" ('EDGE-RAY-B', %d),\n", side);
+ printf(" ('EDGE-TRI-B', %d),\n", side);
#endif
}
}
@@ -873,7 +875,7 @@ static void raycast_callback(void *userdata,
#endif
#ifdef USE_DUMP
- printf("%s: Adding depth %f\n", __func__, depth);
+ printf("%s: Adding depth %f\n", __func__, dist);
#endif
BLI_buffer_append(raycast_data->z_buffer, float, dist);
}
@@ -909,7 +911,7 @@ static int isect_bvhtree_point_v3(
&raycast_data);
#ifdef USE_DUMP
- printf("%s: Total intersections: %d\n", __func__, raycast_data.num_isect);
+ printf("%s: Total intersections: %d\n", __func__, z_buffer.count);
#endif
int num_isect;