pts_to_fil.m¶
Basic Information¶
PURPOSE:
convert a vector of points defined by xpt = [xpt,ypt,zpt]
to filaments xfil [x1,y1,z1,x2,y2,z2] from point to point.
This creats one less filament than the number of points
SYNTAX:
xfil= pts_to_fil(xpt)
INPUT:
xpt = coordinates of each point in 3-space. Contains 3 columns: [x,y,z]
OUTPUT:
xfil = filament constructed beteen points contining 6 columns
[x1,y1,z1,x2,y2,z2] where 1 is start of filament and 2 is end