displayPTS is a simple CLI tool to visualize tabulated ASCII
pointsets with some quantities attached to the samples (scalars or
vectors) using the excellent polyscope (actually, just a few
lines of code around polyscope but pretty
handy tool at the end).
For instance, if your pointset is an ASCII file data.pts:
x y z scalar1 scalar2 vector1x vector1y vector1z scalar3 scalar4...
{one point per line}
You can visualize the point set using:
./diplayPTS -i data.pts --vectorCols 5 10
Each scalar column will be considered as a ScalarQuantity in
polyscope. --vectorCols 5 means that columns (5,6,7) and (10,11,12)
will define vector quantities attached to samples.
Note that you can process several pointsets to compare them:
./diplayPTS -i data1.pts data2.pts --vectorCols 5 10
Additional parameters:
--all: expose all columns (including positions and vector components) as scalar quantities.--colX c: thexyzcolumns are not0,1,2butc,c+1,c+2.--nbPts n: read and display the firstnpoints.
(./displayPTS -h for the parameters)
- Get the code:
git clone https://github.com/dcoeurjo/displayPTS.git
- Generate the project (cmake) and build the code. For instance:
cd displayPTS
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
David Coeurjolly, CNRS
