|
 |
hi,
announcing version 0.4.0 of the 'df3 tools'for working with DF3 files,
consisting of a C language library, a "Swiss army knife" type utility, and a
database virtual table extension.
since the previous release, the library has gained two functions to make working
with 16-bit and 32-bit DF3s easier, and lost one bug -- file modification times
had not been recorded.
the utility program has a new command, list, to dump selected DF3 contents to
stdout, in a number of formats including one that's template-based, user
defined. the importing of .png data has been improved to allow the processing
of colour images.
the Sqlite3 virtual table extension now provides an "introspection" SQL function
which reports details of the underlying DF3 file(s).
the software should build without warnings or errors on any POSIX-ish 64-bit os,
any existing installation of the 'df3 tools' must be uninstalled first.
the files are available for download via these links:
the library, needs to be installed first:
https://drive.google.com/file/d/1uPn5qxeVSvhbNnwkdLkQuR1qa5fBEwoX/view?usp=sharing
the utility:
https://drive.google.com/file/d/1SLkPuXoBiYvAMt8i89m7V5gVTUMfpTHU/view?usp=sharing
and the SQlite3 extension:
https://drive.google.com/file/d/17PA14CISXFqRKYOcpSY_Ubw08dWIMy--/view?usp=sharing
as always, hints, tips, and constructive criticisms welcome.
enjoy, jr.
Post a reply to this message
|
 |
|
 |
a tiny Tcl script to calculate the average density of a given DF3 file,
quickly written to demonstrate .. fringe benefits. :-)
assumes 'spiral.df3' (from the POV-Ray sources) in the current working directory
(or a link).
jr@crow:1:demo$ c### [at] voxavg tcl
# voxavg.tcl - average density of DF3.
set n 0
set t 0
foreach {x y z v} [read stdin] {
incr n
incr t $v
}
set avg [expr {($t + 0.0) / $n}]
puts [format {read %d voxels, total %d, average density %g.} $n $t $avg]
jr@crow:2:demo$ df3util -o tcl list spiral . . | tclsh voxavg.tcl
read 12500 voxels, total 171009, average density 13.6807.
enjoy, jr.
Post a reply to this message
|
 |
|
 |
hi,
ingo <ing### [at] tag povray org> wrote:
> in news:web.5b43d8aa43fdfea9635cc5ad0@news.povray.org jr wrote:
> > and the SQlite3 extension
>
> Nice. I once tried to stash a big df3 in an R-tree module table. Sqlite
> didn't realy like it :)
tsk, tsk. :-)
thank you for trying it. let me know if you encounter problems.
regards, jr.
Post a reply to this message
|
 |