MCPcopy Create free account
hub / github.com/Fields2Cover/Fields2Cover / create_polygon

Function create_polygon

tests/python/utils/visualizer_test.py:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 assert pytest.approx(a) == pytest.approx(b)
13
14def create_polygon():
15 poly = f2c.Cell();
16 line = f2c.LinearRing();
17 line.addPoint(-10, 0);
18 line.addPoint(-10, 20);
19 line.addPoint(10, 20);
20 line.addPoint(10, 0);
21 line.addPoint(-10, 0);
22 poly.addRing(line);
23 return poly;
24
25def test_fields2cover_utils_visualizer_plotCell():
26 line1 = f2c.LineString();

Calls 4

addPointMethod · 0.95
addRingMethod · 0.95
CellMethod · 0.80
LinearRingMethod · 0.80

Tested by

no test coverage detected