Implement a primitive volume function ... for right hyperbolic cylinders (RHC)BRL-CAD
Status: ClosedTime to complete: 72 hrs Mentors: Sean, Matt S.Tags: C, C++, math, geometry, volume

BRL-CAD provides more than two dozen types of geometry "primitives" such as ellipsoids, boxes, and cones. Every primitive is described by a collection of callback functions, for example rt_ell_bbox() returns the bounding box dimensions for an ellipsoid. Wikipedia, Wolfram Mathworld, and various other math sites (and research papers) around the web include the equations for most of our basic primitives while others are a little more difficult to compute.

This task involves writing a new callback function that takes an rt_db_internal object and calculates the volume (units are mm^3). There are numerous examples in our code where we compute volume for other primitives. The primitives that do not already have a volume callback are itemized in following.

References:

Code:

  • src/librt/primitives/rhc/rhc.c
Uploaded Work
File name/URLFile sizeDate submitted
rt_rhc_volume.patch2.1 KBDecember 04 2012 09:02 UTC
Comments
PC Johnon November 28 2012 16:59 UTCTask Claimed

I would like to work on this task.

PC Johnon November 28 2012 17:00 UTCClaim Removed

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

Richard Akira Heruon November 30 2012 08:14 UTCTask Claimed

I would like to work on this task.

Harmanpreet Singh on November 30 2012 08:19 UTCTask Assigned

This task has been assigned to Richard Akira Heru. You have 72 hours to complete this task, good luck!

Melange on December 3 2012 08:19 UTCInitial Deadline passed

Melange has detected that the initial deadline has passed and it has set the task status to ActionNeeded. The student has 24 hours to submit the work before the task is reopened and sent back to the pool for other students to claim.

Richard Akira Heruon December 3 2012 14:30 UTCClaim Removed

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

fernozzleon December 4 2012 06:39 UTCTask Claimed

I would like to work on this task.

Daniel Rossberg on December 4 2012 07:38 UTCTask Assigned

This task has been assigned to fernozzle. You have 72 hours to complete this task, good luck!

fernozzleon December 4 2012 09:02 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 5 2012 04:14 UTCcomplicated testing

As testing whether your implementation is actually correct will take some time, we'll be going on some blind faith.. ;)  We'll be adding tasks soon to perform validation tasks for new functions like this one, so let me know if you're interested in continuing this type of work.  Thanks for your efforts!


If you provide your full name, we'll credit you accordingly in our authorship documentation.


 

Sean on December 5 2012 04:14 UTCTask Closed

Congratulations, this task has been completed successfully.

fernozzleon December 5 2012 04:30 UTCMy name

My name is Michael Huang.


How would you recommend I include my name in the future (since I can't change my username)?


Thanks in advance.

Sean on December 6 2012 06:23 UTCshouldn't need to

You can provide your name when you first submit a patch as completed if you like, if only to remind us of your name.  Your alias will also be in our documentation, though, so we will be able to track you as future changes are integrated into the source code.


 

Sean on December 14 2012 14:17 UTCfollow-on task

A follow-on task has been created for this work:


http://www.google-melange.com/gci/task/view/google/gci2012/8085202