Menu
Logged-In As
ACCOUNTNot Logged In
Design new API function to reduce duplicationBRL-CAD
Status: ClosedTime to complete:
100 hrs
Mentors: Ishwerdas, Ch3ck
This task involves designing a new function that will measurably help reduce code duplication. You'll need to have already identified a piece of duplicated code that needs to be refactored and/or modified.
This task involves writing just the header file declaration and a doxygen comment that fully describes how the function behaves. It is your responsibility to make sure that the return types and function arguments are well thought out, fit well with our existing conventions, and is a clean simple yet effective design. Think it through.
Submit a patch file with your change, modifying the corresponding public include/header file that goes with the library being modified.
Note candidate libraries to modify are our core libraries:
- libbu for basic utility functions
- libbn for basic math and simple geometry functions
- librt / libnmg / libbrep for more complicated geometry functions
- libanalyze for analysis functions
- libged for geometry editing (commands)
- ... see src/README for a brief listing
Uploaded Work
File name/URL | File size | Date submitted | |
---|---|---|---|
task-7-new-api.tar.gz | 1.5 KB | December 04 2014 22:25 UTC |
I would like to work on this task.
This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
Congratulations, this task has been completed successfully.
Andromeda, thanks for providing a detailed rationale write-up that explains the two choices. My initial inclination given your analysis would be to go with the version that has the ability to return the number of chars scanned. Having others that don't need that value pass NULL is not really a burden.
A follow-on task has been queued to implement this function.