Example #1
0
        /// <summary>
        /// A utility method for finding all the geometry model objects in the geometry
        /// dictionary which correspond to a node.
        /// </summary>
        /// <param name="node">The node.</param>
        /// <returns></returns>
        private KeyValuePair <string, Model3D>[] FindGeometryModel3DsForNode(NodeModel node)
        {
            var geometryModels =
                Model3DDictionary
                .Where(x => x.Key.Contains(node.AstIdentifierBase))
                .Where(x => x.Value is GeometryModel3D)
                .Select(x => x).ToArray();

            return(geometryModels);
        }
Example #2
0
        private KeyValuePair <string, Model3D>[] FindAllGeometryModel3DsForNode(string identifier)
        {
            KeyValuePair <string, Model3D>[] geometryModels;

            lock (Model3DDictionaryMutex)
            {
                geometryModels =
                    Model3DDictionary
                    .Where(x => x.Key.Contains(identifier))
                    .Where(x => x.Value is GeometryModel3D)
                    .Select(x => x).ToArray();
            }

            return(geometryModels);
        }