mesh_collapse_edge
- compas.datastructures.mesh_collapse_edge(mesh, u, v, t=0.5, allow_boundary=False, fixed=None)[source]
Collapse an edge to its first or second vertex, or to an intermediate point.
- Parameters
mesh (compas.datastructures.Mesh) – Instance of a mesh.
u (str) – The first vertex of the (half-) edge.
v (str) – The second vertex of the (half-) edge.
t (float (0.5)) – Determines where to collapse to. If t == 0.0 collapse to u. If t == 1.0 collapse to v. If 0.0 < t < 1.0, collapse to a point between u and v.
allow_boundary (bool (False)) – Allow collapses involving boundary vertices.
fixed (list (None)) – A list of identifiers of vertices that should stay fixed.
- Returns
None
- Raises
ValueError – If u and v are not neighbors.