Point Clouds
What would we do without point clouds? You can load one as simple as:
Builders
c++ PointCloud::Add(const vecs& X,scalar radius = -1);
c++ PointCloud::Add(const std::string& file,scalar radius = -1);
const std::string& filea.plyor.objfile, only its vertices are read
Single Point
A single point, with more features, can be added using
c++ Point::Add(const vec& x,scalar radius = -1);
c++ Point::Add(const DynamicParam& x,scalar radius = -1);
DynamicParam = std::function<vec(TimeObject)>the point follows a time-dependent position (wrapper for its updater)
VectorFieldQuantity Point->addVector(const vec& v)
- attaches a vector to the point, see polyscope quantities
Deck format
- cloud: scan.ply # a .ply or .obj file, relative to the data path
radius: scan_radius # a number, or a name to tune it live
normalize: true # rescale the cloud to fit the scene
color: [0.2, 0.4, 0.8]
It also takes the transform: of every scene item.