Skip to content

Method to get visible elements after internal culler update hides non-visible elements #666

@pstowasser01

Description

@pstowasser01

Description 📝

I'm looking for a quick method to find visible/"seen" elements from my model.

Previously I was using
culler.onViewUpdated.add(({seen, unseen})=>{
for (let mesh of seen){
if (!mesh instanceof FragmentMesh)) return;
.....
}
})

I'd like to have a similar way to loop through all seen meshes as I was using them to create marker elements for each mesh that is visible to the camera...

I got a recommendation to use fragmentsManager.core.update(true) so maybe a method in the FragmentsManager class or similar to get all meshes visible to the camera can be done.

What is the FragmentsModels class? Is this the whole ifc-model or one element of that model like a "Fragment" before the update?

Suggested solution 💡

No response

Alternative ⛕

No response

Additional context ☝️

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureSomething new that we could do

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions