spade icon indicating copy to clipboard operation
spade copied to clipboard

Make DelaunayTriangulation clone?

Open acshi opened this issue 2 years ago • 0 comments

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?

acshi avatar Apr 27 '22 21:04 acshi