Aditi,

> I had been testing voxelize for quite a while now but the command hangs the
> software to the state that it has to be reopened again. It is not
> functional. I have gone through the code , still trying to understand it.

Can you provide an example?  Used geometry, voxelize parameters?  This
behavior could be caused by using a too small voxel size (conversion
needs a long time).

You can find the core of the algorithm in /src/libanalyze/voxels.c.
The creation of the voxels will be done via the create_boxes callback
function.  There are two such functions already implemented: One in
src/libged/voxelize.c which creates RPPs (the mged command) and
another in src/conv/g-voxel.c which writes the coordinates to a file.

> As a part of my project I would like to implement this functionality
> properly.
> Along with voxel generation, I would like to add features that voxelization
> would help rendering to BRL CAD many useful abilities.
>
> My idea is to extend voxelize library incorporating in it , following
> features:
> 1. Functions to change the color, texture, material and size of voxel etc.
> 2. If two objects collide, following the laws of motion in ideal space, what
> would be the resultant shape, this would be done firstly by voxelizing the
> two objects then evaluating the shift in individual voxels according to the
> laws of motion and redrawing the finally distorted image by de-voxelizing.

Maybe you could think more about creating new call-back functions for
special purposes and how to integrate them in BRL-CAD.

> 3.This would also need the de-voxelize function.

This is another topic, similar to getting the lines and surfaces from a pixmap.


Regards,
    Daniel

------------------------------------------------------------------------------
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

Reply via email to