Make smooth curve from VBA with NURBS?

Started by kedas, July 03, 2013, 08:23:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kedas

Hi,

Did anyone already write some VBA code to use the NURBSTo row type to make a smooth curve of your XY Array from VBA?
(The user enters a small number of XY point and expects a nice looking curve.)

For now I use just LineTo and increase the number of points to make it smooth.
But when you don't have the function (nor a function to fit it to) you can't increase the points. You just have 10 points and it still needs to look smooth.

http://msdn.microsoft.com/en-us/library/office/ff768992.aspx


kedas

#2
object.FitCurve  http://msdn.microsoft.com/en-us/library/office/aa224616%28v=office.11%29.aspx

Seems too easy, I give it a try.

Thanks for the tip :)

edit, did some tests, will do perfectly with just adding one line of code  :)

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 174 (show)
Files included: 34 - 1321KB. (show)
Memory used: 1112KB.
Tokens: post-login.
Cache hits: 12: 0.00212s for 26,582 bytes (show)
Cache misses: 1: (show)
Queries used: 15.

[Show Queries]