public MeshViewModel() { _mesh = new Mesh(); Children = new ObservableCollection <MeshViewModel>(); Render = new MeshRenderDataViewModel(); Collision = new MeshCollisionDataViewModel(); States = new MeshStateDataViewModel(); }
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); }