diff --git a/utils/idftools/idf2vrml.cpp b/utils/idftools/idf2vrml.cpp index 8eb2536f11..df66e4b411 100644 --- a/utils/idftools/idf2vrml.cpp +++ b/utils/idftools/idf2vrml.cpp @@ -932,11 +932,6 @@ bool MakeOtherOutlines( IDF3_BOARD& board, std::ofstream& file ) { pout = sc->second; - if( pout->GetSide() == IDF3::LYR_BOTTOM ) - bottom = true; - else - bottom = false; - if( pout->GetThickness() < 0.00000001 && nozeroheights ) { vpcb.Clear(); @@ -946,7 +941,7 @@ bool MakeOtherOutlines( IDF3_BOARD& board, std::ofstream& file ) vcp = GetColor( cmap, cidx, pout->GetOutlineIdentifier() ); - if( !PopulateVRML( vpcb, pout->GetOutlines(), bottom, + if( !PopulateVRML( vpcb, pout->GetOutlines(), false, board.GetUserScale(), 0, 0, 0 ) ) { return false; @@ -961,6 +956,11 @@ bool MakeOtherOutlines( IDF3_BOARD& board, std::ofstream& file ) vpcb.Tesselate( NULL ); + if( pout->GetSide() == IDF3::LYR_BOTTOM ) + bottom = true; + else + bottom = false; + if( bottom ) { top = -thick;