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
d3932f5f
Commit
d3932f5f
authored
Feb 23, 2011
by
Marco Mattila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: Fix add similar/cutout zone. Fix zone corner smoothing for zones with cutouts.
parent
0f09b337
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
159 additions
and
264 deletions
+159
-264
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+2
-2
PolyLine.cpp
polygon/PolyLine.cpp
+153
-222
PolyLine.h
polygon/PolyLine.h
+4
-40
No files found.
pcbnew/zones_by_polygon.cpp
View file @
d3932f5f
...
...
@@ -65,7 +65,7 @@ void WinEDA_PcbFrame::Add_Similar_Zone( wxDC* DC, ZONE_CONTAINER* zone_container
// Use the general event handle to set others params (like toolbar) */
wxCommandEvent
evt
;
evt
.
SetId
(
ID_PCB_ZONES_BUTT
);
Process_Special_Functions
(
evt
);
OnSelectTool
(
evt
);
}
...
...
@@ -91,7 +91,7 @@ void WinEDA_PcbFrame::Add_Zone_Cutout( wxDC* DC, ZONE_CONTAINER* zone_container
// Use the general event handle to set others params (like toolbar) */
wxCommandEvent
evt
;
evt
.
SetId
(
ID_PCB_ZONES_BUTT
);
Process_Special_Functions
(
evt
);
OnSelectTool
(
evt
);
}
...
...
polygon/PolyLine.cpp
View file @
d3932f5f
This diff is collapsed.
Click to expand it.
polygon/PolyLine.h
View file @
d3932f5f
...
...
@@ -132,15 +132,6 @@ public:
void
Close
(
int
style
=
STRAIGHT
,
bool
bDraw
=
false
);
void
RemoveContour
(
int
icont
);
/**
* Function Chamfer
* chamfers a corner.
* @param aIndex is the corner index.
* @param aDistance is the chamfering distance.
* @return int - The number of segments added.
*/
int
Chamfer
(
unsigned
int
aIndex
,
unsigned
int
aDistance
);
/**
* Function Chamfer
* returns a chamfered version of a polygon.
...
...
@@ -149,17 +140,6 @@ public:
*/
CPolyLine
*
Chamfer
(
unsigned
int
aDistance
);
/**
* Function Fillet
* rounds a corner.
* @param aIndex is the corner index.
* @param aDistance is the fillet radius.
* @param aSegments is the number of segments / 360 degrees.
* @return int - The number of segments added.
*/
int
Fillet
(
unsigned
int
aIndex
,
unsigned
int
aRadius
,
unsigned
int
aSegments
);
/**
* Function Fillet
* returns a filleted version of a polygon.
...
...
@@ -200,22 +180,6 @@ public:
int
GetY
(
int
ic
);
int
GetEndContour
(
int
ic
);
/**
* Function GetEdgeLength
* returns the length of the edge starting at given corner index.
* @param aIndex is the corner index.
* @return unsigned int - the length of the edge.
*/
unsigned
int
GetEdgeLength
(
unsigned
int
aIndex
);
/**
* Function GetCosine
* returns the cosine between the two edge vectors at a corner.
* @param aIndex is the corner index.
* @return double - the cosine value.
*/
double
GetCosine
(
unsigned
int
aIndex
);
int
GetUtility
(
int
ic
)
{
return
corner
[
ic
].
utility
;
};
void
SetUtility
(
int
ic
,
int
utility
)
{
corner
[
ic
].
utility
=
utility
;
};
int
GetSideStyle
(
int
is
);
...
...
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