Mesh clustering

Hi Laurent, thanks for taking the time to show the process. What’s so nice is that the result has a very natural look and feel to it.

Yes it is beautiful and it changes from Voronoi tesselation.
What gives it an interesting shape is that it grow from a group a faces (here on a segment), but could be circle … You will have to grow one row for each cluster. It is classical mesh topology to solve it.

1 Like

what do you mean by ‘but could be circle’?

Beautiful. Very nice work Laurent!

In the example I gave the seed faces were aligned on a line, but they could be aligned on a circle or an arc.

5 Likes

ah… looks very nice as well. Many possibilities :sunglasses:

nicely done. i am trying to do something similar with a distribution of points and am wondering about ‘mesh clustering’ and the C script component that you use for that. i suppose you made that yourself? would you please consider sharing it with me?

Cracking





Here the script to transform some subdivided parts to a sort of cracked mud.
The idea is to move the mesh differently if points are near the center of the exterior. The other trick is to connect the borders. Slider controlling the movement must be tuned to the size of the object. You will need Weavebird plugin.
I used here classical Voronoi, but you could use mesh clustering and other thessellation algorithms.

cracking_forum.gh (18.5 KB)

20 Likes

Here are some news on Mesh Clustering. I implemented a “Multi Material” Catmull & Clark subdivision. Each face of the mesh has a material (an index here). The problem with “classical” Catmull & Clark subdivision is that it leaves some spaces near places where there are 3 frontiers.








So it will be useful to make puzzle, lamps …

15 Likes

Here a new project using parts of what is presented above.
Here it could become a lamp (similar to Nervous lamp https://www.instagram.com/p/B3DVYjah-bX/)
Sphere clustered


Sphere with clusters flattenable (without inner vertice using one of my algorithm which is not perfects) with rivets position

Shapes nested


Still work to do to have more robust mesh transformation for the flattening, patterns differents from Voronoi, joining pieces with others methods (thread, …)

14 Likes

Using in Grasshopper RhinoPolyedra, then Quad Remesher, then my mesh clustering, then my Catmull&Clark subdivision for multi meshes, then Offset Mesh from Pufferfish then Catmull&Clark from Yellow then Material published here Custom Preview Shinyness when using create material (BUG ?) - #8 by Joseph_Oster

15 Likes

Very cool stuff, Laurent! I’m curious how you achieved your very own Catmull-Clark-subdivision? I’m certain that you wrote it in C#, but how does it work?
Btw, if you haven’t read Ed Catmull’s auto-biography “Creativity, Inc.”, you’re in for a treat!

Thanks, here a more global explanation
First I used Grasshopper Polyhedron

Then I remeshed the mesh with quads using Rhinocommon

    QuadRemeshParameters parameters = new QuadRemeshParameters();

    parameters.AdaptiveSize = Math.Min(Math.Max(adaptiveSize, 0), 100);

    parameters.TargetQuadCount = quadCount;
    parameters.DetectHardEdges = detectHardEdges;
    A = mesh.QuadRemesh(parameters);

Quad mesh is clustered, yes a C# but I use a library I made. So it is not to complex. I have a mesh (quad mesh here), some seed face (list of integer), some controls so it outputs for each face of the mesh a material (an integer indeed). So this allows to use a Catmull&Clark to a single mesh (GetSubdividedMesh the the C#).

    meshes = LDClusterMesh.GetCluster(mesh, seedFaces, limit);
    int[] index = LDutils2.LDClusterMesh.GetPuzzleClusterIndex(mesh, seedFaces, seed, limit, runs, maxValue, acceptBorder);
    //meshes2 = LDutils2.LDClusterMesh.GetPuzzleCluster(mesh, seedFaces, seed, limit, runs, maxValue, acceptBorder);
    List<int> faceIndex = new List<int>();
    faceIndex.AddRange(index);

    bool fixe = true;
    //int iterations = 3;
    double f = 1.0;

    LDutils2.MeshMultiMaterial mm = new LDutils2.MeshMultiMaterial(mesh, faceIndex, fixe);
    LDutils2.MeshMultiMaterial mm2 = mm.GetSubdividedMesh(iterations);

    meshes2 = mm2.GetSeparateMeshes();

The subdivided mesh

My subdivision technique (no holes) and classical Catmull&Clark applied to each single cluster (holes are appearing).

Mesh is then offseted solid using Pufferfish (it works on Rhino 7 WIP)

Then smoothed with Catmull&Clark from Yellow (a bit long ?)


https://www.food4rhino.com/app/yellow

14 Likes

Thanks for taking the time to write this up and sharing bits of your process! Very kind of you. :slight_smile:

I like how you called your library LDClusterMesh(). :wink:

Yes, that was the first thing that stood out to me!
Would you be willing to share some concepts of your custom Catmull-Clark subdivision? I’m particularly interested in how do you manage to keep the smoothed naked edges of individual mesh clusters adapted to smooth naked edges of the neighbouring patches, without holes appearing in the border regions?

I used some formulas from classical Catmull&Clark.


I still have just one mesh with different integers for each face. Each integer represent a sort of material.
Here some variation for the smoothing. Like C&K the idea is to addition coordinates.
New central point = center of face
New central middle edge = center of edge

I choose to keep the border or smooth then.
here a simple plane with 25 faces



Keep same borders

With triangles




I am sure the Rhinoceros Guru of Meshes are able to implement that.

It is also possible to apply the logic to lines connected

7 Likes

Ever see this one Mateusz did for Joris Laarman?

http://theobject.co/consultancy/bits-and-pieces/

8 Likes

Another trial, inspired by Nervous last object

Round Gyroid



13 Likes

I just tried some stripping techniques and results could be quite fun. So “walking” on mesh or face can lead to some different clusters.

And better ones there
https://discourse.mcneel.com/t/uniform-developable-strips-in-z-direction/113911/11









24 Likes

I say only -Wow!

// Rolf

1 Like

Wow.

1 Like