Exemple #1
0
 public MeshViewModel()
 {
     _mesh     = new Mesh();
     Children  = new ObservableCollection <MeshViewModel>();
     Render    = new MeshRenderDataViewModel();
     Collision = new MeshCollisionDataViewModel();
     States    = new MeshStateDataViewModel();
 }
Exemple #2
0
 public MeshViewModel(Mesh mesh)
 {
     _mesh     = mesh;
     Children  = new ObservableCollection <MeshViewModel>();
     Render    = new MeshRenderDataViewModel(mesh.render);
     Collision = new MeshCollisionDataViewModel(mesh.collision);
     States    = new MeshStateDataViewModel(mesh.states);
     Surfaces  = new MeshSurfacesDataViewModel(mesh.surfaces);
 }