@@ -232,12 +232,17 @@ def test_area_triangle(triangle, R):
232232
233233def test_area_polygon ():
234234 # create a test closed (here planar xy) non-convex polygon :
235- polygon = Polygon ([Point (- 7 , - 15 , 0 ), Point (- 5 , 9 , 0 ), Point (13 , 0 , 0 ), Point (0 , - 2 , 0 ), Point (0 , - 6 , 0 ), Point (- 4 , - 10 , 0 )])
235+ polygon = Polygon (
236+ [Point (- 7 , - 15 , 0 ), Point (- 5 , 9 , 0 ), Point (13 , 0 , 0 ), Point (0 , - 2 , 0 ), Point (0 , - 6 , 0 ), Point (- 4 , - 10 , 0 )]
237+ )
236238 assert area_polygon (polygon ) >= 0
237239 # the same polygon with vertices list shifted by 3 positions :
238- polygon_ = Polygon ([Point (0 , - 2 , 0 ), Point (0 , - 6 , 0 ), Point (- 4 , - 10 , 0 ), Point (- 7 , - 15 , 0 ), Point (- 5 , 9 , 0 ), Point (13 , 0 , 0 )])
240+ polygon_ = Polygon (
241+ [Point (0 , - 2 , 0 ), Point (0 , - 6 , 0 ), Point (- 4 , - 10 , 0 ), Point (- 7 , - 15 , 0 ), Point (- 5 , 9 , 0 ), Point (13 , 0 , 0 )]
242+ )
239243 assert area_polygon (polygon_ ) >= 0
240244
245+
241246# ==============================================================================
242247# normals
243248# ==============================================================================\
0 commit comments