Converts IRIT geometry into the HL Graphics Language used by HP's plotters.
irit2hgl [-t XTrans YTrans] [-I #UIso[:#VIso[:#WIso]]]
[-f PolyOpti SampPerCrv] [-F PolyOpti FineNess] [-M] [-G] [-T]
[-i] [-o OutName] [-z] DFiles
-t XTrans YTrans: X and Y translation. of the image. Default is (0, 0). -I #UIso[:#VIso]: Specifies the number of isolines per surface, per direction. If #VIso is not specified, #UIso is used for #VIso as well. -f PolyOpti SampPerCrv: Controls the method used to approximate curves into polylines. If PolyOpti == 0, equally spaced intervals are used. Otherwise, an adaptive subdivision that optimizes the samples is employed. -F PolygonOpti FineNess: Optimality of polygonal approximation of surfaces. See the variable POLY_APPROX_OPT for the meaning of FineNess. See also -4. This enforces the dump of freefrom geometry as polygons. -M: Dumps the control mesh/polygon as well. -G: Dumps the freeform geometry. -T: Talkative mode. Prints processing information. -i: Internal edges (created by IRIT) - default is not to display them, and this option will force displaying them as well. -o OutName: Name of output file. By default the name of the first data file from DFiles list is used. See below on the output files. -z: Prints version number and current defaults.
Irit2Hgl converts freeform surfaces and polygons into polylines in a format that can be used by HPGL.
Example:
irit2Hgl -M -f 0 16 saddle.dat > saddle.hgl
However, one can overwrite the viewing matrix by appending a new matrix in the end of the command line, created by the display devices:
x11drvs b58.dat
irit2Hgl -M -f 0 16 b58.dat irit.mat > saddle.hgl
where irit.mat is the viewing matrix created by x11drvs.