Paul Sherman (paul++at++ht.com)
Fri, 14 Jun 1996 18:00:32 -0400 (EDT)
Nuno,
Here is a sort of mini-specification which is reverse hacked from the
source in Performer/src/lib/libpfutil/path.c:
1. each line must be less than 256 chars
2. '#' is used as a comment character
3. For a line segment, use the 'line' keyword. The format is:
line startx starty startz finalx finaly finalz
where the startx, starty, etc numbers are floats. The actual
code is:
sscanf(buffer, "%*s %f %f %f %f %f %f",
&start[PF_X], &start[PF_Y], &start[PF_Z],
&final[PF_X], &final[PF_Y], &final[PF_Z]) != 6)
4. For an arc segment, use the 'arc' keyword:
arc centerx centery centerz radius angle1 angle2
See the pfAddArc section of the man page on pfuPath for info.
5. For a fillet, use:
fillet radius
6. For speed, use:
speed desired rate
Again, see the man page for how to use this.
7. For delay, use:
delay delay_amt
8. To close the path, use
close
A very simple example, consisting of just line segments is:
# path file for a square
line 0.0 0.0 0.0 0.0 0.0 5.0
line 0.0 0.0 5.0 5.0 0.0 5.0
line 5.0 0.0 5.0 5.0 0.0 0.0
line 5.0 0.0 0.0 0.0 0.0 0.0
Or Alternately
# path file for a square
line 0.0 0.0 0.0 0.0 0.0 5.0
line 0.0 0.0 5.0 5.0 0.0 5.0
line 5.0 0.0 5.0 5.0 0.0 0.0
close
Hope that this helps.
Paul Sherman
High Techsplanations
paul++at++ht.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:00 PDT