Yes, you are right. I missed that /2 on the image. But all in all it should work.

As you noticed, this approach just uses the bounding boxes of the model. so make sure they are set properly e.g. with c_setminmax.