gemini-viewer-examples
gemini-viewer-examples copied to clipboard
Change Measurement Unit
Hi, we tried a lot but not sure how we can change the unit of measurement from meters to feet and inches. Can somebody please help? Has anybody been able to successfully change the unit of measurement? Thank you.
Setting a display unit is not implemented yet! With that said, what we see is always the unit from data. Currently, if we want to display feet, etc. one workaround is to change the matrix when load a model().
const modelCfg: ModelConfig = {
modelId: "id_0",
name: "sample",
src: "http://www.abc.com/sample.dxf",
matrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1],
}
Suppose the data is in meter, we need to change the matrix, so values scale to feet.