Load multiple 3ds file in viewport
sarankani wrote at 2012-12-10 20:01:
Hi Objo,
I am new bee to helix 3D. I need to load many .3ds file in helix viewport. Now i am using the following code
var modelGroup = new Model3DGroup();
var reader = new StudioReader();
FileStream c = new FileStream(@"F:\\helixtoolkit3dfiles\" + URL, FileMode.Open, FileAccess.Read, FileShare.Read);
reader.TexturePath = ".";
modelGroup = reader.Read(c);
this.Model = modelGroup;
c.Close();
I can only load one file at a time. I need to load many. Thanks in advance for your help. Please let me know your suggestions.
objo wrote at 2012-12-13 23:02:
try adding the loaded models to the Children collection
http://msdn.microsoft.com/en-us/library/system.windows.media.media3d.model3dgroup.children.aspx
Customer support service by UserEcho