8 import fields2cover
as f2c
11 assert pytest.approx(a) == pytest.approx(b)
15 ps1 = f2c.MultiPoint();
20 ps2 = f2c.MultiPoint(f2c.VectorPoint(
21 [f2c.Point(1,2), f2c.Point(3,2), f2c.Point(1,3)]));
24 ps3 = f2c.MultiPoint();
26 ps3.addPoint( i, -i, 3 * i);
29 for i
in range(ps3.size()):
30 p = ps3.getGeometry(i);
37 ps1 = f2c.MultiPoint(f2c.VectorPoint([
38 f2c.Point(1,2), f2c.Point(3,2,5), f2c.Point(1,3), f2c.Point(9,4, 0.2)]));
40 near(ps1.getGeometry(0).getX(), 1);
41 near(ps1.getGeometry(0).getY(), 2);
42 near(ps1.getGeometry(0).getZ(), 0);
43 near(ps1.getGeometry(3).getX(), 9);
44 near(ps1.getGeometry(3).getY(), 4);
45 near(ps1.getGeometry(3).getZ(), 0.2);
49 near(ps2.getGeometry(1).getX(), 3);
50 near(ps2.getGeometry(1).getY(), 2);
51 near(ps2.getGeometry(1).getZ(), 5);
52 near(ps2.getGeometry(2).getX(), 1);
53 near(ps2.getGeometry(2).getY(), 3);
54 near(ps2.getGeometry(2).getZ(), 0);