-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support concave polygons for fillarea. * Test for fillarea concave. * Don't make doctest to avoid timeout.
- Loading branch information
1 parent
0a8ad62
commit 0aea5fb
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import basevcstest | ||
|
||
|
||
class TestVCSFillareaConcave(basevcstest.VCSBaseTest): | ||
def test(self): | ||
o = self.x.createfillarea() | ||
xs = [-70.0, -66.0, -62.0, -58.0, -54.0, -50.0, | ||
-46.0, -46.0, -50.0, -54.0, -58.0, -62.0, | ||
-66.0, -70.0] | ||
ys = [97.40004179212772, 99.24051369561087, 99.64501380920407, | ||
99.50791666242807, 99.25809764862053, 98.72724999321828, | ||
97.86243057250978, 66.1760279867384, 78.08891693751016, | ||
84.6064443588257, 75.83586128552756, 54.88270839055378, | ||
33.08841943740845, 32.207757042513954] | ||
o.x = xs | ||
o.y = ys | ||
o.worldcoordinate = [-70,-35,30,100] | ||
self.x.plot(o) | ||
self.checkImage("test_vcs_fillarea_concave.png") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters