cnr-isti-vclab / nexus

Nexus is a c++/javascript library for creation and visualization of a batched multiresolution mesh
GNU General Public License v3.0
213 stars 86 forks source link

On the issue of model size changes after conversion #157

Open xiang7970 opened 11 months ago

xiang7970 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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