The member `m_index` of struct `B2joint` is never read. Do we still need it? - If so, it would be good to add a little comment why. - If not, I suggest to simply remove it.
The member
m_indexof structB2jointis never read. Do we still need it?