<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=%24G%2Fsrc%2FjspBin%2Ftrail_contact_areas.txt</id>
	<title>$G/src/jspBin/trail contact areas.txt - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=%24G%2Fsrc%2FjspBin%2Ftrail_contact_areas.txt"/>
	<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=$G/src/jspBin/trail_contact_areas.txt&amp;action=history"/>
	<updated>2026-04-21T23:25:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=$G/src/jspBin/trail_contact_areas.txt&amp;diff=3570&amp;oldid=prev</id>
		<title>Andrew Forsberg: New page: &lt;pre&gt; We migrated the contact area code to Linux, under $G.  Here&#039;s how it works. All the executables are under   /map/gfx0/tools/linux/bin/jspBin  (aka $G/bin/jspBin) and /map/gfx0/tools/...</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=$G/src/jspBin/trail_contact_areas.txt&amp;diff=3570&amp;oldid=prev"/>
		<updated>2009-06-02T18:49:54Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;lt;pre&amp;gt; We migrated the contact area code to Linux, under $G.  Here&amp;#039;s how it works. All the executables are under   /map/gfx0/tools/linux/bin/jspBin  (aka $G/bin/jspBin) and /map/gfx0/tools/...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
We migrated the contact area code to Linux, under $G.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s how it works. All the executables are under  &lt;br /&gt;
/map/gfx0/tools/linux/bin/jspBin &lt;br /&gt;
(aka $G/bin/jspBin)&lt;br /&gt;
and /map/gfx0/tools/linux/src/jointViewer&lt;br /&gt;
&lt;br /&gt;
(The source code for /map/gfx0/tools/linux/bin/jspBin/ executables is&lt;br /&gt;
located in&lt;br /&gt;
/map/gfx0/users/gem/closest/)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Steps to visualize and gather statistics on joint contact areas&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
A.&lt;br /&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
** make a data directory (wherever, really) where you&amp;#039;ll put the patient specific data. For example, see:&lt;br /&gt;
&lt;br /&gt;
/u/gem/wrists/joint_space/joint_space_orig/&lt;br /&gt;
&lt;br /&gt;
The directory should contain:&lt;br /&gt;
a. the bone Geomagic meshes in OIv format, labeled &amp;lt;bone_tag&amp;gt;.iv&lt;br /&gt;
b. one animation file for each bone, labeled &amp;lt;bone_tag&amp;gt;_anim.RT&lt;br /&gt;
c. an anatomical coordinate system for each bone, labeled  &amp;lt;bone_tag&amp;gt;_coord.dat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
B.&lt;br /&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
** edit the batch files &amp;quot;joints_one_linux&amp;quot; and &amp;quot;joints_linux&amp;quot; (located in this directory) &lt;br /&gt;
as follows:&lt;br /&gt;
&lt;br /&gt;
   1. replace the &amp;quot;set data_directory =&amp;quot; line with&lt;br /&gt;
&lt;br /&gt;
             set data_directory = &amp;lt;path to the data directory you made&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   2. replace ra2 and ul2 with your bone tags&lt;br /&gt;
&lt;br /&gt;
   3. (&amp;quot;joints_one&amp;quot; only) replace x_cube, x_coef and the like, if need be&lt;br /&gt;
    (x_cube controls the resolution of the distance cube; x_coef extends the &lt;br /&gt;
    cube on each side by x_coef*100% times the diameter of the object)&lt;br /&gt;
&lt;br /&gt;
   4. (&amp;quot;joints&amp;quot;  only) replace the &amp;quot;-distMapHorizon 5.0&amp;quot; line with&lt;br /&gt;
  -distMapHorizon &amp;lt;up to how many mm. you want the contact area to be computed&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   5. (&amp;quot;joints&amp;quot;  only) replace the &amp;quot;-lineSpacing 1.0&amp;quot; line with&lt;br /&gt;
        -lineSpacing &amp;lt;how many mm. between contour lines&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C.&lt;br /&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
Linux&lt;br /&gt;
-----&lt;br /&gt;
** run joints_one&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** run joints; the stats will be printed in your data directory in files labeled&lt;br /&gt;
  &amp;lt;bone_tag&amp;gt;.out&lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
  &amp;lt;bone_tag&amp;gt;.out.anwar_style_stats&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want Leor&amp;#039;s stats instead, wherer in joints_linux it says&lt;br /&gt;
echo &amp;quot;Script for running jointViewer&amp;quot;&lt;br /&gt;
/map/gfx0/tools/linux/src/jointViewer/obj/jspJointStats  \&lt;br /&gt;
        -frequency 0.05 \&lt;br /&gt;
        -distMapHorizon 5.0 \&lt;br /&gt;
        -lineSpacing 1.0 \&lt;br /&gt;
        -correctNormals 1 \&lt;br /&gt;
        -showDistMap 1 \&lt;br /&gt;
        -showContours 1 \&lt;br /&gt;
        -showAnimation 1 \&lt;br /&gt;
        -lineColour 0.3 0.3 0.3 \&lt;br /&gt;
        -distMapColour 1.0 0.0 0.0 \&lt;br /&gt;
        2 \&lt;br /&gt;
        $bone_tag_1 \&lt;br /&gt;
        $bone_tag_2 \&lt;br /&gt;
        $data_directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
say instead&lt;br /&gt;
&lt;br /&gt;
/map/gfx0/tools/linux/bin/jspJointStats -frequency 0.05 -distMapHorizon 3.0 -lineSpacing 0.5 -showDistMap 1 -showContours 1 -showAnimation 1 -lineRaisedHt 0.1 -lineColour 0.0 0.5 0.5 -distMapColour 1.0 0.0 0.0 -silent 1 -correctNormals 1 -showCurvature 4 2 \&lt;br /&gt;
        $bone_tag_1 \&lt;br /&gt;
        $bone_tag_2 \&lt;br /&gt;
        $data_directory&lt;br /&gt;
&lt;br /&gt;
Voila. That&amp;#039;s all.&lt;br /&gt;
&lt;br /&gt;
If you must run Leor&amp;#039;s script for lots of subjects and poses, see&lt;br /&gt;
leor_hand_off.txt file in this directory.&lt;br /&gt;
&lt;br /&gt;
Old Linux/Solaris&lt;br /&gt;
------------------&lt;br /&gt;
Old stuff for Trey is in&lt;br /&gt;
/map/gfx1/common/hand/Nurbs_pipeline/for_trey/readme_pipeline&lt;br /&gt;
However Solaris libraries are weakened so the Solaris code won&amp;#039;t run anymore&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andrew Forsberg</name></author>
	</entry>
</feed>