mesh_conway_needle
- compas.datastructures.mesh_conway_needle(mesh)[source]
Generates the needle mesh from a seed mesh.
- Parameters:
- mesh
compas.datastructures.Mesh
A seed mesh
- mesh
- Returns:
compas.datastructures.Mesh
The needle 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) >>> needle = mesh_conway_needle(mesh) >>> needle.number_of_vertices() == mesh.number_of_vertices() + mesh.number_of_faces() True >>> needle.number_of_edges() == 3 * mesh.number_of_edges() True >>> needle.number_of_faces() == 2 * mesh.number_of_edges() True