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
32336225
Commit
32336225
authored
Aug 31, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed in plot: filled areas by segments not plotted (outlines only were plotted)
parent
c3fde304
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
plot_rtn.cpp
pcbnew/plot_rtn.cpp
+20
-3
No files found.
pcbnew/plot_rtn.cpp
View file @
32336225
...
@@ -547,7 +547,12 @@ void PlotFilledAreas( PLOTTER* plotter, ZONE_CONTAINER* aZone,
...
@@ -547,7 +547,12 @@ void PlotFilledAreas( PLOTTER* plotter, ZONE_CONTAINER* aZone,
imax
--
;
imax
--
;
// Plot all filled areas
/* Plot all filled areas: filled areas have a filled area and a thick outline
* we must plot the filled area itself ( as a filled polygon OR a set of segments )
* and plot the thick outline itself
*
* in non filled mode the outline is plotted, but not the filling items
*/
int
corners_count
=
0
;
int
corners_count
=
0
;
for
(
unsigned
ic
=
0
,
ii
=
0
;
ic
<
imax
;
ic
++
)
for
(
unsigned
ic
=
0
,
ii
=
0
;
ic
<
imax
;
ic
++
)
{
{
...
@@ -566,11 +571,23 @@ void PlotFilledAreas( PLOTTER* plotter, ZONE_CONTAINER* aZone,
...
@@ -566,11 +571,23 @@ void PlotFilledAreas( PLOTTER* plotter, ZONE_CONTAINER* aZone,
corners_count
++
;
corners_count
++
;
}
}
// Plot the current filled area outline
// Plot the current filled area
and its
outline
if
(
trace_mode
==
FILLED
)
if
(
trace_mode
==
FILLED
)
{
{
if
(
aZone
->
m_FillMode
==
0
)
// We are using solid polygons (if != 0: using segments in m_Zone)
// Plot the current filled area polygon
if
(
aZone
->
m_FillMode
==
0
)
// We are using solid polygons (if != 0: using segments )
plotter
->
poly
(
corners_count
,
CornersBuffer
,
FILLED_SHAPE
);
plotter
->
poly
(
corners_count
,
CornersBuffer
,
FILLED_SHAPE
);
else
// We are using areas filled by segments: plot hem )
{
for
(
unsigned
iseg
=
0
;
iseg
<
aZone
->
m_FillSegmList
.
size
();
iseg
++
)
{
wxPoint
start
=
aZone
->
m_FillSegmList
[
iseg
].
m_Start
;
wxPoint
end
=
aZone
->
m_FillSegmList
[
iseg
].
m_End
;
plotter
->
thick_segment
(
start
,
end
,
aZone
->
m_ZoneMinThickness
,
trace_mode
);
}
}
// Plot the current filled area outline
if
(
aZone
->
m_ZoneMinThickness
>
0
)
if
(
aZone
->
m_ZoneMinThickness
>
0
)
plotter
->
poly
(
corners_count
,
CornersBuffer
,
NO_FILL
,
plotter
->
poly
(
corners_count
,
CornersBuffer
,
NO_FILL
,
aZone
->
m_ZoneMinThickness
);
aZone
->
m_ZoneMinThickness
);
...
...
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