Revision: 76325 http://sourceforge.net/p/brlcad/code/76325 Author: starseeker Date: 2020-07-14 15:59:51 +0000 (Tue, 14 Jul 2020) Log Message: ----------- Get as far as producing a .g file from a v4 asc input with gcv. Not exactly the same binary output as asc2g, but gdiff doesn't report any differences so probably pretty close...
Modified Paths: -------------- brlcad/trunk/src/libgcv/plugins/asc/asc.cpp brlcad/trunk/src/libgcv/plugins/asc/asc_v4.cpp Modified: brlcad/trunk/src/libgcv/plugins/asc/asc.cpp =================================================================== --- brlcad/trunk/src/libgcv/plugins/asc/asc.cpp 2020-07-14 15:12:06 UTC (rev 76324) +++ brlcad/trunk/src/libgcv/plugins/asc/asc.cpp 2020-07-14 15:59:51 UTC (rev 76325) @@ -93,6 +93,7 @@ if (fmt) { switch (fmt) { case 4: + fs.seekg(0); asc_read_v4(c, o, fs); break; case 5: Modified: brlcad/trunk/src/libgcv/plugins/asc/asc_v4.cpp =================================================================== --- brlcad/trunk/src/libgcv/plugins/asc/asc_v4.cpp 2020-07-14 15:12:06 UTC (rev 76324) +++ brlcad/trunk/src/libgcv/plugins/asc/asc_v4.cpp 2020-07-14 15:59:51 UTC (rev 76325) @@ -80,9 +80,6 @@ static void ascv4_rdestroy(struct ascv4_rstate *s) { - if (s->ofp) { - wdb_close(s->ofp); - } bu_vls_free(s->buf); BU_PUT(s->buf, struct bu_vls); bu_vls_free(s->name); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits