mesh_conway_dual
- compas.datastructures.mesh_conway_dual(mesh)[source]
Generates the dual 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) >>> dual = mesh_conway_dual(mesh) >>> dual.number_of_vertices() == mesh.number_of_faces() True >>> dual.number_of_edges() == mesh.number_of_edges() True >>> dual.number_of_faces() == mesh.number_of_vertices() True