xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
738 stars 291 forks source link

Is it possible to Load the tree view plugin without the model? #477

Closed vadimt2 closed 3 years ago

vadimt2 commented 4 years ago

Is it possible to load the tree view plugin without the model?

xeolabs commented 4 years ago

Hi, no, the TreeViewPlugin populates itself from models as they're loaded, so it's dependent on models.

vadimt2 commented 4 years ago

I need to load the structure without the model, i can take the source code of the viewer and make a wrapper without install the npm viewer gltf. and take the viewer from my own JS wrapper, My question is: Where in the code can i change the behavior of the GTLF plugin?

const grlf = server_response_data: if(!grlf){ // i know that i have no GLTF file.

vadimt2 commented 4 years ago

I'm trying to use the method of addModel but i can't get the viewer.metaScene.metaModels OBserver showing empty array . I'm using vue js and only after it's mounted i can see viewer.metaScene.metaModels what can i do to see the data with the promise ?

imadBelaroussi commented 3 years ago

you can tell me on which OS you are running your application ??

vadimt2 commented 3 years ago

i'm using vue js

On Mon, Dec 7, 2020 at 5:00 PM imadBelaroussi notifications@github.com wrote:

you can tell me on which OS you are running your application ??

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xeokit/xeokit-sdk/issues/477#issuecomment-739935758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKGQ6TUK7MYOKTY3DUL3QJDSTTNYTANCNFSM4T3D3C3A .

imadBelaroussi commented 3 years ago

Linux or Windows ??

vadimt2 commented 3 years ago

Windows

On Mon, Dec 7, 2020, 19:00 imadBelaroussi notifications@github.com wrote:

Linux or Windows ??

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xeokit/xeokit-sdk/issues/477#issuecomment-740009604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKGQ6TVEWPBCT5UZ3ZZOWRDSTT32PANCNFSM4T3D3C3A .

xeolabs commented 3 years ago

Can't offer support for this use case, sorry - can only support use cases for which TreeViewPlugin is designed.