Subject: sp5 solution components (This message is being sent to CPSC 215 Students and TA's) I have placed 3 components of the solution to sp5 in the sp5data directory. sp5sphere.c - contains the complete code for sphere_init() and sphere_dump() sp5vec.c - contains vl_get3() and vl_vecprn3() readers and writers of three component vectors sp5mat.c - material loader and dumper sp5obj.c - object constructor -------------------------------------------------------------- as far as I can tell that leaves only the plane_init() and plane_dump() functions which are clones of their sphere counterparts to be written. I believe almost EVERYTHING else is available as a solution. (You will have to write vl_get1() and vl_vecprn1() if you use my sphere initializer. --------------------------------------------------------------- So if you still don't have a working sp5 here is what to do: (1) assemble the components from the various solution directories into an sp5 directory (2) comment out the plane_init() and plane_dump() calls in model.c (3) add vl_get1() and vl_vecprn1() to veclib() (4) make sure prototypes of ALL FUNCTIONS are in rayhdrs.h (5) try to build (6) delete the planes from sp5.txt and try to run (7) using the sphere as a guide, write the plane functions (8) run sp5a.txt sp5b.txt and sp7c.txt If you get stuck at ANY POINT in this process, contact me or the TA SOONER rather than LATER. ---------------------------------------------------------------- It should be obvious that until you can come up with an operational model loader NOTHING ELSE WILL WORK! Thus the ONLY choices are: (1) get it working (2) drop the course (3) take an F