@@ -128,13 +128,20 @@ test_point_in_region();
128
128
module test_make_region(){
129
129
pentagram = turtle(["move" ,100 ,"left" ,144 ], repeat= 4 );
130
130
region1 = make_region(pentagram);
131
- assert_approx( region1,
131
+ assert(are_regions_equal( region1,
132
132
[[[0 , 0 ], [38.196601125 , 0 ], [30.9016994375 , 22.451398829 ]], [[50 ,
133
133
36.3271264003 ], [19.0983005625 , 58.7785252292 ], [30.9016994375 ,
134
134
22.451398829 ]], [[69.0983005625 , 22.451398829 ], [50 , 36.3271264003 ],
135
135
[80.9016994375 , 58.7785252292 ]], [[61.803398875 , 3 .5527136788e- 15 ],
136
136
[69.0983005625 , 22.451398829 ], [100 , 0 ]], [[38.196601125 , 0 ],
137
- [61.803398875 , 3 .94430452611e- 31 ], [50 , - 36.3271264003 ]]]);
137
+ [61.803398875 , 3 .94430452611e- 31 ], [50 , - 36.3271264003 ]]]));
138
+ /* assert_approx(region1,
139
+ [[[0, 0], [38.196601125, 0], [30.9016994375, 22.451398829]], [[50,
140
+ 36.3271264003], [19.0983005625, 58.7785252292], [30.9016994375,
141
+ 22.451398829]], [[69.0983005625, 22.451398829], [50, 36.3271264003],
142
+ [80.9016994375, 58.7785252292]], [[61.803398875, 3.5527136788e-15],
143
+ [69.0983005625, 22.451398829], [100, 0]], [[38.196601125, 0],
144
+ [61.803398875, 3.94430452611e-31], [50, -36.3271264003]]]);*/
138
145
region2 = make_region(pentagram,nonzero= true );
139
146
assert_approx(region2,
140
147
[[[0 , 0 ], [38.196601125 , 0 ], [50 , - 36.3271264003 ],
0 commit comments