(points: impl Into<Vec<Vector3<R>>>)
| 256 | |
| 257 | impl<R: Real> PointCloud3d<R> { |
| 258 | pub fn new(points: impl Into<Vec<Vector3<R>>>) -> Self { |
| 259 | let points = points.into(); |
| 260 | let indices = (0..points.len()).collect(); |
| 261 | Self { points, indices } |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | /// Basic functionality that is provided by all meshes of the library |