Costa's minimal surface
All  1-9  10-13

Previous
Next
 From:  amur (STEFAN)
7673.10 
Hi Brian,

a script would be interesting. Wish i could program. Would help me often in some scenarios.

Regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7673.11 
Found some code for Weierstrass functions in C++11

https://github.com/bluescarni/w_elliptic
http://bluescarni.github.io/w_elliptic/

I wonder if this library could be "Included" or linked to in a MoI script?

- Brian

Besides a possible Costa surface script, the functions could be used for other projects.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7673.12 In reply to 7673.11 
Hi Brian,

re:
> I wonder if this library could be "Included" or linked to in a MoI script?

Hmmm, well the only method that I can think of for that would be to compile the library into its own standalone executable program. A script in MoI could then run the program and pass command line parameters to it and receive any output that the program wrote to stdout.

That can be done by the moi.filesystem.shellExecute method, which as of the Sep-10 v4 beta has a "wait for finished" option in it:

quote:

moi.filesystem.shellExecute(), added wait for finished parameter.
moi.filesystem.shellExecute( path, params, wait ) now takes an optional 3rd boolean parameter for whether to wait until the called process has exited before returning. When used, the return value from shellExecute() is an object containing an .exitCode property for the integer exit code of the called process and an .output string parameter for any text written by the called process to stdout.
Example:
var res = moi.filesystem.shellExecute( 'cmd /c dir c:\\', '', true );
if ( res.output ) moi.ui.alert( res.output );


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
7673.13 In reply to 7673.12 
Michael, thank you for the guidance.

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-9  10-13