Sg2.9
Difference between segment an...
Recent RSS
Difference between segment and curve
From:  Austin
Date:  25. August 2010, 08:13

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

Scripts
08.01.12, 08:40
08.01.12, 08:18
04.01.12, 11:04
28.12.11, 10:42
16.11.11, 09:40
28.10.11, 10:47
Posts
08.02.12, 19:16
07.02.12, 20:47
07.02.12, 17:54
04.02.12, 16:55
04.02.12, 16:32
04.02.12, 12:49
Script of the Moment
Newton Curve 08.09.11
Donation

If you use Scriptographer regularly or for commercial purposes, please consider making a donation via PayPal:

Thank you!