Communicator.Model.setEnableAutomaticUnitScaling

I updated to a recent Hoops Communicator and I seem to have discrepencies in scaling now. We try to have everything rendered in mm, but some external models are in inches or meters and are rendered 25.4 or 1000 times too small now.

I figured the getNodeUnitMultiplier() is at play but changing model.setEnableAutomaticUnitScaling(true/false) doesn’t seem to do anything. The doc mentions it scales to the “scene unit” but I can’t figure out where this is set.

Any advice?

Hi Guillaume,

have you made sure to call setEnableAutomaticUnitScaling before you load any additional models into the scene? It should definitely have an effect if the unitmultipliers are different for those models.

Thanks,
Guido

1 Like