kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.31k stars 513 forks source link

Very Large Import #453

Open arpitpara opened 3 months ago

arpitpara commented 3 months ago

Hi I am trying to import a very large file in the viewer. It doesn't really load. Is it the size of the issue as my other small model is loading perfectly. Also, I noticed 'octt-import.js' anonymous error for the same.

kovacsv commented 3 months ago

Usually it's a mix of the file size and the model size (number of vertices and polygons). Unfortunately browsers provide limited amount of memory for each tabs, and in case of large models this memory is just not enough.

arpitpara commented 3 months ago

ok.So is there any way to bypass this?

kovacsv commented 3 months ago

In case of occt-import-js there is a possibility to play around with the segmentation density, but I'm not sure what the proper value would be. If you can figure out the linearDeflection and angularDeflection values that work for you we may modify them in the viewer as well.

arpitpara commented 3 months ago

Hi, Thanks for the reply! I tried the mentioned values changing but still no luck. linearDeflection: 0.001, 1, 5, 10, 50 angularDeflection: 0.1, 0.3, 0.5 Can you suggest me anything else.

kovacsv commented 3 months ago

If you can share me the file I can take another look.

arpitpara commented 2 months ago

ModelFile

Here is the file. Please look into it and let me know if you can do something.