pub fn register_point_cloud(
name: impl Into<String>,
points: Vec<Vec3>,
) -> PointCloudHandleExpand description
Registers a point cloud with polyscope.
Creates a new point cloud structure from the given points and registers it with the global state. Returns a handle for adding quantities and configuring appearance.
§Arguments
name- Unique name for this point cloudpoints- Vector of 3D point positions
§Panics
Panics if a structure with the same name already exists.
§Example
use polyscope_rs::*;
init().unwrap();
let pc = register_point_cloud("my points", vec![Vec3::ZERO, Vec3::X, Vec3::Y]);
pc.add_scalar_quantity("values", vec![0.0, 0.5, 1.0]);