mesh_conway_zip
-
compas.datastructures.
mesh_conway_zip
(mesh)[source] Generates the zip mesh from a seed mesh.
- Parameters
mesh (Mesh) – A seed mesh
- Returns
mesh – The zip mesh.
Examples
>>> mesh = Mesh.from_polyhedron(6) >>> zipp = mesh_conway_zip(mesh) >>> zipp.number_of_vertices() == 2 * mesh.number_of_edges() True >>> zipp.number_of_edges() == 3 * mesh.number_of_edges() True >>> zipp.number_of_faces() == mesh.number_of_vertices() + mesh.number_of_faces() True
References
- 1
Wikipedia. Conway polyhedron notation. Available at: https://en.wikipedia.org/wiki/Conway_polyhedron_notation.
- 2
Hart, George. Conway Notation for Polyhedron. Available at: http://www.georgehart.com/virtual-polyhedra/conway_notation.html.