AUTHOR:
Bases: sage.structure.sage_object.SageObject
The Tachyon Ray Tracer
tachyon_rt(model, outfile=’sage.png’, verbose=1, block=True, extra_opts=’‘)
INPUT:
OUTPUT:
EXAMPLES:
This executes the tachyon program, given a scene file input.
INPUT:
EXAMPLES:
sage: from sage.interfaces.tachyon import TachyonRT
sage: tgen = Tachyon()
sage: tgen.texture('t1')
sage: tgen.sphere((0,0,0),1,'t1')
sage: tgen.str()[30:40]
'resolution'
sage: t = TachyonRT()
sage: import os
sage: t(tgen.str(), outfile=os.devnull)
tachyon ...
Tachyon Parallel/Multiprocessor Ray Tracer...
TESTS:
sage: from sage.env import SAGE_EXTCODE
sage: filename = os.path.join(SAGE_EXTCODE, 'doctest', 'invalid', 'syntax_error.tachyon')
sage: syntax_error = open(filename, 'r').read()
sage: t(syntax_error, outfile=os.devnull)
Traceback (most recent call last):
...
RuntimeError: Tachyon Parallel/Multiprocessor Ray Tracer Version 0.98.9
...
Parser failed due to an input file syntax error.
Aborting render.
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 ...
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...