Re: [brlcad-devel] Combination in LIBRT

2015-03-22 Thread Kalpit Thakkar
Hello! I have submitted my proposal on Melange. Do take a look whenever possible. I have not yet understood how exactly am I going to code this thing while the idea is pretty clear to me. I'm not able to visualize how the code would look like. I'm working on it and will get back to you about it so

Re: [brlcad-devel] Combination in LIBRT

2015-03-22 Thread Kalpit Thakkar
Hey! I have been looking at the files "viewweight.c" and "gqa.c" since yesterday. So, according to what I understand, I have to implement one function (or maybe two) for each of the classes in coreinterface, which would use the "rtweight methodology" to calculate the volume and centroid of the Data

Re: [brlcad-devel] Combination in LIBRT

2015-03-21 Thread Kalpit Thakkar
Hello Daniel! Yeah, that sounds like a good idea. Essentially, we wouldn't have different solution prototypes for primitives (as combinations use the rtweight methodology for an analytic solution), which would make it easier to add the table functions in the Object class, and the code would also be

Re: [brlcad-devel] Combination in LIBRT

2015-03-21 Thread Daniel Roßberg
Kalpit, Implementing the missing functions for centroid, volume and surface in librt for the primitives can be highly non-trivial. How about implementing the "rtweight methodology" etc. fall-backs for every element in librt where an analytic solution is missing? After doing so you only had to ad

Re: [brlcad-devel] Combination in LIBRT

2015-03-21 Thread Kalpit Thakkar
Hello Sean! I figured it would be better to get your comments on the doc itself. So, here is the Google Doc link : https://docs.google.com/document/d/1RgUDxU3x3IC1r9lba49IlKP9-wJ2PCgAbcwlj7wTlTo/edit?usp=sharing With Regards, Kalpit Thakkar On Sat, Mar 21, 2015 at 3:11 PM, Kalpit Thakkar wrote:

Re: [brlcad-devel] Combination in LIBRT

2015-03-21 Thread Kalpit Thakkar
On Sat, Mar 21, 2015 at 3:43 AM, Christopher Sean Morrison wrote: > > On Mar 20, 2015, at 5:35 PM, Kalpit Thakkar wrote: > > > I'm sorry I'm rushing this too much. I am trying to develop my proposal > for the Object-Oriented C++ Geometry API project and I want to include > adding features like C

Re: [brlcad-devel] Combination in LIBRT

2015-03-20 Thread Christopher Sean Morrison
On Mar 20, 2015, at 5:35 PM, Kalpit Thakkar wrote: > I'm sorry I'm rushing this too much. I am trying to develop my proposal for > the Object-Oriented C++ Geometry API project and I want to include adding > features like Centroid, Volume and Surface Area of the primitive in the > interface. I

Re: [brlcad-devel] Combination in LIBRT

2015-03-20 Thread Kalpit Thakkar
On Sat, Mar 21, 2015 at 1:52 AM, Christopher Sean Morrison wrote: > > On Mar 20, 2015, at 3:22 PM, Kalpit Thakkar wrote: > > Now, if I import some model into MGED, which is an external model, will it > also be broken down into a hierarchy by MGED, such that leaf nodes consist > of basic primitiv

Re: [brlcad-devel] Combination in LIBRT

2015-03-20 Thread Christopher Sean Morrison
On Mar 20, 2015, at 3:22 PM, Kalpit Thakkar wrote: > Now, if I import some model into MGED, which is an external model, will it > also be broken down into a hierarchy by MGED, such that leaf nodes consist of > basic primitives and the parent nodes are obtained by applying union, > intersectio

Re: [brlcad-devel] Combination in LIBRT

2015-03-20 Thread Kalpit Thakkar
On Fri, Mar 20, 2015 at 10:29 PM, Christopher Sean Morrison wrote: > > On Mar 20, 2015, at 12:41 PM, Kalpit Thakkar wrote: > > > Hello! > > I have been trying to figure out for sometime now, what exactly is a > combination in LIBRT. > > A combination is a collection of objects. Semantic meaning

Re: [brlcad-devel] Combination in LIBRT

2015-03-20 Thread Christopher Sean Morrison
On Mar 20, 2015, at 12:41 PM, Kalpit Thakkar wrote: > Hello! > I have been trying to figure out for sometime now, what exactly is a > combination in LIBRT. A combination is a collection of objects. Semantic meaning is given to a combination based on where it exists hierarchically and what it

[brlcad-devel] Combination in LIBRT

2015-03-20 Thread Kalpit Thakkar
Hello! I have been trying to figure out for sometime now, what exactly is a combination in LIBRT. Is it a non-leaf node in the tree made out of the different primitives in the scene (I guess this tree would then be used for raytracing?) OR Is it a combination of different primitives explicitly asse