mesh_conway_expand
- compas.datastructures.mesh_conway_expand(mesh)[source]
Generates the expand mesh from a seed mesh.
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.
Examples
>>> from compas.datastructures import Mesh >>> mesh = Mesh.from_polyhedron(6) >>> expa = mesh_conway_expand(mesh) >>> expa.number_of_vertices() == 2 * mesh.number_of_edges() True >>> expa.number_of_edges() == 4 * mesh.number_of_edges() True >>> expa.number_of_faces() == mesh.number_of_vertices() + mesh.number_of_faces() + mesh.number_of_edges() True