POV-Ray : Newsgroups : povray.binaries.utilities : df3 tools Server Time: 17 Jan 2019 03:26:05 GMT
  df3 tools (Message 1 to 4 of 4)  
From: jr
Subject: df3 tools
Date: 9 Jul 2018 22:00:01
Message: <web.5b43d8aa43fdfea9635cc5ad0@news.povray.org>
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

From: jr
Subject: Re: df3 tools
Date: 10 Jul 2018 15:25:00
Message: <web.5b44cea4f63f25ef635cc5ad0@news.povray.org>
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] voxavgtcl
# 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

From: ingo
Subject: Re: df3 tools
Date: 20 Dec 2018 16:02:39
Message: <XnsA9BEAD62BA83Fseed7@news.povray.org>
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 :)

ingo


Post a reply to this message

From: jr
Subject: Re: df3 tools
Date: 20 Dec 2018 21:50:01
Message: <web.5c1c0d73f63f25ef48892b50@news.povray.org>
hi,

ingo <ing### [at] tagpovrayorg> 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

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.