If the model is classified using the FragmentClassifier.byModel() method, and an attempt is made to hide the entire model through FragmentHider.Set() using the resulting classification, certain elements are ignored.
this code is executed after the model is classified:
const hider=viewer.tools.get(OBC.FragmentHider)
for (const model in classifier.get()['model']){
const modelFragmentsFromClassifier=classifier.get()['model'][model]
console.log(modelFragmentsFromClassifier)
hider.set(false,modelFragmentsFromClassifier)
// hider.set(false) //this works ok
}
elements ignored:
It looks like Fragments from model and classifier are different:
From the FragmentGroup:
From classifier:
the IFC file is the one named:
NAV-IPI-ET1_E07-ZZZ-M3D-EST.ifc from the master BIM software developer
If I try to hide one of those elements using the id from the highligther event nothing happens:
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
[X] Check that this is a concrete bug. For Q&A join our Community.
Describe the bug 📝
If the model is classified using the FragmentClassifier.byModel() method, and an attempt is made to hide the entire model through FragmentHider.Set() using the resulting classification, certain elements are ignored. this code is executed after the model is classified:
elements ignored:
It looks like Fragments from model and classifier are different:
From the FragmentGroup:
From classifier:
the IFC file is the one named:
NAV-IPI-ET1_E07-ZZZ-M3D-EST.ifc from the master BIM software developer
If I try to hide one of those elements using the id from the highligther event nothing happens:
Reproduction ▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅