Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
9191f28a
Commit
9191f28a
authored
Feb 27, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specctra_export to handle Edge Cuts graphics in modules
parent
a9fbce5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
specctra_export.cpp
pcbnew/specctra_export.cpp
+6
-13
No files found.
pcbnew/specctra_export.cpp
View file @
9191f28a
...
...
@@ -772,31 +772,24 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER
// get all the DRAWSEGMENTS into 'items', then look for layer == EDGE_N,
// and those segments comprise the board's perimeter.
static
const
KICAD_T
scan
DRAWSEGMENTS
[]
=
{
PCB_LIN
E_T
,
EOT
};
static
const
KICAD_T
scan
_graphics
[]
=
{
PCB_LINE_T
,
PCB_MODULE_EDG
E_T
,
EOT
};
items
.
Collect
(
aBoard
,
scanDRAWSEGMENTS
);
bool
haveEdges
=
false
;
items
.
Collect
(
aBoard
,
scan_graphics
);
for
(
int
i
=
0
;
i
<
items
.
GetCount
();
)
{
DRAWSEGMENT
*
item
=
(
DRAWSEGMENT
*
)
items
[
i
];
wxASSERT
(
item
->
Type
()
==
PCB_LINE_T
);
if
(
item
->
GetLayer
()
!=
EDGE_N
)
if
(
items
[
i
]
->
GetLayer
()
!=
EDGE_N
)
{
items
.
Remove
(
i
);
}
else
else
// remove graphics not on EDGE_N layer
{
haveEdges
=
true
;
++
i
;
D
(
item
->
Show
(
0
,
std
::
cout
);)
}
}
if
(
haveEdges
)
if
(
items
.
GetCount
()
)
{
PATH
*
path
=
new
PATH
(
boundary
);
boundary
->
paths
.
push_back
(
path
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment