Implement single function in C to sample a coneBRL-CAD
Status: ClosedTime to complete: 100 hrs Mentors: Deepak, IshwerdasTags: function, C, programming, conic

Our ray tracing library (librt) has a few functions pertaining to creating a pattern of rays and shooting them as a bundle (i.e., all at once). We have examples you can follow like rt_gen_circular_grid() in src/librt/mkbundle.c that are very similar, just not the right pattern.

Our "rtshot" command line utility is a simple single-shot utility that can help you test your implementation and make sure it's working correctly. See the code there for mentions of rt_gen_circular_grid() and rt_shootrays().

Sources may be obtained from our Subversion repository: svn checkout https://svn.code.sourceforge.net/p/brlcad/code/brlcad/trunk brlcad

Implement a function, e.g., rt_gen_conic(), that will create a cone of rays originating from a specified point, direction, divergence angle, and options for controlling the sampling density

Submit the changes to mkbundle.c in patch format.

References:
  • src/librt/mkbundle.c
  • src/librt/bundle.c
  • src/rt/rtshot.c
  • http://brlcad.org/wiki/Compiling
Modify:
  • src/librt/mkbundle.c
  • src/rt/rtshot.c
Uploaded Work
File name/URLFile sizeDate submitted
task-38-implement-cone-sampling.diff2.2 KBDecember 24 2014 15:56 UTC
task-38-implement-cone-sampling.diff1.9 KBDecember 24 2014 15:57 UTC
Comments
Andromeda Galaxyon December 22 2014 05:26 UTCTask Claimed

I would like to work on this task.

Sean on December 22 2014 05:36 UTCTask Assigned

This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!

Sean on December 22 2014 05:37 UTCimportant task

This is a very important task, so please take care and ask questions if any come up.  Please contact me directly via e-mail if you can't get an answer via IRC.


 

Andromeda Galaxyon December 24 2014 15:12 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Andromeda Galaxyon December 24 2014 15:50 UTCTask Claimed

I would like to work on this task.

Ch3ck on December 24 2014 15:55 UTCTask Assigned

This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!

Andromeda Galaxyon December 24 2014 15:56 UTCReady for review

The work on this task is ready to be reviewed.

Andromeda Galaxyon December 24 2014 16:30 UTCExisting bundle visualization

I've finished the task for visualizing bundles that Sean discussed with me in IRC, but since I've had the work for this one donef or a while, I wanted to submit it first (that task isn't up yet).

Sean on December 25 2014 12:14 UTCTask Closed

Congratulations, this task has been completed successfully.

Sean on January 8 2015 08:55 UTCfollow-on

A follow-on to this task has been posted to visualize the current ray-bundling patterns: https://www.google-melange.com/gci/task/view/google/gci2014/4591442060115968