Add hole flag to output
This commit is contained in:
parent
af24dc6d24
commit
4346b42897
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue