Lasso Selection

I am new to the Blender source code and wanted to look at the lasso selection for faces of models. It is incredibly fast. I have been having difficulties finding the location in the code. Is it in view3d_select.c? I believe it is located in the view3d_lasso_select method. I’m not one hundred percent sure what the parameters are either. Could some one explain them? Sorry if this is not the appropriate location to ask this.

Check do_lasso_select_mesh where SCE_SELECT_FACE is tested.

With “limit selection to visible” we use the OpenGL selection buffer, otherwise face centers are used.

Thanks. Is the coloring or naming method in Selections the selection buffer you were talking about?

Yes, though we don’t use coloring, we use legacy GL_SELECT or occlusion queries.