Same 3D-Model act like different one?

Ardahan 5 years ago in Question updated 5 years ago 1

I load STL files to helixviewport3d and store them in dictionary as key and file name as value.

But then I load same STL file and check if it is already in dictionary. But then It is not found and adding same model into viewport. where do i go wrong?

WPF Media3D

For who's wondering, I found that I made a mistake. I am load STL files using modelimporter class. And it returns Model3DGroups, not like Model3D. So actually I store in dictionary Model3DGroup. Because of that it gives error when comparing Model3D and Model3DGroup. So I fixed the error storing to dictionary Model3DGroup.Children[0].