Mesh clustering¶
Dependencies¶
This node requires pyacvd library to work. One can install it in addon settings:
Functionality¶
This node takes a surface mesh and returns a uniformly meshed surface using voronoi clustering.
Inputs¶
This node has the following inputs:
Vertices, Edges, Faces - Source mesh
Subdivide - if source mesh is not dense enough for uniform remeshing then subdivide source mesh. A linear subdivision of the mesh. If model has high dense one can low Subdivide param to zero. For low dense mesh a value 3 is good. (min=0)
Max itereation - Max iteration of clusterization. (min=0)
Clusters - Cluster counts. (min=4)
Matrixes. Spread you source meshes by matrixes. You can use vertices of another meshes as matrixes:
Parameters¶
Triangulation.
Before clusterisation your source meshes has to be triangulated. Here are parameters for process of triangulation.
If source mesh has ngons woth different count of vertices then source mesh has to be triangulated with the next methods [Quads mode and Polygons mode]. If ngons of source mesh are equals (they can has 3,4,5 verts but for all faces) the mesh will be triangulated with pyvista method triangulate authomatically.
- Quads mode:
Beauty. Split the quads in nice triangles, slower method
Fixed. Split the quads on the 1st and 3rd vertices
Fixed Alternate. Split the quads on the 2nd and 4th vertices
Shortest Diagonal. Split the quads based on the distance between the vertices
- Polygons mode:
Beauty. Arrange the new triangles nicely, slower method
Clip. Split the ngons using a scanfill algorithm
If your mesh is low poly and you want to smooth it then you can use subdivide mode:
- Subdiv mode:
Butterfly.
Loop. Butterfly and loop subdivision perform smoothing when dividing, and may introduce artifacts into the mesh when dividing
Linear. Linear subdivision results in the fastest mesh subdivision, but it does not smooth mesh edges, but rather splits each triangle into 4 smaller triangles
Outputs¶
Clusterized mesh:
Vertices
Edges
Polygons
Centers of Polygons
Normals of Polygons
Example of Usage¶
High poly clusterizing¶
Subdivide is zero.