problem with assimpwpfimporter
#2
The ReadModel3D method returns a Model3D object. This is a base class for GeometryModel3D and Model3DGroup classes. In case the ReadModel3D reads a file that defines only one simple 3D model, then the method returns a GeometryModel3D object. When a more complex 3D model is defined in a file, then a Model3DGroup - this object is used to hierarchically organized the GeometryModel3D and other Model3DGroup in the Children collection.

Therefore, it is much better to check the type of the returned object before using it (except in case when you are reading a fixed file and are sure of the content of the file).
Andrej Benedik
  


Messages In This Thread
problem with assimpwpfimporter - by kreativasas - 05-03-2020, 11:12 AM
RE: problem with assimpwpfimporter - by abenedik - 05-04-2020, 11:35 AM
RE: problem with assimpwpfimporter - by abenedik - 05-06-2020, 08:24 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)