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:
|
File name/URL | File size | Date submitted | |
---|---|---|---|
rt_rhc_volume.patch | 2.1 KB | December 04 2012 09:02 UTC |
I would like to work on this task.
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to Richard Akira Heru. You have 72 hours to complete this task, good luck!
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.
The claim on this task has been removed, someone else can claim it now.
I would like to work on this task.
This task has been assigned to fernozzle. You have 72 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
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.
Congratulations, this task has been completed successfully.
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.
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.
A follow-on task has been created for this work:
http://www.google-melange.com/gci/task/view/google/gci2012/8085202