Fixed librt so an explicit miss-function shouldn't be needed now.  Don't see 
any reason for the callbacks to have been unprotected and unchecked in the 
first place.

Cheers!
Sean



On Tuesday, May 12, 2009, at 10:23AM, <[email protected]> wrote:
>Revision: 34512
>          http://brlcad.svn.sourceforge.net/brlcad/?rev=34512&view=rev
>Author:   d_rossberg
>Date:     2009-05-12 14:23:48 +0000 (Tue, 12 May 2009)
>
>Log Message:
>-----------
>bug-fixes from the trunk:
>- global function implementations need an explicit namespace prefix
>- explicit ray-trace miss-function hook
>
>Modified Paths:
>--------------
>    rt^3/tags/rel-7-14-8/src/coreInterface/ConstDatabase.cpp
>    rt^3/tags/rel-7-14-8/src/coreInterface/globals.cpp
>
>Modified: rt^3/tags/rel-7-14-8/src/coreInterface/ConstDatabase.cpp
>===================================================================
>--- rt^3/tags/rel-7-14-8/src/coreInterface/ConstDatabase.cpp   2009-05-12 
>14:07:12 UTC (rev 34511)
>+++ rt^3/tags/rel-7-14-8/src/coreInterface/ConstDatabase.cpp   2009-05-12 
>14:23:48 UTC (rev 34512)
>@@ -484,6 +484,15 @@
> }
> 
> 
>+static int MissDo
>+(
>+    application* ap
>+) {
>+    // do nothing
>+    return 0; // return won't be evaluated
>+}
>+
>+
> void ConstDatabase::ShootRay
> (
>     const Ray3D& ray,
>@@ -493,7 +502,7 @@
>         application ap = {0};
> 
>         ap.a_hit      = HitDo;
>-        ap.a_miss     = 0;
>+        ap.a_miss     = MissDo;
>         ap.a_overlap  = 0;
>         ap.a_rt_i     = m_rtip;
>         ap.a_level    = 0;
>
>Modified: rt^3/tags/rel-7-14-8/src/coreInterface/globals.cpp
>===================================================================
>--- rt^3/tags/rel-7-14-8/src/coreInterface/globals.cpp 2009-05-12 14:07:12 UTC 
>(rev 34511)
>+++ rt^3/tags/rel-7-14-8/src/coreInterface/globals.cpp 2009-05-12 14:23:48 UTC 
>(rev 34512)
>@@ -52,7 +52,7 @@
> }
> 
> 
>-void BRLCAD_COREINTERFACE_EXPORT RegisterLogHandler
>+void BRLCAD_COREINTERFACE_EXPORT BRLCAD::RegisterLogHandler
> (
>     LogHandler& logHandler
> ) throw(bad_alloc) {
>@@ -67,7 +67,7 @@
> }
> 
> 
>-void BRLCAD_COREINTERFACE_EXPORT DeRegisterLogHandler
>+void BRLCAD_COREINTERFACE_EXPORT BRLCAD::DeRegisterLogHandler
> (
>     LogHandler& logHandler
> ) throw() {
>
>
>This was sent by the SourceForge.net collaborative development platform, the 
>world's largest Open Source development site.
>
>------------------------------------------------------------------------------
>The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>production scanning environment may not be a perfect world - but thanks to
>Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
>Series Scanner you'll get full speed at 300 dpi even with all image 
>processing features enabled. http://p.sf.net/sfu/kodak-com
>_______________________________________________
>BRL-CAD Source Commits mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/brlcad-commits
>
>

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to