We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0123782 commit 45e900eCopy full SHA for 45e900e
1 file changed
tests/compas/datastructures/test_mesh.py
@@ -340,6 +340,23 @@ def test_to_lines():
340
assert len(lines) == mesh.number_of_edges()
341
342
343
+def test_to_points():
344
+ # tri
345
+ mesh = Mesh.from_shape(Polyhedron.from_platonicsolid(4))
346
+ points = mesh.to_points()
347
+ assert len(points) == 4
348
+
349
+ # quad
350
+ mesh = Mesh.from_shape(Polyhedron.from_platonicsolid(6))
351
352
+ assert len(points) == 8
353
354
+ # ngon
355
+ mesh = Mesh.from_shape(Polyhedron.from_platonicsolid(12))
356
357
+ assert len(points) == 20
358
359
360
# --------------------------------------------------------------------------
361
# helpers
362
0 commit comments