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.
Yes, though we don’t use coloring, we use legacy GL_SELECT
or occlusion queries.
See: https://developer.blender.org/diffusion/B/browse/master/source/blender/gpu/intern/gpu_select.c;357b72e0a7d4a270bf1273102595446ccca16259$46