Scripting Guide > Three-Dimensional Scenes > Draw Cylinders, Disks, and Spheres > Lighting for Cylinders, Disks, and Spheres
Publication date: 07/08/2024

Lighting for Cylinders, Disks, and Spheres

It is not necessary to make specific calculations of normal vectors (as is the case for customized surfaces) for spheres, disks, and cylinders. However, you can use the following commands to customize the automatic lighting.

Quadric Normals(mode) tells what type of normal should be automatically generated. The argument mode can be None, Flat, or Smooth. Flat makes faceted surfaces. Smooth makes the normals at each vertex be the average of the adjacent polygons.

Quadric Orientation(mode) determines which way the normals point. The argument mode can be Inside or Outside.

Quadric Draw Style(mode) specifies the drawing mode. The argument mode can be Fill, Line, Silhouette, or Point.

JMP uses the values that you set for Quadric Normals, Quadric Orientation, and Quadric Draw Style for subsequently generated cylinders, disks, and spheres.

Figure 13.13 Draw Styles 

Draw Styles

Note: Other OpenGL documentation refers to quadric objects. JMP has only one and always uses it.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).