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

setvisibility IfcBuildingStorey #276

Open
halmsx opened this issue Dec 17, 2018 · 1 comment
Open

setvisibility IfcBuildingStorey #276

halmsx opened this issue Dec 17, 2018 · 1 comment

Comments

@halmsx
Copy link

halmsx commented Dec 17, 2018

hi all. is it possible to set visibility to a specific building storey? dont look like its working using type or specific IfcBuildingStorey oid. thanks in advance

@aothms
Copy link
Member

aothms commented Dec 17, 2018

I assume you mean that the children of the building storey would be hidden as well? Currently the setVisibility() call is not recursive like that [1]. Take a look at the code for the tree renderer [2], in a couple of lines you can adapt something to recurse to the tree data to get the childen of the storey yourself and toggle visibility for them explicitly.

[1] https://github.com/opensourceBIM/BIMsurfer/blob/6b20a7aac69cee5a472df482a2d8b317854fe2a2/bimsurfer/src/xeoViewer/xeoViewer.js#L574
[2] https://github.com/opensourceBIM/BIMsurfer/blob/6b20a7aac69cee5a472df482a2d8b317854fe2a2/bimsurfer/src/StaticTreeRenderer.js#L124

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