Description
Assignment:
- Download skeleton file cxx and file data_proj2.vtk and put them in a new directory.
- Re-use your from txt … copy it to a new directory and rename “proj1” to be “proj2”.
- Compile the program and run the It will generate incorrect output.
- You will need to implement three functions to make it generate the correct output (search for “IMPLEMENT ME!”)
- I would recommend you implement them in the following order:
- BoundingBoxForCell
- CountNumberOfStraddlingCells
- EvaluateFieldAtLocation
- Compare the output with the output I Keep in mind that not all function invocations have valid arguments. GetBoundingBox returns [-100>+100, -100->+100] for invalid cell indices and EvaluateFieldAtLocation returns 0 for invalid locations.
- Upload your source code when it is
If it does not produce the correct answer, then you should expect to get less than half credit. I would prefer to get working code late than non-working code on time.



