08.08.14, 15:24
Hi all,
I'm wondering what the difference between segments and curves is. Say, myPath is some selected path then both
for (var i=0; i < myPath.segments.length; i++) {
print(myPath.segments[i]);
}
and
for (var i=0; i < myPath.curves.length; i++) {
print(myPath.curves[i]);
}
yield similar console output. So what's the preferred way to access the individual pieces of a path if I want to compute some stuff while traversing each piece parametrically? How can I tell that some piece is merely a straight line (other than that curve.handle1 apparently returns the origin)?
Many thanks for your help,
Austin