0

Get visible meshes in HelixViewport3D

Anonymous 10 years ago 0
This discussion was imported from CodePlex

chriskro wrote at 2013-11-05 16:34:

Hello,
I wonder if it is possible to get all visible content that is rendered in HelixViewport3D?
Does anybody have experience with that?

Greetings,

Chriskro

objo wrote at 2013-11-11 12:43:

Try the Visual3DHelper.Traverse method
http://www.nudoq.org/#!/Packages/HelixToolkit/HelixToolkit.Wpf/Visual3DHelper/M/Traverse(T)

Select it in the source code and press Shift-F12 and you will find many examples of usage!

chriskro wrote at 2013-11-13 09:01:

Thank you for your answer.
As far as I could see it, it traverses over the model elements, even when they are not visible. But the question is, how do I find out, if a specific element is visible?

objo wrote at 2013-11-19 23:03:

If a model element is visible in the viewport depends on the camera, transforms, lights, material and geometry. If ligths are defined and you don't need to know if the element is within the viewport, you only need to check the material and geometry.
See also https://helixtoolkit.codeplex.com/workitem/10003