trimesh_split_edge
- compas.datastructures.trimesh_split_edge(mesh, u, v, t=0.5, allow_boundary=False)[source]
Split an edge of a triangle mesh.
- Parameters
mesh (compas.datastructures.Mesh) – Instance of a mesh.
u (hashable) – Identifier of the first vertex.
v (hashable) – Identifier of the second vertex.
t (float (0.5)) – The location of the split point along the original edge. The value should be between 0.0 and 1.0
allow_boundary (bool (False)) – Allow splits on boundary edges.
Notes
This operation only works as expected for triangle meshes.
Examples
>>>