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

Fix bug in IDF export (plus minor cleaning up of IDF/VRML export)

parent d84567ae
...@@ -439,10 +439,13 @@ static void idf_export_module( BOARD* aPcb, MODULE* aModule, ...@@ -439,10 +439,13 @@ static void idf_export_module( BOARD* aPcb, MODULE* aModule,
comp->SetPosition( aModule->GetPosition().x * scale + dx, comp->SetPosition( aModule->GetPosition().x * scale + dx,
-aModule->GetPosition().y * scale + dy, -aModule->GetPosition().y * scale + dy,
rotz, IDF3::LYR_TOP ); rotz, IDF3::LYR_TOP );
else else
comp->SetPosition( aModule->GetPosition().x * scale + dx, comp->SetPosition( aModule->GetPosition().x * scale + dx,
-aModule->GetPosition().y * scale + dy, -aModule->GetPosition().y * scale + dy,
rotz, IDF3::LYR_BOTTOM ); rotz, IDF3::LYR_BOTTOM );
comp->SetPlacement( IDF3::PS_ECAD );
} }
else else
{ {
......
...@@ -728,7 +728,8 @@ void IDF3_COMP_OUTLINE_DATA::writePlaceData( std::ofstream& aBoardFile, ...@@ -728,7 +728,8 @@ void IDF3_COMP_OUTLINE_DATA::writePlaceData( std::ofstream& aBoardFile,
if( aPlacement == PS_INVALID ) if( aPlacement == PS_INVALID )
{ {
ERROR_IDF << "placement invalid; defaulting to PLACED\n"; ERROR_IDF << "placement invalid (" << aRefDes << ":";
std::cerr << aPlacement << "); defaulting to PLACED\n";
aPlacement = PS_PLACED; aPlacement = PS_PLACED;
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
// a closed loop as assumed for all other outlines. // a closed loop as assumed for all other outlines.
// 3. a scheme is needed to tell a castellated edge from a plain board edge // 3. a scheme is needed to tell a castellated edge from a plain board edge
#include <iostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <iomanip> #include <iomanip>
......
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