Load multiple 3ds file in viewport

Dec 10, 2012 at 7:01 PM

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.

 

Coordinator
Dec 13, 2012 at 10:02 PM

try adding the loaded models to the Children collection

http://msdn.microsoft.com/en-us/library/system.windows.media.media3d.model3dgroup.children.aspx