.\" $Header: dxf2rib.1, gm v0.0, CPSIUZ $ .TH dxf2rib 1 .ds )H Grupo de Informatica Grafica .ds ]W CPSIUZ .SH NAME .B dxf2rib \- convert AutoCAD R10/R11 DXF files to Pixar RenderMan Bitstream Interface .SH SYNOPSIS .B dxf2rib [-hVcsp][-v n][-R n][-t n][-m n][file] .SH DESCRIPTION .B dxf2rib convert 3D ASCII DXF data files to ASCII RIB files .PP .B dxf2rib understands the following primitives: .RS .TP 2 \- LINE .TP 2 \- POINT .TP 2 \- CIRCLE .TP 2 \- ARC .TP 2 \- TRACE .TP 2 \- SOLID .TP 2 \- BLOCK .TP 2 \- ENDBLK .TP 2 \- INSERT .TP 2 \- POLYLINE .TP 2 \- VERTEX .TP 2 \- 3DPolyline .TP 2 \- 3DPolygMesh .TP 2 \- SEQEND .TP 2 \- 3DLINE .TP 2 \- 3DFACE .RE .PP The following primitives are currently ignored: .RS .TP 2 \- TEXT .TP 2 \- SHAPE .TP 2 \- ATTDEF .TP 2 \- ATTRIB .TP 2 \- DIMENSION .RE .PP .SH OPTIONS .B dxf2rib .IP \-h: Print Help and exit .IP \-V: Version .IP \-c: To stdout .IP \-s: Make not-structured RIB .PP This means not to print structural comments .IP \-v\ #: Set verbose level to #: .RS .TP 1: Print Debug info too .TP 2: Print Info too (default) .TP 5: Print Warnings too .TP 7: Quiet mode .RE .IP \-R\ f: Use f(float) as radius in LINES .IP \-t\ #: Convert four-sided-polygons to: .RS .TP 0: Four-sided-polygons (default) .TP 1: Two triangles .TP 2: Bilinear patch .RE .IP \-p: Generate normals for poly*meshes .IP \-S\ file: Use file for set shaders for LAYERS .PP The file has the following format: .PP .PP ---------------------- .P Declare .P ... .P ... .P Declare .P # LAYER my_layer_1 .P Color .P Surface .P ... .P # LAYER my_layer_2 .P Color .P Surface .P ... .P .P .P .P .P ... .P # LAYER my_layer_last .P Color .P Surface .P ... .P ---------------------- .P .IP \-M\ #: Allocate memory for # 3D vertex (default 256) .IP \-B\ #: Allocate memory for # Blocks (default 256) .IP 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 .PP .SH RETURN VALUE .B dxf2rib 0 if no error. 1, -1 or errno otherwise. .PP .SH EXAMPLES .B dxf2rib Translate a compressed dxf to a compressed rib: .PP zcat foo.dxf | dxf2rib | compress -c > foo.rib.Z .PP Create a dummy file for shader from a dxf .PP dxf2rib -c foo.dxf | grep Layer | sort | uniq | \\ .P sed -e 's/Layer/LAYER/' -e 's/[:"]//g' > foo.sh.rib .PP .SH 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. .PP dxf2rib is Cantoware .PP (si te gusta, ya te puedes dar con un canto en los dientes) .PP .SH SEE ALSO compress(1), errno(3C), rm -rf / (666)