I am using helix toolkit to import a OBJ file. The file has a 4 3d models inside.Here is the code i am using to import the OBJ
Model3DGroup group;
ModelVisual3D loadedModel = new ModelVisual3D();
var mi = new ModelImporter();
group = mi.Load("../Model/Vec.3ds");
loadedModel.Content = group;
What i am trying to do is select the meshes inside the obj by name. Names are v_a, v_b,v_c,v_d
I just cant seem the select them.
Looks like the Model3DGroup returned is a standard class:
http://msdn.microsoft.com/en-us/library/system.windows.media.media3d.model3dgroup%28v=vs.110%29.aspx
Try getting the "collection" by calling Children() on the group, and you should be able to access the models as individual elements of the collection, eg:
group.Children().ElementAt(0)
group.Children().ElementAt(1)
Or similar calls. You should be able to find some examples using Model3DGroup.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.