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 I've been through that
file a bit lately. There's not really a "developer's guide" that something
like this would be put in.
It does say that db units are mm in
http://brlcad.org/w/images/3/3d/Application_Development.pdf, page 31, but
that one statement really doesn't explain the ramifications, etc. like you
have explained so succinctly above. A very similar comment also appears in
rtexample.c, but the statement was a little ambiguous as to how BRL-CAD is
really handling things under the covers.
On Thu, Feb 20, 2014 at 5:44 PM, Christopher Sean Morrison
<brl...@mac.com>wrote:
>
> 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 the numbers should be interpreted. Now that I see that this
> is not the case, everything is much easier. Thanks again!
>
> Yeah, it's really simple for development. Units are stored and always
> computed against each other in millimeters so there's only a conversion
> needed for display and input. Never a worry about a units mismatch.
>
> Now a follow-up question for you: Where could we have put that detail (in
> what header file or source file or manual page or web page) so that you
> would have found that detail when you needed it? Ideally some place you
> actually tried looking?
>
> Cheers!
> Sean
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
--
Daniel Hyams
dhy...@gmail.com
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel