branch_color_small.gif

This article is a byproduct of an article Solid-state topography with layers. This algorithm has no practical application by itself, but can be at the core of many needed solutions. Its main function is to create links between elements in order to group and sort them according to a complex principle. It also works so beautifully that I had to write this article!

Script and test file:

Mesh_cluster.rar

Untitled

Untitled

🌴Much more than a game. Why is it necessary?

Is it needed directly in Revit?

**Practically not.**🤦

However, it will definitely come in handy in GIS systems and in programs that work with free geometry.

Work logic

  1. The first thing to do is to turn a triangle into a container with different data :

    Points, faces, indexes in list...

  2. Introduce concepts such as

  3. Next you need to write a loop that:

Tests:

What would happen if we painted each generation in individual color

Radial sorting, branching

Radial sorting, branching

Sorting by X, branching

Sorting by X, branching

Random, branching

Random, branching

No branching