1
0
Fork 0

Add hole flag to output

This commit is contained in:
curt 2002-02-25 15:18:06 +00:00
parent af24dc6d24
commit 4346b42897

View file

@ -62,6 +62,7 @@ void write_polygon( const FGPolygon& poly, const string& base ) {
sprintf(name, "%s%d", base.c_str(), i );
FILE *fp = fopen( name, "w" );
fprintf(fp, "hole = %d\n", poly.get_hole_flag(i));
for ( int j = 0; j < poly.contour_size( i ); ++j ) {
Point3D p0 = poly.get_pt(i, j);
fprintf(fp, "%.8f %.8f\n", p0.x(), p0.y());