| ||||
| ||||
This chapter explained how to subdivide curves for more efficient rendering. As you can see in Figure 6.6, the process can make your curves much more efficient with a minimal loss of visual quality. The technique described here was very basic, but there are many papers and books that highlight different and faster methods . Once you understand the basic ideas, chances are you will find tweaks that directly address your needs.
This chapter concludes the material on simple 2D curves. Here are some of the points to remember:
Adaptive subdivision is a method that approximates a curve based on some criteria about the shape of the curve.
There are many types of tests that can be used to determine whether a curve should be subdivided at a given point. The method in this chapter measures the distance between the midpoint of a given line segment with the midpoint along that interval and compares it to some tolerance factor.
The method described in this chapter supports subdivision based on a maximum number of segments, a tolerance factor, or both. You might want to spend some time experimenting with the parameters to see how the results change.
Once you understand this method, a Web search will produce many others. It should be easy to find one that fits your specific needs.
| ||||