Grasshopper

algorithmic modeling for Rhino

To complement the recent Exoskeleton wireframe thickening tool by David Stasiuk and myself,

I am also sharing this component for cleaning up messy wireframes or line networks.

You provide it with any list of lines and it turns them into a clean directed graph or network.

So it :

-Snaps together nearby points

-Removes duplicates, Overlapping lines and stray segments

-Splits lines at crossings and creates new nodes

-Keeps an optional set of input points fixed

It also outputs the topology information of the network, saying what connects to what:

For each point:

-A list of indexes for all the other points to which it is connected by a line

-A list of indexes of the lines which end at that point

-A list of indexes of the lines which start at that point

For each line:

-The index of its start point

-The index of its end point

and also, the simplified graph - with all nodes of valence 2 collapsed.

appears under the Mesh>Triangulation tab

Topologizer.gha

Views: 19666

Comment

You need to be a member of Grasshopper to add comments!

Join Grasshopper

Comment by Nader Belal on August 11, 2017 at 3:31am

Thank you for sharing

Comment by MihaiB on December 7, 2016 at 7:08am

Hi, I encountered a problem while using topologizer. If I input a network of lines which all have duplicates, sometimes the component seems to do the crossing split before removing the duplicates, which results in a point being added in the middle of some lines (it crosses the line with its duplicate, I assume). It doesn't even happen to all lines, although they are all double. Has anyone encountered this issue?

Comment by liguoxiong on May 30, 2015 at 10:45am

hi,marty hogg,I had meet the same problem,the very short lines from Voronoi, I dont use Topolgiser to solve it, There is another way, I think the line is too short, that's not my wants, so. i just want the shortest line come to be as long as possible,there is a wonderful componets to help me,Galapagos.

Comment by martyn hogg on April 21, 2015 at 2:37pm

Doesn't matter... I used scale instead of offset :)

Comment by martyn hogg on April 21, 2015 at 12:15pm

I'm trying to use the Topologiser to merge together points in a Voronoi that create very short lines. This is often a problem when using the Exoskeleton because if you want a nice fat structure, the small lines get engulfed by the nodes so if you select a strut radius small enough for the short lines the structure ends up having relatively thin struts.

I've been using the method of offsetting the cells inwards, creating a mesh, thickening it and then weaverbirding it but the same problem occurs with the short lines where they can only tolerate a small offset before causing problems.

Is there a way to merge points that are within a set distance but reconstruct the new voronoi cells?

Could Kangaroo do this?

Does anyone know how the voronoi component creates the cells instead of just interconnecting all the points with lines?

Comment by Anna Blinchik on December 5, 2013 at 7:50am

where i can download it??

Comment by pjbazel on October 15, 2013 at 11:12pm

Amazing! thank you thank you thank you

Comment by Daniel Kautz on December 29, 2012 at 1:18pm

Thank you Daniel! - this is a powerful utility.

Comment by yj on December 24, 2012 at 11:59pm

mr piker does it again. merry christmas.

Comment by Daniel Piker on December 23, 2012 at 3:42pm

Here's an example of how it can be used with Kangaroo. Connected lines are trying to align/bundle near the nodes. The topology information allows us to set the interaction only between the relevant segments instead of all-with-all, speeding things up significantly.

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2018   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service