mesh_conway_bevel

compas.datastructures.mesh_conway_bevel(mesh)[source]

Generates the bevel mesh from a seed mesh.

Parameters

mesh (Mesh) – A seed mesh

Returns

mesh – The bevel mesh.

Examples

>>> from compas.datastructures import Mesh
>>> mesh = Mesh.from_polyhedron(6)
>>> bevl = mesh_conway_bevel(mesh)
>>> bevl.number_of_vertices() == 4 * mesh.number_of_edges()
True
>>> bevl.number_of_edges() == 6 * mesh.number_of_edges()
True
>>> bevl.number_of_faces() == mesh.number_of_vertices() + mesh.number_of_faces() + mesh.number_of_edges()
True

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.