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
728 stars 288 forks source link

After explosion, the entity and wire frame are separated #382

Closed ZBrave77 closed 4 years ago

ZBrave77 commented 4 years ago

Hello, I would like to ask how to solve the problem of leaving the wireframe in place after I offset the object? MU{@$(ZGAQDXXR@BJZOQ(3W

xeolabs commented 4 years ago

Hi, is this a bug where the solid part of the objects is moving, but the wireframe edges do not move?

Are there any messages in the JavaScript console? What OS and browser are you using?

xeolabs commented 4 years ago

PS. If you can publish an HTML page that demonstrates the bug, that would be ideal.

ZBrave77 commented 4 years ago

嗨,这是一个错误,对象的实体部分正在移动,而线框边缘却不移动吗?

JavaScript控制台中是否有任何消息? 您正在使用什么操作系统和浏览器?

The JavaScript console does not have any error messages. I use Google browser and the operating system of win 10.

ZBrave77 commented 4 years ago

PS. If you can publish an HTML page that demonstrates the bug, that would be ideal.

image

Amoki commented 4 years ago

You're using an "old" version (the "true" in logs have been removed on 25 May https://github.com/xeokit/xeokit-sdk/commit/5e8e4ac2003a58f78859ebfaf1701ea31b65fe92), can you try with the latest version?

ZBrave77 commented 4 years ago

You're using an "old" version (the "true" in logs have been removed on 25 May) 5e8e4ac), can you try with the latest version?

So, you don't know which file the line and entity separation offset is written in,?

ZBrave77 commented 4 years ago

You're using an "old" version (the "true" in logs have been removed on 25 May 5e8e4ac), can you try with the latest version?

Hello, I want to ask again if there is an explosion for 3DXML format

xeolabs commented 4 years ago

Hi, no explosion support for 3DXML yet, but it is planned.

Would you be able to deploy your example so it can be loaded in a browser? Maybe make a small github project and publish it to the web as gh-pages?

ZBrave77 commented 4 years ago

Hi, no explosion support for 3DXML yet, but it is planned.

Would you be able to deploy your example so it can be loaded in a browser? Maybe make a small github project and publish it to the web as gh-pages?

Hi, I've used the new version to solve the wireframe problem. Now, how can the explosion function be restored to its original state?

xeolabs commented 4 years ago

Retore the explosion by supplying a zero length vector to Entity#setExplosionOffset().

ZBrave77 commented 4 years ago

Retore the explosion by supplying a zero length vector to Entity#setExplosionOffset().

Sorry, I can't find the function you mentioned. Can you tell me which JS file setexplosionoffset() is in?

xeolabs commented 4 years ago

Oops, I mean use this method here: https://github.com/xeokit/xeokit-sdk/blob/master/examples/BIMOffline_XKT_metadata_moveStoreys.html#L172

This will restore the objects to their unexploded positions: myScene.setObjectsOffset(["myObject", "myObject2"...], [0,0,0]);