Hello Daniel.
Hello Sean.
So, right now I'm going to do the following things :
1. Add *struct db_i * *to the signature of *ft_volume() *and change it's
usage everywhere it's used. Change all the rt_<primitive>_volume()'s
signature by adding *struct db_i * *there as well.
2. Write the function *rt_generic_volume() *and find a way to get the
object name that needs to be shot so that the geometry tree below it can be
obtained using *rt_gettree()*. I don't know right now how to do this object
name part -- any ideas / pointers?
3. Improve the function *analyze_volume() *in libanalyze so that it uses a
tolerance and stops on convergence wrt the tolerance.
These are the immediate steps that I see.
Now, according to Sean's comments : comb's *rt_db_internal* is a graph of
names (strings) -- so how will I get the *database instance* there is the
question to be solved. I'm looking into that right now. Also, the
prep()/shot() routine's for comb are not present. How am I going to
implement it? They are used by rt_shootray() I guess?
As Daniel said : I add *Volume()* function in Object.h/Object.cpp in rt^3
that uses the normal *ft_volume() *entry for primitives that have the
entry. If NULL, I use the function in libanalyze through *analyze.h*.
Which one is to be followed?
*rt_generic_volume() *calling the libanalyze function for primitives having
a NULL *ft_volume() *entry
OR
Directly write a function *Volume() *in Object.h/Object.cpp that chooses
what to do.
I hope I'm getting things correctly. Please correct me if I'm wrong.
With Regards,
Kalpit Thakkar
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel