> On Aug 19, 2017, at 4:16 PM, Mario Meissner <mr.rash....@gmail.com> wrote:
> 
> Hy Sean! 
> Attached goes code that includes the user input update to support transitions.

The code looks like it has a ways to go, but it’s progressing.  One thing you 
should change is to separate the input reading from the calculation.  During 
the hit() callback is where you’re currently querying input from the user — 
this should happen in main() or at least somewhere before the  rt_shootray() 
call.  That way, you will have sorted out the same mechanism you’d have to use 
in rtweight et al.

> Also contains work on the fix I talked about in my last email. I've tested 
> the current state of the code but it doesn't seem to skip projections 
> correctly yet. However my intentions are reflected in code so that you can 
> see what I want to do. It's either a stupid mistake in the code or in my 
> tests, or some conceptual error I've overseen.

Intentions in your code will always be easier for you to see than anyone else… 
:)  That said, the hit() function does look pretty straightforward. Aside from 
the hard-coded “4”, it looks adequate for all the cases we’ll likely care about 
and maybe “done”.  Obviously the important logic is happening in 
segment_density() as that’s where it has to figure out the integral.  Note that 
it likely needs that ‘4’ which currently isn’t used by it.  You should also be 
passing in the user-read data and not utilizing globals (segment_sensity() 
should take additional parameters as input).
 
> I won't be available from tomorrow until the 28th, and from the 1st to the 
> 3rd. I'm going on an 8 day trip and quickly after I'm moving to Germany to 
> start one academic year abroad. I hope to be able to set myself up there 
> quickly to continue working on this.

Thanks for the reminder.  Hopefully you don’t completely lose track of where 
you left off…  Is it possible to wrap things up into a more stable state before 
then (or at least from the 28th to the 1st)?  I would expect your time to be 
quickly gone once you travel abroad.

Cheers!
Sean



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to