public void CreateGlDataObject(IObject3D item) { if (item.Mesh != null) { GLMeshTrianglePlugin.Get(item.Mesh); } foreach (IObject3D child in item.Children.Where(o => o.Mesh != null)) { GLMeshTrianglePlugin.Get(child.Mesh); } }
public void CreateGlDataForMeshes(List <MeshGroup> meshGroupsToPrepare) { for (int i = 0; i < meshGroupsToPrepare.Count; i++) { MeshGroup meshGroupToPrepare = meshGroupsToPrepare[i]; foreach (Mesh meshToPrepare in meshGroupToPrepare.Meshes) { GLMeshTrianglePlugin glMeshPlugin = GLMeshTrianglePlugin.Get(meshToPrepare); } } }