Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
kicad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
KiCad
KiCad Source Code
kicad
Commits
636d0098
Commit
636d0098
authored
3 years ago
by
aris-kimi
Committed by
Seth Hillbrand
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added footprint rule area anchors
Fixes
#10461
(cherry picked from commit
47c0672f
)
parent
7d96d594
No related branches found
No related tags found
Loading
Pipeline
#508821585
passed
2 years ago
Stage: build
Stage: test
Stage: report
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pcbnew/tools/pcb_grid_helper.cpp
+19
-1
19 additions, 1 deletion
pcbnew/tools/pcb_grid_helper.cpp
with
19 additions
and
1 deletion
pcbnew/tools/pcb_grid_helper.cpp
+
19
−
1
View file @
636d0098
...
...
@@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2014 CERN
* Copyright (C) 2018-202
1
KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2018-202
2
KiCad Developers, see AUTHORS.txt for contributors.
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
*
* This program is free software; you can redistribute it and/or
...
...
@@ -683,6 +683,24 @@ void PCB_GRID_HELPER::computeAnchors( BOARD_ITEM* aItem, const VECTOR2I& aRefPos
break
;
}
case
PCB_FP_ZONE_T
:
{
const
SHAPE_POLY_SET
*
outline
=
static_cast
<
const
FP_ZONE
*>
(
aItem
)
->
Outline
();
SHAPE_LINE_CHAIN
lc
;
lc
.
SetClosed
(
true
);
for
(
auto
iter
=
outline
->
CIterateWithHoles
();
iter
;
iter
++
)
{
addAnchor
(
*
iter
,
CORNER
,
aItem
);
lc
.
Append
(
*
iter
);
}
addAnchor
(
lc
.
NearestPoint
(
aRefPos
),
OUTLINE
,
aItem
);
break
;
}
case
PCB_DIM_ALIGNED_T
:
case
PCB_DIM_ORTHOGONAL_T
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment