EGI.collapse_edge
- EGI.collapse_edge(u, v, t=0.5, allow_boundary=False, fixed=None)
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, optional) – Determines where to collapse to. If
t == 0.0
collapse to u. Ift == 1.0
collapse to v. If0.0 < t < 1.0
, collapse to a point between u and v.allow_boundary (bool, optional) – If True, allow collapses involving boundary vertices.
fixed (list[int], optional) – A list of identifiers of vertices that should stay fixed.
- Returns
None
- Raises
ValueError – If u and v are not neighbors.