Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

displayPTS

Linux/Mac/Windows build

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: the xyz columns are not 0,1,2 but c,c+1,c+2.
  • --nbPts n: read and display the first n points.

(./displayPTS -h for the parameters)

Building

  • 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

Author

David Coeurjolly, CNRS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages