3D points of a segment
Posted: Tue Apr 04, 2006 7:05 pm
Hi all,
I am trying to understand how 3D morphological points for a given segment can be correlated with compartments of the segment.
For example, if we have the following scenario
create a
access a
pt3dclear()
pt3dadd(x1, y1, z1, diam1)
...
pt3dadd(x10,y10, z10, diam10)
In that case segment "a" has ten 3D points. Does point (x1,y1,z1) correspond to the "0" end of the segment and (x10,y10,z10) correspond to the "1" end of the segment? Does each point correspond to 0.1 increments of a, i.e. the 2nd point corresponds to a(0.1), the 3rd point to a(0.2), etc.
If yes, then the coordinates of the middle (0.5) of the segment should be given by interpolating (x5,y5,z5) and (x6,y6,z6)? Is there a function that returns the interpolated value automatically, so that one can get the 3d
coordinates of a(0.5) or a(0.8)?
Thank you in advance.
I am trying to understand how 3D morphological points for a given segment can be correlated with compartments of the segment.
For example, if we have the following scenario
create a
access a
pt3dclear()
pt3dadd(x1, y1, z1, diam1)
...
pt3dadd(x10,y10, z10, diam10)
In that case segment "a" has ten 3D points. Does point (x1,y1,z1) correspond to the "0" end of the segment and (x10,y10,z10) correspond to the "1" end of the segment? Does each point correspond to 0.1 increments of a, i.e. the 2nd point corresponds to a(0.1), the 3rd point to a(0.2), etc.
If yes, then the coordinates of the middle (0.5) of the segment should be given by interpolating (x5,y5,z5) and (x6,y6,z6)? Is there a function that returns the interpolated value automatically, so that one can get the 3d
coordinates of a(0.5) or a(0.8)?
Thank you in advance.