Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Measurement Unit #146

Open
iFieldSmart-Tech opened this issue Dec 6, 2024 · 1 comment
Open

Change Measurement Unit #146

iFieldSmart-Tech opened this issue Dec 6, 2024 · 1 comment

Comments

@iFieldSmart-Tech
Copy link

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.

@yanzexuan1
Copy link
Collaborator

yanzexuan1 commented Dec 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants