Blender's grid fill algorithm

Does anyone know what kind of algorithm Blender’s Grid Fill operation uses, (the complex one, not the simple one)? I mean, I’m no expert in math but I’m doubt that it could be a variant of cubic beizer patch algorithm since that requires 16 control points (if the mesh loop can even be represented by them), unless the underlying algorithm is somehow precalculating those control points using tangent vectors and defined end points of the edge loops for the construction of the bezier curves that approximately represent the final generated mesh surface.

Go look in the source code, it’s open source

1 Like

The relevant part is in here (bmo_grid_fill_exec).

1 Like

Done that prior to posting this topic, and I surprisingly couldn’t find anything in the github repository. I was definitely looking in the wrong place seeing that @Secrop had found it easily.

1 Like

Thanks man, you’ve helped me a lot. Still can’t believe I missed it the first time.

2 Likes