public void RemoveMeshByGlobalId(string globalId) { if (TriangleMeshById.ContainsKey(globalId)) { TriangleMeshById.Remove(globalId); } }
public TriangleMesh MeshByGlobalId(string globalId) { if (!TriangleMeshById.ContainsKey(globalId)) { return(null); } return(TriangleMeshById[globalId]); }
public void AddMeshes(List <TriangleMesh> meshes) { var temp = new List <TriangleMesh>(TriangleMeshes); temp.AddRange(meshes); TriangleMeshes = temp; try { foreach (var mesh in meshes) { TriangleMeshById.Add(mesh.Name, mesh); } } catch (Exception) { throw new QueryException("Mesh already stored. Delete symbols."); } }
public void Reset() { TriangleMeshById.Clear(); TriangleMeshes = new List <TriangleMesh>(); }