|
Adds a point as the last point of the track.
If the new added point is equal to the currently last point. The function will
return VR_ERROR and the point wont be added.
If this is a cyclic track then the added point must not also be
equal to the first point (index 0 )
Parameters:
track_handle: The track handle
pt: The X,Y,Z values to set for the given point index.
Return value:
Returns OK or VR_ERROR. VR_ERROR is returned if one of the neighboring points
is identicle (if it is a cyclic track then there will be two identicle points)
Example:
double p[3]={100,200,300};
DWORD my_track=STATE_track_create("My Track1", YES, NULL, 0);
STATE_track_add_point_to_end(my_track, p);
See also:
STATE_track_insert_point(), STATE_track_set_point()
|