I need to implement a contour plotting algorithm (as opposed to just using one). The input is a (continuous) function f: R^2 - > R (the function is defined over the entire domain, not just for certain inputs). The output should be in vector form, i.e. a set of splines or line segments.
I'm looking for recommendations on how to implement this, preferably in the form of (scientific) papers.
I found some references to algorithms developed in the 80s ("Level Tracing Algorithm"). Have there been any development in this area in the past 30 years? What's the standard method(s) used to solve this problem?
The algorithm will be used for real-time visualization, so it needs to be fast while still producing decent results.
(Small, self-contained and well tested C/C++ implementations would be welcomed as well.)
I recall the TI-89 calculator used a very simple scheme like this:
Now, you may want to refine the interesting squares adaptatively. The TI-89 had a damn small screen (160x120) and this was not necessary. The exact same method can be used inside an interesting square.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With