OLD CODE
- Visualizing point clouds using open inventor libraries in
Linux.
To compile:
>>make ShowInvPts.
The executable is named ShowInvPts
You may need to change the path of the Open Inventor (variable
INVENTOR_ROOT) libraries in the Makefile.
Run the program as follows:
>>ShowInvPts 0 1 0 <r> <g> <b> <ptx
filename1> <ptx
filename2> ...
For example: ShowInvPts 0 1 0 1 0 0 small_example.ptx (the point cloud
small_example.ptx is displayed with red color).
Data files can be found here.
NEW
CODE
- Visualizing point clouds using open inventor libraries in Linux
- Linux source code
- To compile: make ShowInvPts
- The executable is named ShowInvPts
- You may need to change the path of the Open Inventor (variable
INVENTOR_ROOT) libraries in the Makefile.
- You will need to change the path EXEC_DIR (directory where
executable is placed)
- Run as follows:
- ShowInvPts <R> <G> <B> <Ptx file>
- Example: ShowInvPts 1 0 0 small_example.ptx
(the point cloud
small_example.ptx is displayed with red color).
- This program opens a second window with two buttons
- Pressing the ShowCoordSystem button will display the 3-axis
of the coordinate system
- Pressing the PrintIvFile will save the inventor scene in the
file THE_SCENE.iv
- THE_SCENE.iv is placed in the directory from where you run
the progam.
- You can visualize THE_SCENE.iv with the program ivview
(comes with the inventor distribution)
- Visualizing point clouds using open inventor libraries in
Linux (simpler)
- Linux source code
- It has the same functionality as the previous
visualization code.
- The difference is that the second window does not come up.
- Read this code first so that you are not confused with the
XWindows code embedded in the previous visualization progam.
- Picking points from an Inventor
Scene
- Linux source code
- To compile: make SelectPoints
- The executable is named SelectPoints
- You may need to change the path of the Open Inventor (variable
INVENTOR_ROOT) libraries in the Makefile.
- You will need to change the path EXEC_DIR (directory where
executable is placed)
- Run as follows:
- SelectPoints <inventor_file>
- For example: SelectPoints THE_SCENE.iv
- An examiner viewer with the inventor scene will come up.
- Select the "arrow icon" in the upper right corner.
- Then click on a point in the scene
- A blue sphere will appear at the place you clicked
- The coordinates of the clicked point will appear on your
terminal
- You can pick as many points you want