Wireframe for spheres

I had originally planned to implement really nice sphere wireframes by drawing curved lines but as time is running out i went with the easier backup plan of simply generating points interconnected by straight line segments. The code still contains the framework support for the original idea. The wireframe renderer gets fed with a list of "WireframeElement" objects, each containing a set of points, normals for each of the points and an indicator for which kind of "connector" function is to be used for drawing the connecting lines. At this time the only available connector is "Linear" which as the name implies performs linear interpolation between points and thus draws straight lines.

Comments

Popular posts from this blog

Specular reflection and Phong shading/lighting