12985
« on: July 01, 2014, 04:57:37 PM »
Hello michaelzhangxc,
If you wish to specify the real-world scale to the bounding box size, the chunk should be scaled using scale-bars at first or by coordinate system definition. It is necessary, since for unreferenced chunks the internal scale units are not connected anyhow with meters.
The same for the bounding box center. Its coordinates in the script above are defined in the local coordinate system that is set up using markers. So this script would not work for unreferenced chunks.
Are you planning to use cored targets / markers to define the scale of the model? If you place four of them in the corners of rectangle (lets say with 0.5 m side) around the person, it will be quite easy to implement in the Python script correct bounding box orientation and size in the real-world scale.