@@ -66,17 +66,17 @@ getgeom(t::AbstractGeometryTrait, geom) = (getgeom(t, geom, i) for i in 1:ngeom(
6666getcoord (t:: AbstractPointTrait , geom) = (getcoord (t, geom, i) for i in 1 : ncoord (t, geom))
6767
6868# # Npoints
69- npoint (:: LineTrait , _ ) = 2
70- npoint (:: TriangleTrait , _ ) = 3
71- nring (:: TriangleTrait , _ ) = 1
72- npoint (:: RectangleTrait , _ ) = 4
73- nring (:: RectangleTrait , _ ) = 1
74- npoint (:: QuadTrait , _ ) = 4
75- nring (:: QuadTrait , _ ) = 1
76- npoint (:: PentagonTrait , _ ) = 5
77- nring (:: PentagonTrait , _ ) = 1
78- npoint (:: HexagonTrait , _ ) = 6
79- nring (:: HexagonTrait , _ ) = 1
69+ npoint (:: LineTrait , geom ) = 2
70+ npoint (:: TriangleTrait , geom ) = 3
71+ nring (:: TriangleTrait , geom ) = 1
72+ npoint (:: RectangleTrait , geom ) = 4
73+ nring (:: RectangleTrait , geom ) = 1
74+ npoint (:: QuadTrait , geom ) = 4
75+ nring (:: QuadTrait , geom ) = 1
76+ npoint (:: PentagonTrait , geom ) = 5
77+ nring (:: PentagonTrait , geom ) = 1
78+ npoint (:: HexagonTrait , geom ) = 6
79+ nring (:: HexagonTrait , geom ) = 1
8080
8181issimple (:: AbstractCurveTrait , geom) =
8282 allunique ([getpoint (t, geom, i) for i in 1 : npoint (geom)- 1 ]) && allunique ([getpoint (t, geom, i) for i in 2 : npoint (t, geom)])
0 commit comments