Revision: 77093
          http://sourceforge.net/p/brlcad/code/77093
Author:   brlcad
Date:     2020-09-09 20:32:12 +0000 (Wed, 09 Sep 2020)
Log Message:
-----------
elaborate thoughts on an object-awar gsort/tables/filter command.

Modified Paths:
--------------
    brlcad/trunk/src/libged/TODO

Modified: brlcad/trunk/src/libged/TODO
===================================================================
--- brlcad/trunk/src/libged/TODO        2020-09-09 13:23:22 UTC (rev 77092)
+++ brlcad/trunk/src/libged/TODO        2020-09-09 20:32:12 UTC (rev 77093)
@@ -175,6 +175,18 @@
   default to a view-oriented "underlay" but permanently stored in the
   .g file as a proper image object (top-level TODO entry).
 
+* 'gsort' or 'tables' or 'filter' command.  Distinction is that this
+  comamnd is object-aware and can process geometry by name in a given
+  column or list.  This way, one could sort output from search, nirt,
+  idents, and other table/list-based commands. Examples:
+
+  Sort by data size: [gsort -size [search .]])
+  Reverse sort of col4 by vol: [gsort -volume -k4 -r [search .]])
+
+  Desirable to intentionally pattern after POSIX sort
+  (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sort.html),
+  adding geometry extensions similar to BSD sort(1).
+
 * 'layer' command: to create, select, delete, list enable/disable
   on/off, lock/unlock, and set other properties (e.g., color, style).
   need subcommand(s) to move geometry to/from layers, perhaps
@@ -358,10 +370,6 @@
      simulate -k 1.0  # simulate 1s of gravity, overwriting original
      simulate -G -f 1 2 3 .4 5  # no gravity, custom force, 5s
 
-* 'tables' command: do not call system() on the "sort" unix command!
-  It should perform all sorting on the data directly in memory, at
-  least without creating another process.  bad security practice.
-
 * 'text' command: imports a text file (as geometry).  have options to
   specify the spacing between lines, first line, #lines,
   underline/overline each line, convert to all upper/lower, position.

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