Revision: 76121
http://sourceforge.net/p/brlcad/code/76121
Author: starseeker
Date: 2020-06-11 21:51:34 +0000 (Thu, 11 Jun 2020)
Log Message:
-----------
Adjust attack-direction behavior
Modified Paths:
--------------
brlcad/branches/bioh/src/burst2/burst.cpp
Modified: brlcad/branches/bioh/src/burst2/burst.cpp
===================================================================
--- brlcad/branches/bioh/src/burst2/burst.cpp 2020-06-11 19:03:33 UTC (rev
76120)
+++ brlcad/branches/bioh/src/burst2/burst.cpp 2020-06-11 21:51:34 UTC (rev
76121)
@@ -204,7 +204,7 @@
extern "C" int
-_burst_cmd_attack_dir(void *bs, int argc, const char **argv)
+_burst_cmd_attack_direction(void *bs, int argc, const char **argv)
{
const char *usage_string = "attack-direction azim_angle elev_angle";
const char *purpose_string = "specify azimuth and elevation of attack
relative to target";
@@ -233,6 +233,13 @@
ret = BRLCAD_ERROR;
}
+ // Echo command (logCmd in original code)*/
+ printf("%s\t%g %g\n", argv[0], s->viewazim, s->viewelev);
+
+ // After printing, convert to radians for internal use
+ s->viewazim /= RAD2DEG;
+ s->vieweelv /= RAD2DEG;
+
bu_vls_free(&msg);
return ret;
}
@@ -1284,6 +1291,9 @@
s->unitconv = 1/s->unitconv;
+ // Echo command (logCmd in original code)*/
+ printf("%s\t\t\t%s\n", argv[0], argv[1]);
+
return BRLCAD_OK;
}
@@ -1521,7 +1531,7 @@
}
const struct bu_cmdtab _burst_cmds[] = {
- { "attack-direction" , _burst_cmd_attack_dir},
+ { "attack-direction" , _burst_cmd_attack_direction},
{ "critical-comp-file", _burst_cmd_critical_comp_file },
{ "deflect-spall-cone", _burst_cmd_deflect_spall_cone },
{ "dither-cells" , _burst_cmd_dither_cells },
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits