/redpoints

RedPoints is a visualization system aimed at plotting paths and points in 3-D via Ruby and OpenGL

Primary LanguageRuby

RedPoints

RedPoints is a Ruby library that allows the plotting of trajectories on an OpenGL view.

It is designed to run as a separate process, to which you connect via DRb within your application/command/utility/whatsoever.

At the moment, it only plots an array of coordinates as a sequence of straight segments. I’m planning to add support for drawing more complex objects.

Here’s the obligatory screenshot, taken from the parent GtoPDL2 project:

Run a basic test

First, launch the viewer:

$> ruby lib/redpoints.rb &

Then run the test:

$> ruby client_test.rb

The communication between the client and the viewer exploits the great DRb library (Distributed Ruby) through the TCP port 9000.
At the end, close the viewer by hitting ESC.