MoI discussion forum
MoI discussion forum

Full Version: Nodebundle for playing with nodes

Show messages:  1-2  …  1163-1182  1183-1202  1203-1222  1223-1242  1243-1262  1263-1282  1283-1302  …  1843-1859

Thread Split: Some posts in this thread have been moved here

From: Frenchy Pilou (PILOU)
21 Sep 2018   [#1223]
I see a rugby ball and a dog bone! :)
From: speedy (AL2000)
25 Sep 2018   [#1224]
Hello Friends
Those interested find here:
http://www.mediafire.com/file/v7wqaaezhxhtr5r/Open_the_Door.zip/file
the file related to the movement of a particular
door (Austrian author-KlemensTorggler),view long ago in the Web....
Have a nice day to all
al
From: James (JFH)
25 Sep 2018   [#1225] In reply to [#1224]
Hi Al et al,

That's very cool. I was impressed by door mechanism video on dezeen: https://www.dezeen.com/2014/02/11/door-reinvented-with-folding-mechanism-by-klemens-torggler/
but even better to see it animated in NE. Great work.


Maybe you can help me with a problem.
I have been trying to get my head around voronoi tessellation.
(I recognise that this may be a redundant exercise if/when Max converts his script to a node)

I have started with a mesh of triangles*, applied planar, extracted edges,
getStframe, generate 3ptCircle and find centers with BoundingBox node.

Now it is a matter of drawing lines between centers.
This involves incrementally taking pointDist for each point with the rest
and drawing the shortest (extract Min - compare - split),
then repeating for new minimum distance (2nd shortest) & again for 3rd shortest.

I have not included the nod file because frankly it is not even close to working as I desire.
Perhaps this is beyond NE as is, but I thought you or someone else might have an idea of how to proceed.

James

*Ideally, what I want to do is input a field of points and apply a Delaunay triangulation as my starting point;
though if that was possible, the same code could probably achieve voronoi meshing as well.
From: Frenchy Pilou (PILOU)
26 Sep 2018   [#1226]
Very cool door!
From: speedy (AL2000)
26 Sep 2018   [#1227]
Hello James
Many Thank you for your appreciation .... -

About Voronoi, I also tried to do something,
but I did not go further than you ...
My problem is that I can not sort with a logic (that is
very special), the points obtained as centers of the Circles
circumscribed to the source triangles, to obtain the ngon poly ...
I saw on the web the creation of the progressive field using
Lloyd's algorithm ... I have to say real poetry, almost magic
but all of this higher mathematica ..... unfortunately very far from my level-
I hope that Max or Karsten can soon give us this Node
Have a nice evening
al
From: amur (STEFAN)
26 Sep 2018   [#1228]
This Delaunay and Voronoi stuff could be interesting in the future imho,
in case you could process also images with that in MoI, based on a point
set.

I played today with some old tools on my Mac and came up with the
idea to laser cut those Delaunay / Voronoi Designs, because i have
found a service which is imho pretty cheap and has lot's of materials
to choose from.

me_del_voro
free photo hosting

Regards
Stefan

Message 7777.1229 was deleted


From: James (JFH)
26 Sep 2018   [#1230]
Hi All,

I deleted my last post because I was getting sidetracked, & the solution was much more obvious.
It is to find circumCircle centre and draw lines to midPts of triangle edges like so.



I will do some further development of this approach, but I think I'm on the right track.
James

Image Attachments:
voronoiMidpts.gif 


From: speedy (AL2000)
27 Sep 2018   [#1231]
Hi James
I think it's the right method ...
divide the sides of each triangle in the middle, join the center
with these points ...(so far I have arrived here too)
but,what is the final method to obtain distinct poly ngon ?
for me this is the obstacle to overcome
al
From: James (JFH)
27 Sep 2018   [#1232] In reply to [#1231]
Hi Al (and others),

I have attached nod file for generating voronoi pattern from field of tessellated triangles (also attached).
This turned out to be far less complicated than originally thought. The real problem to solve now is converting
a field of points to delaunay triangulation.

James

Image Attachments:
voronoiCells.gif 


From: Karsten (KMRQUS)
27 Sep 2018   [#1233] In reply to [#1232]
Wow!!!
From: James (JFH)
27 Sep 2018   [#1234] In reply to [#1233]
Thanks Karsten, but it wouldn't be possible without your foundational node contributions.
Have you been working on anything new?
James
From: speedy (AL2000)
27 Sep 2018   [#1235]
Hi James and Friends
I saw your file, ingenious enough to create
a thicker along the edges of the polygons, then working
with the boleans we will get what we want ...
but it still does not work ...
In any cases where we want an integral polygon, we can not do it
because the connecting lines of the centers with the midpoints
the edges of the triangles intersect each other ...
even more if the mesh of the triangles and pretty uneven
here:
http://www.mediafire.com/file/1pf6zo59nkj5uq1/VORONOI.zip/file
you will find files that will better illustrate the problem,
I have also worked on your file, deforming the triangular mesh a little
and trying to lower the size of the line
(Sweept profile) but, under a certain value you can not go,
and so, as you will see, the result is not ,according to me, yet
satisfactory
have a nice day
al
From: Karsten (KMRQUS)
27 Sep 2018   [#1236] In reply to [#1234]
Hello James,
>>Have you been working on anything new?

I'm afraid not. I'm in the middle of divorcing my wife.

Some day I will start again.
Karsten
From: James (JFH)
27 Sep 2018   [#1237] In reply to [#1236]
Hi Karsten,

I'm sorry to hear that. I can only imagine how dispiriting that must be.
Please feel free to PM me if you need to vent to a sympathetic ear.
Perhaps a friend you've never met would be the perfect sounding post.

>> Some day I will start again. <<

For our sake, but mostly yours, I hope that day is soon
All the best
James
From: speedy (AL2000)
3 Oct 2018   [#1238]
Hi Friends
I continue with my research and study of interesting surfaces ,
and now it is the turn of this fairly recent geo-mathematical form
due to the genius and research of Paul Schatz ,
it was born only in 1939 and therefore relatively young ...
and In my opinion it is a charming, elegant shape that leaves
with open mouth......
how many interested will find here:
http://www.mediafire.com/file/9ftdpaksnr1mn2e/Oloid.zip/file
the math construction file of the form (relatively simple, I must say)
and a small simulation of movement ...
The Oloid is the only three-dimensional shape that can rotate over its entire surface.
and put in oscillating produces a movement of great charm,
on the web you will find news about the use of this shape to reproduce in the water
a wave similar to the natural one
Have a nice evening to all
al
From: amur (STEFAN)
5 Oct 2018   [#1239]
Hi all,

sorry for being off-topic, but i like to show you my aluminium sign,
from schildermaxe.de (excellent quality) from my previous post
here. Hope you like!

IMG_0713

P.S. i did not went for laser engraving, because the price was to high.
Instead i used a sign maker service.

Regards
Stefan
From: Michael Gibson
5 Oct 2018   [#1240] In reply to [#1239]
Hi Stefan, that's cool!

- Michael
From: amur (STEFAN)
6 Oct 2018   [#1241]
Thank you, Michael!

Regards
Stefan
From: James (JFH)
9 Oct 2018   [#1242]
Hi node Coders,

I'm attempting to create a node based on Marco's ExtractCurvesControlPoints script: http://moi3d.com/forum/display.php?webtag=MOI&print_msg=8010.17

I think the problematic code is below shown in red

Any help would be greatly appreciated

James





// extractPts
function extractPts()
{
this.addInput("In","objectlist");
this.addOutput("Out","objectlist");
}

extractPts.title = "extractPts";
extractPts.desc = "extractPts";

extractPts.prototype.onExecute = function()
{
var inObj = this.getInputData(0, moi.geometryDatabase.createObjectList());
var output = moi.geometryDatabase.createObjectList();

var selPts = moi.geometryDatabase.getSelectedObjects().getCurves();

if (inObj.length > 0 )
{
inObj.setProperty('showPoints', 1);
moi.geometryDatabase.selectAll();
moi.geometryDatabase.copyToClipboardCommand(selPts);

output = moi.geometryDatabase.pasteFromClipboard();
}
this.setOutputData(0, output);
}
LiteGraph.registerNodeType("Objects2/extractPts", extractPts);

Show messages:  1-2  …  1163-1182  1183-1202  1203-1222  1223-1242  1243-1262  1263-1282  1283-1302  …  1843-1859