Block.collapse_edge
- Block.collapse_edge(edge, 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.
- edgetuple[int, int]
The identifier of the edge.
- tfloat, optional
Determines where to collapse to. If
t == 0.0
collapse to start of the edge. Ift == 1.0
collapse to end of the edge. If0.0 < t < 1.0
, collapse to a point between start and end of the edge.- allow_boundarybool, optional
If True, allow collapses involving boundary vertices.
- fixedlist[int], optional
A list of identifiers of vertices that should stay fixed.
- mesh
- Returns:
- None
- Raises:
- ValueError
If the edge is not part of the mesh.