Back: 3.9 Animation Forward: 3.10.1 Coordinate mapping     FastBack: 3. Graphics Up: 3. Graphics FastForward: 4. Embedding Compiled Routines Inside Yorick         Top: Yorick: An Interpreted Language Contents: Table of Contents     About: About This Document

3.10 3D graphics interfaces

You can combine Yorick’s graphical primitives to create your own graphics interfaces. The Yorick distribution includes a simple 3D graphics interface built in just this way. Study the ‘pl3d.i’ library file if you need an example of how to do this.

Before you can access the 3D functions, you need to include either ‘plwf.i’ or ‘slice3.i’, which provide the highest level 3D interfaces. The ‘plwf.i’ interface lets you plot scalar functions of two variables (like plc or plf). The ‘slice3.i’ interface allows you to plot isosurfaces and slices of scalar functions of three variables. The ‘demo5.i’ demonstration program in the Yorick distribution has examples of both; study it to see how they work in detail.


Back: 3.9 Animation Forward: 3.10.1 Coordinate mapping     FastBack: 3. Graphics Up: 3. Graphics FastForward: 4. Embedding Compiled Routines Inside Yorick         Top: Yorick: An Interpreted Language Contents: Table of Contents     About: About This Document