GSoC/GCI Archive
Google Code-in 2012 BRL-CAD

Separate LIBNURBS files into one class per file

completed by: Cezar

mentors: Sean


BRL-CAD has a recently implemented a new library that isn't very well organized. The files for that library are a haphazard collection of classes and functions. It's a bit of a mess.

This task involves making sure there is no more than one struct or class per source file. Class/struct declarations should be in header files. Class/struct method and functions should be in source files. Headers should be fully self-sufficient and include proper #ifdef wrappers (see include/*.h for examples). Make sure new files are named to match their enclosing class/struct. Be sure to update the CMakeLists.txt build file too and test compilation.

Code:

  • src/libnurbs/*