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
8be7f467
Commit
8be7f467
authored
Feb 10, 2010
by
viknn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added filling of junctions circles to EEschema DXF export
parent
738c90b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
common_plotDXF_functions.cpp
common/common_plotDXF_functions.cpp
+17
-4
No files found.
common/common_plotDXF_functions.cpp
View file @
8be7f467
...
@@ -92,10 +92,23 @@ void DXF_PLOTTER::circle( wxPoint centre, int diameter, FILL_T fill, int width )
...
@@ -92,10 +92,23 @@ void DXF_PLOTTER::circle( wxPoint centre, int diameter, FILL_T fill, int width )
if
(
radius
>
0
)
if
(
radius
>
0
)
{
{
wxString
cname
=
ColorRefs
[
current_color
].
m_Name
;
wxString
cname
=
ColorRefs
[
current_color
].
m_Name
;
if
(
!
fill
)
{
fprintf
(
output_file
,
"0
\n
CIRCLE
\n
8
\n
%s
\n
10
\n
%d.0
\n
20
\n
%d.0
\n
40
\n
%g
\n
"
,
fprintf
(
output_file
,
"0
\n
CIRCLE
\n
8
\n
%s
\n
10
\n
%d.0
\n
20
\n
%d.0
\n
40
\n
%g
\n
"
,
CONV_TO_UTF8
(
cname
),
CONV_TO_UTF8
(
cname
),
centre
.
x
,
centre
.
y
,
radius
);
centre
.
x
,
centre
.
y
,
radius
);
}
}
if
(
fill
==
FILLED_SHAPE
)
{
int
r
=
(
int
)(
radius
*
0.5
);
fprintf
(
output_file
,
"0
\n
POLYLINE
\n
"
);
fprintf
(
output_file
,
"8
\n
%s
\n
66
\n
1
\n
70
\n
1
\n
"
,
CONV_TO_UTF8
(
cname
));
fprintf
(
output_file
,
"40
\n
%g
\n
41
\n
%g
\n
"
,
radius
,
radius
);
fprintf
(
output_file
,
"0
\n
VERTEX
\n
8
\n
%s
\n
"
,
CONV_TO_UTF8
(
cname
));
fprintf
(
output_file
,
"10
\n
%d.0
\n
20
\n
%d.0
\n
42
\n
1.0
\n
"
,
centre
.
x
-
r
,
centre
.
y
);
fprintf
(
output_file
,
"0
\n
VERTEX
\n
8
\n
%s
\n
"
,
CONV_TO_UTF8
(
cname
));
fprintf
(
output_file
,
"10
\n
%d.0
\n
20
\n
%d.0
\n
42
\n
1.0
\n
"
,
centre
.
x
+
r
,
centre
.
y
);
fprintf
(
output_file
,
"0
\n
SEQEND
\n
"
);
}
}
}
}
...
...
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