[Swift-commit] r7717 - SwiftApps/raytrace/c-ray

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Sat Mar 15 13:56:43 CDT 2014


Author: ketan
Date: 2014-03-15 13:56:42 -0500 (Sat, 15 Mar 2014)
New Revision: 7717

Added:
   SwiftApps/raytrace/c-ray/workflow.dia
   SwiftApps/raytrace/c-ray/workflow.png
Modified:
   SwiftApps/raytrace/c-ray/c-ray.swift
Log:
workflow diagram

Modified: SwiftApps/raytrace/c-ray/c-ray.swift
===================================================================
--- SwiftApps/raytrace/c-ray/c-ray.swift	2014-03-14 20:15:54 UTC (rev 7716)
+++ SwiftApps/raytrace/c-ray/c-ray.swift	2014-03-15 18:56:42 UTC (rev 7717)
@@ -17,32 +17,25 @@
 
 scene_template template <"tscene">;
 
-app (scene out) generate (scene_template t, int i, int total)
-{
+app (scene out) generate (scene_template t, int i, int total) {
 	genscenes i total @t stdout=@out;
 }
 
-app (image o) render (scene i, string r, int t)
-{
+app (image o) render (scene i, string r, int t) {
 	cray "-s" r "-t" t stdin=@i stdout=@o;
 }
 
-app (movie o) convert (image i[], int d, int q)
-{
+app (movie o) convert (image i[], int d, int q) {
 	convert "-delay" d "-quality" q @filenames(i) @filename(o);
 }
 
-app (image outimg) ppm2gif (image inimg)
-{
+app (image outimg) ppm2gif (image inimg) {
     convert @filename(inimg) @filename(outimg);
 }
 
 scene scene_files[] <simple_mapper; location=".", prefix="scene.", suffix=".data">;
-
 image image_files[] <simple_mapper; location=".", prefix="scene.", suffix=".ppm">;
-
 image gif_files[] <simple_mapper; location=".", prefix="scene.", suffix=".gif">;
-
 movie output_movie <"output.gif">;
  
 foreach i in [1:steps] {

Added: SwiftApps/raytrace/c-ray/workflow.dia
===================================================================
(Binary files differ)


Property changes on: SwiftApps/raytrace/c-ray/workflow.dia
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: SwiftApps/raytrace/c-ray/workflow.png
===================================================================
(Binary files differ)


Property changes on: SwiftApps/raytrace/c-ray/workflow.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream




More information about the Swift-commit mailing list