MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / new

Method new

splashsurf_lib/src/mesh.rs:258–262  ·  view source on GitHub ↗
(points: impl Into<Vec<Vector3<R>>>)

Source from the content-addressed store, hash-verified

256
257impl<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

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected