MoI discussion forum
MoI discussion forum

Full Version: Costa's minimal surface

Show messages: All  1-7  8-13

From: amur (STEFAN)
20 Oct 2015   [#8]
Hi Brian,

just a small update... I wanted to make a NURBS surface and noodled a lot with some solutions, which were not satisfactory, until i downloaded today a Trial of ZBRush... I think i need to buy me a copy of ZBrush in the future due to it's fantastic ZRemesher, for example. Simply amazing, imho. After that i converted with Fusion360 T-Splines.

I attach the files, both quad mesh and NURBS model.

Best regards
Stefan


Image Attachments:
ZRemesher_T-Splines.png 


From: bemfarmer
20 Oct 2015   [#9] In reply to [#8]
Thank you Stefan for the excellent information.
I think I will try for a Nurbs Costa surface script this winter, LOL.
Gang or Elliptic may have Weierstrass code.
There is also the L. Baker book with some old C code...
I'm not sure how the math works.
There are also higher Genus Costa surfaces, with 2+ holes.

- Brian
From: amur (STEFAN)
23 Oct 2015   [#10]
Hi Brian,

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

Regards
Stefan
From: bemfarmer
28 Oct 2020   [#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.
From: Michael Gibson
28 Oct 2020   [#12] In reply to [#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
From: bemfarmer
28 Oct 2020   [#13] In reply to [#12]
Michael, thank you for the guidance.

- Brian

Show messages: All  1-7  8-13