Hi sean.
Thanks for the discussion and clarifying on IRC yesterday regarding the mk
procedures.
I am writing vol primitive for the python-brlcad repository and get the
following error in testing "Unreasonable VOL parameters"
As I didn't find any uses of mk_vol(***), Can you guide me with the
parameters with which a vol function will be created.
To help you I am writing the function definition which is as follows.
mk_vol(struct rt_wdb *fp, const char *name, const char *file, size_t xdim,
size_t ydim, size_t zdim, size_t lo, size_t hi, const fastf_t *cellsize,
const matp_t mat)
now what values of the following parameters will create a sample VOL ?
size_t xdim = ?,
size_t ydim = ?,
size_t zdim = ?,
size_t lo = ?,
size_t hi = ?,
const fastf_t *cellsize = [???] ,
const matp_t mat = [?????...??]
Please guide me with these values or point me to some documents where I
could learn about them.
Thanks
Raj.
On Wed, Mar 5, 2014 at 7:25 PM, Christopher Sean Morrison <brl...@mac.com>wrote:
>
> On Mar 5, 2014, at 3:29 AM, K RAJ KOUSHIK REDDY wrote:
>
> > Sean,
> >
> > Thanks for the quick and prompt reply.
> >
> > I also wish to know what are the default values of fields in
> rt_vol_internal. (similar to rpc at [1]) Also, if you can tell me where to
> find these default values or they are mere common sense. :-)
>
> I'm not sure what you mean by default values. There aren't any defaults
> -- you specify the values. If you're asking what those values should be,
> that entirely depends on what datafile you feed it.
>
> It's a "volumetric primitive" which is voxel geometry. Volume data is
> commonly described with many slices of 2D bitmap image data (e.g., think CT
> scan or MRI scan data). You provide that data in raw format as a file.
> That's the first field. The rest of the fields describe the data like the
> dimensions of a voxel in terms of width, height, depth, and how much data
> there is. The high/low fields are how it knows what data to keep or throw
> away (again, think CT scan data) since volume data tends to be very noisy.
>
> Your best bet is to try and manually create a vol primitive first using
> mged and the 'in' command. It'll prompt you for all the parameters needed,
> so you can play with different values to see how they influence object
> creation. Creating a VOL is very similar (but NOT identical) to creating
> an EBM, which is described at http://brlcad.org/wiki/EBM
>
> You should be able to create a series of simple bw images, concatenate
> them together, and use them as an input.
>
> Cheers!
> Sean
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel