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
7e1aef22
Commit
7e1aef22
authored
Aug 16, 2013
by
Marco Mattila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix filleting of zones with parallel adjacent edges
parent
ddff71c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
PolyLine.cpp
polygon/PolyLine.cpp
+4
-0
No files found.
polygon/PolyLine.cpp
View file @
7e1aef22
...
...
@@ -448,6 +448,10 @@ CPolyLine* CPolyLine::Fillet( unsigned int aRadius, unsigned int aSegments )
double
radius
=
aRadius
;
double
denom
=
sqrt
(
2.0
/
(
1
+
cosine
)
-
1
);
// Do nothing in case of parallel edges
if
(
isinf
(
denom
)
)
continue
;
// Limit rounding distance to one half of an edge
if
(
0.5
*
lena
*
denom
<
radius
)
radius
=
0.5
*
lena
*
denom
;
...
...
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