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.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Lissajous 10.01.13