Commit ea11c013 authored by unknown's avatar unknown Committed by jean-pierre charras

fix bug in idfcyl utility

parent ec17455d
...@@ -350,9 +350,9 @@ void make_vcyl( bool inch, bool axial, double dia, double length, ...@@ -350,9 +350,9 @@ void make_vcyl( bool inch, bool axial, double dia, double length,
fprintf( fp, "0 0 0 0\n" ); fprintf( fp, "0 0 0 0\n" );
if( inch ) if( inch )
fprintf( fp, "0 %d 0 360\n", (int) (dia * 1000) ); fprintf( fp, "0 %d 0 360\n", (int) (dia * 500) );
else else
fprintf( fp, "0 %.3f 0 360\n", dia ); fprintf( fp, "0 %.3f 0 360\n", dia / 2.0 );
fprintf( fp, ".END_ELECTRICAL\n" ); fprintf( fp, ".END_ELECTRICAL\n" );
fclose( fp ); fclose( fp );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment