Grasshopper

algorithmic modeling for Rhino

Well friends,

This thread is a "subset" of that:

http://www.grasshopper3d.com/forum/topics/c-delaunay-solver-syntax

But you don't actually need to come across that thread: just read the comments inside the definition attached here.

Initially I thought that a Delauney type of triangulation could be the answer, but appears that is not (white lines), nor the ball pivoting script (as it is):

In order to create some proper code I think(?) that I have(???) outlined the right pseudo code ... the "only"(?) problem is to define the "ideal" starting point (for instance in the above image : point 2). Sorting properly points could be a starting approach but multi sort(s) appear not working (screenshot from the actual definition):

Any bright idea, welcome

best, Peter

Views: 1122

Attachments:

Replies to This Discussion

PS: October must be my stupid month : sort works, so I'm going to attempt my triangulation approach

Added some Z "noise" in the test case (ball point goes bananas)

Attachments:

If you already have the concave hull you can check the face centers of the Delaunay triangulation for inclusion and cull them accordingly.

Well... as I said I've opted to do my way: In fact, somehow, it's more complex than a Delaunay triangulation  ... since the logic behind the triangulation is not only the classic one (proximity, topology, ... checks) but also the "shape" of the resulting triangle matters as well (remember that defines a cone (in a "sub membrane") that should have some kind of "substance").

Anyway my code is almost(*) ready:

(*) some functions checking the validity of choices are still WIP > see the second triangle from the left that is quite "narrow" and must replaced by something more "equalized" as regards the edge angles.

I'll post here the finished C# soon (highly case specific: it doesn't deal with any collection of points, only with points that have a meaning for the membrane design and their random distribution within the "boundaries" of that type shown).

best, Peter

Update:

Project abandoned for a while, but now is almost ready. It works using solely C# and no GH component of any kind. I'll post here the thing soon.

Weak point: my "uniform" random point generation (for the mast bases) is way inferior to the one used in the PopGeo component (obviously custom code by David).

I would be clad to get some hints about how the PopGeo works (or ... er.... hmm... the C#, if this is not way beyond the meaning of " reasonable assistance").

more in a while.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service