spade
spade copied to clipboard
Make DelaunayTriangulation clone?
In some testing code, I found it useful to keep around a less-modified copy of a DelaunayTriangulation, and was surprised it isn't clone! This could be probably be added trivially?
In the mean time I am doing the following as a workaround:
DelaunayTriangulation::<Point>::bulk_load(
triangulation
.vertices()
.map(|v| v.data().clone())
.collect(),
Alternatively, is there a better workaround suggestion?