Mathematically created line

Mathematically created line

codefoster
Advocate Advocate
1,099 Views
5 Replies
Message 1 of 6

Mathematically created line

codefoster
Advocate
Advocate

If a person wanted to create a line using a mathematical algorithm via the JavaScript API, how would that go? I'm thinking it would be hard, because it would not necessarily be a simple array of points run through the function, but would also have to be converted to a F360's line with handles and curves. Is there an elegant way to do this? I'm thinking of recreating the grooves in a project like [this].

 

0 Likes
Accepted solutions (1)
1,100 Views
5 Replies
Replies (5)
Message 2 of 6

ekinsb
Alumni
Alumni
Accepted solution

Mathemattically, a line is a straight segment between two points.  I think what you want is a curve.  You can create a spline through a series of points.  This is demonstrated in the sample in Fusion's help.  Here's a direct link:

 

http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/CreateFittedSpline_Sample.htm

 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 6

codefoster
Advocate
Advocate
Excellent. Thanks for the clarification and the link.

jf
0 Likes
Message 4 of 6

codefoster
Advocate
Advocate
Excellent. Thanks for the clarification and the link.
0 Likes
Message 5 of 6

wh6Q9NU
Advocate
Advocate

Link seems to be broken. Any change I can access this example somewhere? Many thanks!

 

example link: http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/CreateFittedSpline_Sample.htm

0 Likes
Message 6 of 6

ekinsb
Alumni
Alumni

Try this link.  It's should take you to the same link referenced above.

 

http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-c3d4a306-fade-11e4-8e56-3417ebd3d5be


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes