Esempio n. 1
0
        /// <summary>
        /// Opens an existing USD file for reading.
        /// An exception is thrown if the filePath cannot be opened.
        /// </summary>
        public static Scene Open(string filePath)
        {
            var stage = UsdStage.Open(filePath);

            if (stage == null)
            {
                throw new ApplicationException("Failed to open: " + filePath);
            }
            return(new Scene(stage));
        }