Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Daniel Hyams
Converting .g files with g2asc. Our program reads this ASCII version of the .g file and works on it. Don't ask ;) On Thu, Feb 20, 2014 at 9:50 PM, Christopher Sean Morrison wrote: > > On Feb 20, 2014, at 7:31 PM, Daniel Hyams wrote: > > > Tough one, because I've had a really hard time finding

Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Christopher Sean Morrison
On Feb 20, 2014, at 7:31 PM, Daniel Hyams wrote: > Tough one, because I've had a really hard time finding documentation that > helps with the API's. The doxygen docs are there, but they haven't really > been that much help to me. *nod* We're actively working on this (comment migration, Doxyg

Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Daniel Hyams
Tough one, because I've had a really hard time finding documentation that helps with the API's. The doxygen docs are there, but they haven't really been that much help to me. I'd say in the raytrace.h file, I would have possibly found it. I know that's still kind of an out-of-the-way place, but

[brlcad-devel] small concern in rtweight

2014-02-20 Thread Daniel Hyams
In going over the source code for rtweight (viewweight.c), there is this in the routine that processes a hit from the ray tracer: /* Compute mass in terms of grams */ dp->weight = depth * density[reg->reg_gmater] * (fastf_t)reg->reg_los * cell_height * cell_height * 0.1; dp->volume = depth

Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Christopher Sean Morrison
On Feb 20, 2014, at 5:21 PM, Daniel Hyams wrote: > Excellent, thanks Sean! I'm not really a modeler, but a developer using the > ray tracing API's. I got confused when I was testing (with both my ray > tracer and rtweight), because I thought that the "units" entry in the .g file > told how t

Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Daniel Hyams
Excellent, thanks Sean! I'm not really a modeler, but a developer using the ray tracing API's. I got confused when I was testing (with both my ray tracer and rtweight), because I thought that the "units" entry in the .g file told how the numbers should be interpreted. Now that I see that this is

Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Christopher Sean Morrison
On Feb 20, 2014, at 4:05 PM, Daniel Hyams wrote: > Thanks Sean! I think the problem is my lack of understanding concerning how > BRL-CAD stores its data. I think you're implying that BRL-CAD always stores > its data in a particular unit (mm), so the "units" attribute of a .g file > doesn't m

Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Daniel Hyams
Thanks Sean! I think the problem is my lack of understanding concerning how BRL-CAD stores its data. I think you're implying that BRL-CAD always stores its data in a particular unit (mm), so the "units" attribute of a .g file doesn't matter except as a convenience to the modeler when creating new

Re: [brlcad-devel] rtweight units problem

2014-02-20 Thread Christopher Sean Morrison
On Feb 20, 2014, at 2:55 PM, Daniel Hyams wrote: > It seems that if I have a model file (I was using a sphere as an example), > and run > > rtweight modelfile.g all.g > > I'll get a certain mass. But if I then change the units in the model file, > and run again > > rtweight modelfile.g all.

[brlcad-devel] rtweight units problem

2014-02-20 Thread Daniel Hyams
It seems that if I have a model file (I was using a sphere as an example), and run rtweight modelfile.g all.g I'll get a certain mass. But if I then change the units in the model file, and run again rtweight modelfile.g all.g (with the same .density file as before) I still get the same mass.

Re: [brlcad-devel] New to BRLCAD

2014-02-20 Thread Christopher Sean Morrison
On Feb 20, 2014, at 12:01 PM, Pulkit Agarwal wrote: > Hi Sean, > I realize that i was a bit rude in saying that but I got the answer to my > ques about an hour after. I have already started working on a project in > GCI-2013 and looking forward to submit my first patch. Glad to hear you got yo

Re: [brlcad-devel] New to BRLCAD

2014-02-20 Thread Pulkit Agarwal
Hi Sean, I realize that i was a bit rude in saying that but I got the answer to my ques about an hour after. I have already started working on a project in GCI-2013 and looking forward to submit my first patch. Sorry and Thanks, Pulkit Agarwal On Thu, Feb 20, 2014 at 10:19 PM, Christopher Sean M

Re: [brlcad-devel] Directives on how to move forward

2014-02-20 Thread Christopher Sean Morrison
On Feb 19, 2014, at 5:23 AM, Djimeli Konrad wrote: > I am Djimeli Konrad, a first year university student offering computer > engineering.This is not the first time i am communicating on the mailing list > but i am sorry, i did not get to introduce myself the first time. No need to apologi

Re: [brlcad-devel] New to BRLCAD

2014-02-20 Thread Christopher Sean Morrison
Hi Pulkit, > I was going through the code and started implementing some of the quick > project on http://brlcad.org/wiki/Contributor_Quickies. You might want to check out the GCI page first as it's more up-to-date than the Quickies page. At least make sure whatever you're thinking of working