Closed tothatt81 closed 4 years ago
Will do - can also reproduce this issue here: https://xeokit.github.io/xeokit-viewer/?project=Duplex
Hey,
A quick FYI
https://github.com/xeokit/xeokit-sdk/blob/master/src/plugins/TreeViewPlugin/ModelTreeView.js#L203
You're looking for an IfcProject type here but I just checked and the duplex metamodel json has none.
When configuring the TreeViewPlugin with hierarchy: "storeys"
, I made it expect the model to have an IfcBuilding
element type. When not, it will log this error:
[xeokit plugin TreeViewPlugin]: Failed to build storeys hierarchy for model 'myModel' - perhaps this model is not an IFC model?
and then not build the nodes, without crashing. We can then still switch it to another hierarchy mode, ie. myTreeView.hierarchy="containment"
.
Hey Lindsay,
The TreeView plugin seems to crash the whole viewer with the duplex model. Would you please look into it? Thanks!