|
1 | 1 | @testset "Processes" begin |
2 | | - seg = Segment((0.0,0.0), (11.3,11.3)) |
| 2 | + seg = Segment((0.0, 0.0), (11.3, 11.3)) |
3 | 3 | tri = Triangle((0.0, 0.0), (5.65, 0.0), (5.65, 5.65)) |
4 | | - quad = Quadrangle((0.0,0.0), (0.0,4.0), (4.0, 4.0), (4.0, 0.0)) |
5 | | - box = Box((0.0,0.0), (4.0, 4.0)) |
6 | | - ball = Ball((1.0,1.0), 2.25) |
7 | | - outer = Point2[(0,-4),(4,-1),(4,1.5),(0,3)] |
8 | | - hole1 = Point2[(0.2,-0.2),(1.4,-0.2),(1.4,0.6),(0.2,0.6)] |
9 | | - hole2 = Point2[(2,-0.2),(3,-0.2),(3,0.4),(2,0.4)] |
| 4 | + quad = Quadrangle((0.0, 0.0), (0.0, 4.0), (4.0, 4.0), (4.0, 0.0)) |
| 5 | + box = Box((0.0, 0.0), (4.0, 4.0)) |
| 6 | + ball = Ball((1.0, 1.0), 2.25) |
| 7 | + outer = Point2[(0, -4), (4, -1), (4, 1.5), (0, 3)] |
| 8 | + hole1 = Point2[(0.2, -0.2), (1.4, -0.2), (1.4, 0.6), (0.2, 0.6)] |
| 9 | + hole2 = Point2[(2, -0.2), (3, -0.2), (3, 0.4), (2, 0.4)] |
10 | 10 | poly = PolyArea(outer, [hole1, hole2]) |
11 | | - grid = CartesianGrid((0,0), (4,4), dims = (10, 10)) |
| 11 | + grid = CartesianGrid((0, 0), (4, 4), dims=(10, 10)) |
12 | 12 | points = Point2[(0, 0), (4.5, 0), (0, 4.2), (4, 4.3), (1.5, 1.5)] |
13 | 13 | connec = connect.([(1, 2, 5), (2, 4, 5), (4, 3, 5), (3, 1, 5)], Triangle) |
14 | 14 | mesh = SimpleMesh(points, connec) |
|
48 | 48 | pp = rand(p, g) |
49 | 49 | @test all(∈(g), pp) |
50 | 50 | # custom thinnedsampling using λmax |
51 | | - pp = rand(p, g, algo = PointPatterns.ThinnedSampling(λ(Point2(12.0, 12.0)))) |
| 51 | + pp = rand(p, g, algo=PointPatterns.ThinnedSampling(λ(Point2(12.0, 12.0)))) |
52 | 52 | @test all(∈(g), pp) |
53 | 53 | # discretizedsampling |
54 | 54 | g = discretize(g) |
55 | | - pp = rand(p, g, algo = PointPatterns.DiscretizedSampling()) |
| 55 | + pp = rand(p, g, algo=PointPatterns.DiscretizedSampling()) |
56 | 56 | @test all(∈(g), g) |
57 | 57 | end |
58 | 58 |
|
|
0 commit comments