IDF tool export: fixes a bug in the idf2vrml tool which results in the incorrect rendering of OTHER_OUTLINE sections which are placed on the bottom layer.
This commit is contained in:
parent
17d900411f
commit
508a9b2f06
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue