mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-19 18:31:40 +00:00
STEP exporter: export solder mask on tracks having a solder mask option.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18881
This commit is contained in:
parent
bbea339279
commit
11f94283ef
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (C) 2022 Mark Roszko <mark.roszko@gmail.com>
|
||||
* Copyright (C) 2016 Cirilo Bernardo <cirilo.bernardo@gmail.com>
|
||||
* Copyright (C) 2016-2024 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2016-2025 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@ -392,6 +392,25 @@ bool EXPORTER_STEP::buildTrack3DShape( PCB_TRACK* aTrack, VECTOR2D aOrigin )
|
||||
|
||||
int maxError = m_board->GetDesignSettings().m_MaxError;
|
||||
|
||||
if( m_params.m_ExportSoldermask )
|
||||
{
|
||||
if( aTrack->IsOnLayer( F_Mask ) )
|
||||
{
|
||||
SHAPE_POLY_SET poly;
|
||||
aTrack->TransformShapeToPolygon( poly, F_Mask, 0, maxError, ERROR_INSIDE );
|
||||
|
||||
m_poly_shapes[F_Mask].Append( poly );
|
||||
}
|
||||
|
||||
if( aTrack->IsOnLayer( B_Mask ) )
|
||||
{
|
||||
SHAPE_POLY_SET poly;
|
||||
aTrack->TransformShapeToPolygon( poly, B_Mask, 0, maxError, ERROR_INSIDE );
|
||||
|
||||
m_poly_shapes[B_Mask].Append( poly );
|
||||
}
|
||||
}
|
||||
|
||||
if( aTrack->Type() == PCB_VIA_T )
|
||||
{
|
||||
PCB_VIA* via = static_cast<PCB_VIA*>( aTrack );
|
||||
|
Loading…
Reference in New Issue
Block a user