Hi I’m digging into blender c code and I’ll post my questions here for anyone who is willing to help. I guess my questions were too basic for blender.chat to answer.
So my question is how do you call for blender operators?
here is a code example from : \blender\source\blender\bmesh\operators\bmo_symmetrize.c
BMO_op_initf(bm, &op_bisect, op->flag, "bisect_plane geom=%s plane_no=%v dist=%f clear_outer=%b use_snap_center=%b", op, "input", plane_no, dist, true, true); BMO_op_exec(bm, &op_bisect);
so this part of code should initiate and execute mesh bisecting right?
my question is:
is “bisect_plane geom=%s plane_no=%v dist=%f clear_outer=%b use_snap_center=%b” is responsible for calling the code for bisecting?
what and where does it call?
bmesh_bisect_plane.h OR bmesh_bisect_plane.c or something else?
cause I don’t think it does. if yes how do you explane this line:
BMO_op_initf(bm, &op_dupe, op->flag, "duplicate geom=%S", &op_bisect, "geom.out"); BMO_op_exec(bm, &op_dupe);
where does it call for duplicate? I can’t find a clear reference in the code.
sorry if my questions are stupid.