Revision: 76118
          http://sourceforge.net/p/brlcad/code/76118
Author:   starseeker
Date:     2020-06-11 18:35:43 +0000 (Thu, 11 Jun 2020)
Log Message:
-----------
We're using libbu's unit support now, reduce to unitconv

Modified Paths:
--------------
    brlcad/branches/bioh/src/burst2/burst.cpp
    brlcad/branches/bioh/src/burst2/burst.h
    brlcad/branches/bioh/src/burst2/grid.cpp

Modified: brlcad/branches/bioh/src/burst2/burst.cpp
===================================================================
--- brlcad/branches/bioh/src/burst2/burst.cpp   2020-06-11 18:22:58 UTC (rev 
76117)
+++ brlcad/branches/bioh/src/burst2/burst.cpp   2020-06-11 18:35:43 UTC (rev 
76118)
@@ -195,7 +195,6 @@
     s->nprocessors = 0;
     s->nriplevels = DFL_RIPLEVELS;
     s->nspallrays = DFL_NRAYS;
-    s->units = 1;
     s->zoom = 1;
     s->rtip = RTI_NULL;
     s->norml_sig = NULL; /* active during interactive operation */

Modified: brlcad/branches/bioh/src/burst2/burst.h
===================================================================
--- brlcad/branches/bioh/src/burst2/burst.h     2020-06-11 18:22:58 UTC (rev 
76117)
+++ brlcad/branches/bioh/src/burst2/burst.h     2020-06-11 18:35:43 UTC (rev 
76118)
@@ -184,7 +184,6 @@
     int nprocessors;           /* no. of processors running concurrently */
     int nriplevels;            /* no. of levels of ripping (0 = no ripping) */
     int nspallrays;            /* no. of spall rays at each burst point */
-    double units;              /* target units (default is millimeters) */
     int zoom;                  /* magnification factor on frame buffer */
 
     struct rt_i *rtip;         /* model specific access from librt */

Modified: brlcad/branches/bioh/src/burst2/grid.cpp
===================================================================
--- brlcad/branches/bioh/src/burst2/grid.cpp    2020-06-11 18:22:58 UTC (rev 
76117)
+++ brlcad/branches/bioh/src/burst2/grid.cpp    2020-06-11 18:35:43 UTC (rev 
76118)
@@ -1748,7 +1748,7 @@
                        s->viewelev*RAD2DEG, /* attack elevation in degrees */
                        s->bdist*s->unitconv,  /* BDIST */
                        projarea, /* projected area associated with burst pt. */
-                       bu_units_string(s->units),
+                       bu_units_string(s->unitconv),
                        s->raysolidangle
                       ) < 0
        ) {
@@ -1765,7 +1765,7 @@
                        s->modllf*s->unitconv, /* minimum Y'-coordinate of 
target */
                        s->modlup*s->unitconv, /* maximum Z'-coordinate of 
target */
                        s->modldn*s->unitconv, /* minimum Z'-coordinate of 
target */
-                       bu_units_string(s->units)
+                       bu_units_string(s->unitconv)
                       ) < 0
        ) {
        bu_exit(EXIT_FAILURE, "Write failed to file (%s)!\n", 
bu_vls_cstr(&s->shotlnfile));

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

Reply via email to