Graphics.PONGRockExportTool - lordmundi/wikidoctest GitHub Wiki
This tool allows you to export information about selected rocks in the scene, possibly to be consumed by something such as a sim in order to coordinate position and geometry and rocks between the sim and graphics. This tool was initially written to support a contact dynamics engine called "PONG".
- pong_rock_export_140701.tgz (07/01/2014) - Initial Version
-
Download tgz file and extract into your $USERDATA directory.
-
Add the pong_rock_export.tcl script to your display context GUI block
rock_export "${USERDATA}/gui/pong_rock_export.tcl"
- The GUI is somewhat self explanatory. The section at the top has some basic health checks to make sure the dsp_info plugin has loaded correctly and that it is finding rocks in your scene.
- Type in the name of the node you want to search for rocks near. The field will remain highlighted yellow until a valid node name is typed in.
- Adjust the radius in inches for how far around the above node you want to select rocks
- Type in the name of the node which is the frame you want the rocks exported in.
- Hit Select. You can also highlight the rocks that are selected to better visualize what you are selecting for export.
- Once the selection of rocks is as you want it, hit the Export button and specify what file you would like to store the output information in.
-
The file that is exported consists of the following fields. Please note that lines that begin with "#" are considered a comment.
<node_name> <model_filename>
Contact Frank Graffagnino if any updates are made or if you have requested changes.