Beispiel #1
0
        public static SceneObject BuildScanSO(SOFactory factory, FScene scene, TypedAttribSet attributes)
        {
            ScanSO so = new ScanSO();

            factory.RestoreDMeshSO(scene, attributes, so);
            return(so);
        }
Beispiel #2
0
        public static SceneObject Build(SOFactory factory, FScene scene, TypedAttribSet attributes)
        {
            PrintMeshSO so = new PrintMeshSO();

            factory.RestoreDMeshSO(scene, attributes, so);

            if (attributes.ContainsKey(AttrSourceFilePath))
            {
                so.SourceFilePath = attributes[AttrSourceFilePath] as string;
            }

            PrintMeshSettings settings = null;

            try {
                settings = RestorePrintMeshSettings(factory, attributes);
            } catch { }
            if (settings != null)
            {
                so.Settings = settings;
            }

            return(so);
        }