Page 1 of 1

Shape generator

PostPosted: Thu Oct 04, 2012 08:15
by MarkTraceur
How many times has this happened to you?

I want to build a sphere. OOPS IT TURNED OUT AS A CUBE.


We live in uncertain, cuboid times. Sometimes, that's just the way it is. For everything else, there's my new shape generator!

The example instance will allow you to generate some shapes right away, but really, I've only begun to add shapes. I intend to add tori and parabolas within a few days, and may decide to add other shapes based on feedback.

You can also (look at|fork|submit patches for) the source code, most of which is on the hosted version but more of which can be found at the git repository (the repo links appear to be broken right now, but you can easily download snapshots).

Thanks for your feedback in advance, and happy hacking (in minetest and on the code).

PostPosted: Thu Oct 04, 2012 08:47
by cornernote
torus would be cool

if you can make the shape you should add it to worldedit, and i'll add it to the gui.

i would also like to use any new shapes in deploy nodes.

PostPosted: Thu Oct 04, 2012 08:49
by Calinou
Nice work. :)

[edit] Hmm, generating a circle with radius 256 kinda glitches. :P

PostPosted: Thu Oct 04, 2012 13:09
by Sokomine
Has the area the circle is supposed to end up in already been generated? That's something I do have considerable truble with with my imports. If the area isn't loaded completely, cavegen cuts in and griefs buildings.

PostPosted: Thu Oct 04, 2012 14:44
by MarkTraceur
cornernote: I intended this for planning purposes, not "make the shape for you" purposes--my code is GPL, so if the WorldEdit author wants to add the formula, very little is stopping them.

Calinou: I will see if I can't speed things up a bit....the problem is in generating huge numbers of jQuery objects, and I'm just not sure I can avoid that. But not to worry, it's all on your computer, so really the only limit is your memory size and your processing speed :)

Sokomine: This software doesn't actually build the shape for you, just shows you the plan. If you are looking for something to do the work for you, you'll want WorldEdit, and if cornernote and/or the other authors port these formulae in, you should be in the clear!

PostPosted: Fri Oct 05, 2012 06:32
by MarkTraceur
New version: Now has a torus, but only with one minor diameter (the size field is currently used for total diameter of the widest plane of the torus). Also, free JS should now be marked as such--but I'm willing to change it if I failed this.

PostPosted: Fri Oct 05, 2012 06:47
by MarkTraceur
Note that the git repository still won't clone if you use the HTTP link, and the SSH link is only for me.

I'm working on it!