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
409d014f
Commit
409d014f
authored
May 26, 2009
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
werner's patch
parent
497cb9f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
export_to_pcbnew.cpp
gerbview/export_to_pcbnew.cpp
+13
-0
No files found.
gerbview/export_to_pcbnew.cpp
View file @
409d014f
...
@@ -165,6 +165,19 @@ static int SavePcbFormatAscii( WinEDA_GerberFrame* frame, FILE* aFile,
...
@@ -165,6 +165,19 @@ static int SavePcbFormatAscii( WinEDA_GerberFrame* frame, FILE* aFile,
drawitem
->
m_End
=
track
->
m_End
;
drawitem
->
m_End
=
track
->
m_End
;
drawitem
->
m_Width
=
track
->
m_Width
;
drawitem
->
m_Width
=
track
->
m_Width
;
if
(
track
->
m_Shape
==
S_ARC
)
{
double
cx
=
track
->
m_Param
;
double
cy
=
track
->
GetSubNet
();
double
a
=
atan2
(
track
->
m_Start
.
y
-
cy
,
track
->
m_Start
.
x
-
cx
);
double
b
=
atan2
(
track
->
m_End
.
y
-
cy
,
track
->
m_End
.
x
-
cx
);
drawitem
->
m_Shape
=
S_ARC
;
drawitem
->
m_Angle
=
fmod
(
(
a
-
b
)
/
M_PI
*
1800.0
+
3600.0
,
3600.0
);
drawitem
->
m_Start
.
x
=
cx
;
drawitem
->
m_Start
.
y
=
cy
;
}
pcb
->
Add
(
drawitem
);
pcb
->
Add
(
drawitem
);
}
}
else
else
...
...
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