dxf2rib(1) UNIX System V dxf2rib(1) NAME dxf2rib - convert AutoCAD R10/R11 DXF files to Pixar RenderMan Bitstream Interface SYNOPSIS dxf2rib [-hVcsp][-v n][-R n][-t n][-m n][file] DESCRIPTION dxf2rib convert 3D ASCII DXF data files to ASCII RIB files dxf2rib understands the following primitives: - LINE - POINT - CIRCLE - ARC - TRACE - SOLID - BLOCK - ENDBLK - INSERT - POLYLINE - VERTEX - 3DPolyline - 3DPolygMesh - SEQEND - 3DLINE - 3DFACE The following primitives are currently ignored: - TEXT - SHAPE - ATTDEF Page 1 (printed 8/26/99) dxf2rib(1) UNIX System V dxf2rib(1) - ATTRIB - DIMENSION OPTIONS dxf2rib -h: Print Help and exit -V: Version -c: To stdout -s: Make not-structured RIB This means not to print structural comments -v #: Set verbose level to #: 1: Print Debug info too 2: Print Info too (default) 5: Print Warnings too 7: Quiet mode -R f: Use f(float) as radius in LINES -t #: Convert four-sided-polygons to: 0: Four-sided-polygons (default) 1: Two triangles 2: Bilinear patch -p: Generate normals for poly*meshes -S file: Use file for set shaders for LAYERS The file has the following format: ---------------------- Declare ... Page 2 (printed 8/26/99) dxf2rib(1) UNIX System V dxf2rib(1) ... Declare # LAYER my_layer_1 Color Surface ... # LAYER my_layer_2 Color Surface ... ... # LAYER my_layer_last Color Surface ... ---------------------- -M #: Allocate memory for # 3D vertex (default 256) -B #: Allocate memory for # Blocks (default 256) file: If omited, translate standard input to standard output Otherwise, file must be *.dxf or *.DXF; output files will be *.rib. There is not warning if *.rib exists RETURN VALUE dxf2rib 0 if no error. 1, -1 or errno otherwise. EXAMPLES dxf2rib Translate a compressed dxf to a compressed rib: zcat foo.dxf | dxf2rib | compress -c > foo.rib.Z Create a dummy file for shader from a dxf Page 3 (printed 8/26/99) dxf2rib(1) UNIX System V dxf2rib(1) dxf2rib -c foo.dxf | grep Layer | sort | uniq | \ sed -e 's/Layer/LAYER/' -e 's/[:"]//g' > foo.sh.rib AUTHOR SPDsoft 1994; (c) SPDsoft,02 mar. 1994. vers 0.1b1 This version is still minimal; works with TOPAS, Dina Perspective, Swivel Pro and Zoom DXF files. dxf2rib is Cantoware (si te gusta, ya te puedes dar con un canto en los dientes) SEE ALSO compress(1), errno(3C), rm -rf / (666) Page 4 (printed 8/26/99)