SIF Version 2.0 | ||||
SIF SFF | LSIF | SIF DSG |
SIF SFF is a simple boundary and CSG representation, designed for SFF (Solid Free-Form Fabrication) processes.
(* file for a cube centered at the origin *) (SIF_SFF 2 0 (solid (shell (vertices 8 (v 1 1 1) (v 1 1 -1) (v -1 1 -1) (v -1 1 1) (v -1 -1 1) (v 1 -1 1) (v 1 -1 -1) (v -1 -1 -1) ) (triangles 12 (t 7 1 6) (t 6 1 5) (t 6 5 4) (t 4 5 3) (t 4 3 2) (t 2 3 1) (t 7 2 1) (t 5 1 0) (t 7 6 4) (t 5 0 3) (t 4 2 7) (t 0 1 3) ) ) ) )
(* Shows use of unevaluated booleans and volume properties *) (SIF_SFF 2 0 (solid (color (rgb .5 .5 0)) (union (shell (vertices 8 (v .5 .5 .5) (v .5 .5 -3) (v -3 .5 -3) (v -3 .5 .5) (v -3 -3 .5) (v .5 -3 .5) (v .5 -3 -3) (v -3 -3 -3) ) (triangles 12 (t 7 1 6) (t 6 1 5) (t 6 5 4) (t 4 5 3) (t 4 3 2) (t 2 3 1) (t 7 2 1) (t 5 1 0) (t 7 6 4) (t 5 0 3) (t 4 2 7) (t 0 1 3) ) ) ) (difference (shell (vertices 8 (v 4 4 4) (v 4 4 -2) (v -2 4 -2) (v -2 4 4) (v -2 -2 4) (v 4 -2 4) (v 4 -2 -2) (v -2 -2 -2) ) (triangles 12 (t 7 1 6) (t 6 1 5) (t 6 5 4) (t 4 5 3) (t 4 3 2) (t 2 3 1) (t 7 2 1) (t 5 1 0) (t 7 6 4) (t 5 0 3) (t 4 2 7) (t 0 1 3) ) ) (shell (vertices 8 (v 1 1 1) (v 1 1 -1) (v -1 1 -1) (v -1 1 1) (v -1 -1 1) (v 1 -1 1) (v 1 -1 -1) (v -1 -1 -1) ) (triangles 12 (t 7 1 6) (t 6 1 5) (t 6 5 4) (t 4 5 3) (t 4 3 2) (t 2 3 1) (t 7 2 1) (t 5 1 0) (t 7 6 4) (t 5 0 3) (t 4 2 7) (t 0 1 3) ) ) ) )
This page is maintained by
Sara McMains
E-mail: sara@cs.berkeley.edu
Last modified: 12/20/99
This page was designed and tested under Netscape using common HTML constructs. No browsers are blocked from viewing this page. Please send mail to the maintainer of this page if you find any broken links or errors in the page construction. |