I am creating a viewer where you can load any type of model inside, and get proper view and some additional features on it, like “dimension” feature, where you will be shown the dimensions of the mesh of course. I am creating this for one company, and they are using models that are sometimes in Inches, sometimes in milimeteres. Because Babylon is unitless of course, and formats (stl, obj) are also unitless (basically 1x1x1 cube in inches, and 1x1x1 cube in mm look the same in the viewer), I am having trouble deciding which unit to show (I can get proper values from the model, so something like 6x2x7 for example)
Now, I have some solutions that could be implemented, but they require manual input from them on every model they want to load. Basically I suggested using url parameter (this is also used to load the model from the AWS S3 bucket), but as I said that require that for every model they manually input that parameter. The issue is that they have thousands of these models, and it would be much better if somehow I could implement that this works automatically.
My question is if someone found any approach for solving this issue. Any idea could help.