The Tachyon Ray Tracer

AUTHOR:

  • John E. Stone
class sage.interfaces.tachyon.TachyonRT

The Tachyon Ray Tracer

tachyon_rt(model, outfile=’sage.png’, verbose=1, block=True, extra_opts=’‘)

INPUT:

  • model - a string that describes a 3d model in the Tachyon modeling format. Type tachyon_rt.help() for a description of this format.
  • outfile - (default: ‘sage.png’) output filename; the extension of the filename determines the type. Supported types include:
    • tga - 24-bit (uncompressed)
    • bmp - 24-bit Windows BMP (uncompressed)
    • ppm - 24-bit PPM (uncompressed)
    • rgb - 24-bit SGI RGB (uncompressed)
    • png - 24-bit PNG (compressed, lossless)
  • verbose - integer; (default: 1)
    • 0 - silent
    • 1 - some output
    • 2 - very verbose output
  • block - bool (default: True); if False, run the rendering command in the background.
  • extra_opts - passed directly to tachyon command line. Use tachyon_rt.usage() to see some of the possibilities.

OUTPUT:

  • Some text may be displayed onscreen.
  • The file outfile is created.

EXAMPLES:

AUTHORS:

  • John E. Stone
help(use_pager=True)

Prints (pages) the help file written by John Stone describing scene files for Tachyon. The output is paged unless use_pager=False.

TESTS:

sage: from sage.interfaces.tachyon import TachyonRT
sage: t = TachyonRT()
sage: t.help(use_pager=False)
This help, which was written by John Stone, describes ...
usage(use_pager=True)

Returns the basic description of using the Tachyon raytracer (simply what is returned by running tachyon with no input). The output is paged unless use_pager=False.

TESTS:

sage: from sage.interfaces.tachyon import TachyonRT
sage: t = TachyonRT()
sage: t.usage(use_pager=False)
Tachyon Parallel/Multiprocessor Ray Tracer   Version...

Previous topic

Interface to Singular

Next topic

Interface for extracting data and generating images from Jmol readable files.

This Page