mesh_conway_join
- compas.datastructures.mesh_conway_join(mesh)[source]
Generates the join mesh from a seed mesh.
- Parameters
mesh (Mesh) – A seed mesh
- Returns
Mesh – The join mesh.
Examples
>>> from compas.datastructures import Mesh >>> mesh = Mesh.from_polyhedron(6) >>> join = mesh_conway_join(mesh) >>> join.number_of_vertices() == mesh.number_of_vertices() + mesh.number_of_faces() True >>> join.number_of_edges() == 2 * mesh.number_of_edges() True >>> join.number_of_faces() == mesh.number_of_edges() 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.