Revision: 56294
http://sourceforge.net/p/brlcad/code/56294
Author: brlcad
Date: 2013-07-28 16:49:58 +0000 (Sun, 28 Jul 2013)
Log Message:
-----------
re-enable the debug messages, but go through bu_log intead of Tcl_AppendResult
Modified Paths:
--------------
brlcad/trunk/src/libged/edpipe.c
Modified: brlcad/trunk/src/libged/edpipe.c
===================================================================
--- brlcad/trunk/src/libged/edpipe.c 2013-07-28 16:27:56 UTC (rev 56293)
+++ brlcad/trunk/src/libged/edpipe.c 2013-07-28 16:49:58 UTC (rev 56294)
@@ -174,15 +174,11 @@
* of any affected segment.
*/
if (ps->pp_id > tmp_od) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot make OD smaller than ID\n", (char
*)NULL);
-#endif
+ bu_log("Cannot make OD smaller than ID\n");
return;
}
if (tmp_od > 2.0*ps->pp_bendradius) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot make outer radius greater than bend
radius\n", (char *)NULL);
-#endif
+ bu_log("Cannot make outer radius greater than bend radius\n");
return;
}
@@ -201,15 +197,11 @@
/* need to check that the new ID is not greater than OD */
if (ps->pp_od < tmp_id) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot make ID greater than OD\n", (char
*)NULL);
-#endif
+ bu_log( "Cannot make ID greater than OD\n");
return;
}
if (tmp_id > 2.0*ps->pp_bendradius) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot make inner radius greater than bend
radius\n", (char *)NULL);
-#endif
+ bu_log("Cannot make inner radius greater than bend radius\n");
return;
}
@@ -235,9 +227,7 @@
ps->pp_bendradius = edpipe_scale(ps->pp_bendradius, scale);
if (ps->pp_bendradius < ps->pp_od * 0.5) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot make bend radius less than pipe outer
radius\n", (char *)NULL);
-#endif
+ bu_log("Cannot make bend radius less than pipe outer radius\n");
ps->pp_bendradius = old_radius;
return;
}
@@ -262,16 +252,12 @@
for (BU_LIST_FOR(old_ps, wdb_pipept, &pipeip->pipe_segs_head)) {
if (scale < 0.0) {
if ((-scale) < old_ps->pp_od * 0.5) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot make bend radius less than
pipe outer radius\n", (char *)NULL);
-#endif
+ bu_log("Cannot make bend radius less than pipe outer radius\n");
return;
}
} else {
if (old_ps->pp_bendradius * scale < old_ps->pp_od * 0.5) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot make bend radius less than
pipe outer radius\n", (char *)NULL);
-#endif
+ bu_log("Cannot make bend radius less than pipe outer radius\n");
return;
}
}
@@ -478,18 +464,14 @@
prev = (struct wdb_pipept *)NULL;
if (!prev && !next) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot delete last point in pipe\n", (char
*)NULL);
-#endif
+ bu_log("Cannot delete last point in pipe\n");
return ps;
}
BU_LIST_DEQUEUE(&ps->l);
if (rt_pipe_ck(&head->l)) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot delete this point, it will result in
an illegal pipe\n", (char *)NULL);
-#endif
+ bu_log("Cannot delete this point, it will result in an illegal pipe\n");
if (next) {
BU_LIST_INSERT(&next->l, &ps->l);
} else if (prev) {
@@ -523,9 +505,7 @@
VMOVE(ps->pp_coord, new_pt);
if (rt_pipe_ck(&pipeip->pipe_segs_head)) {
-#if 0
- Tcl_AppendResult(INTERP, "Cannot move point there\n", (char *)NULL);
-#endif
+ bu_log("Cannot move point there\n");
VMOVE(ps->pp_coord, old_pt);
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits