mesh_conway_snub

compas.datastructures.mesh_conway_snub(mesh)[source]

Generates the snub mesh from a seed mesh.

Parameters:
meshcompas.datastructures.Mesh

A seed mesh

Returns:
compas.datastructures.Mesh

The gyro mesh.

References

Based on [1] and [2].

[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)
>>> snub = mesh_conway_snub(mesh)
>>> snub.number_of_vertices() == 2 * mesh.number_of_edges()
True
>>> snub.number_of_edges() == 5 * mesh.number_of_edges()
True
>>> snub.number_of_faces() == mesh.number_of_vertices() + mesh.number_of_faces() + 2 * mesh.number_of_edges()
True