Chapter 10. Curves and Surfaces

by Richard S. Wright, Jr.

WHAT YOU'LL LEARN IN THIS CHAPTER:

How To

Functions You'll Use

Draw spheres, cylinders, and disks

gluSphere/gluCylinder/gluDisk

Use maps to render Bézier curves and surfaces

glMap/glEvalCoord

Use evaluators to simplify surface mapping

glMapGrid/glEvalMesh

Create NURBS surfaces

gluNewNurbsRenderer/gluBeginSurface/ gluNurbsSurface/ gluEndSurface/ gluDeleteNurbsRendererf10

Create trimming curves

gluBeginTrim/gluPwlCurve/gluEndTrim

Tessellate concave and convex polygons

gluTessBeginPolygon/gluTessEndPolygon

The practice of 3D graphics is little more than a computerized version of connect-the-dots. Vertices are laid out in 3D space and connected by flat primitives. Smooth curves and surfaces are approximated ...

Get OpenGL® SuperBible, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.