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

On the issue of model size changes after conversion #157

Open
xiang7970 opened this issue Jul 30, 2023 · 3 comments
Open

On the issue of model size changes after conversion #157

xiang7970 opened this issue Jul 30, 2023 · 3 comments

Comments

@xiang7970
Copy link

Hello, I have a problem where the transformed model has a different size from the original model. I would like the transformed model to maintain the same size as the original model. I have tried using the --adaptive option with a specified value, but I cannot find a common point. Can you please help me with configuring this?
cmd:
image

raw:
image

nexus:

image

@ponchio
Copy link
Contributor

ponchio commented Aug 1, 2023

Hi,
I have no idea how such a large displacement (in the z axis especially) could happen.

Very (very) small changes might happen during the simplification step, not anything like this.

Could you provide me the sample?

Federico

@ponchio
Copy link
Contributor

ponchio commented Aug 3, 2023

Hi,
thanks for the model, I don't see any problem during conversion. It looks like the problem is with the library you are using for visualization.

Which library are you using? How do you get the bounding box?
The model might be automatically centered: the model size looks almost the same, it is possible that the model was only centered in zero (using the bounding sphere center.

@xiang7970
Copy link
Author

Hi,
I think I may have found the reason, it could be a version issue with Nexus. I exported the latest compiled versions from both the one I compiled on Win11 and the one I downloaded from Actions, and they yielded different results.

I think I need to compare them again to provide a final result. I also used the code from the ES6 branch, and the results were the same as the master branch.

Could you please recommend whether I should use the ES6 branch or the master branch for the frontend code? Can you explain the differences between the two? Thank you.

Finally, I will send you the code I tested. I hope it will be helpful for your troubleshooting.
code.zip

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