Example #1
0
		private static void SaveNodeObjects_DO(ref Splination.SplinatedMeshMaker[] tSplinatedObjects,ref EdgeObjects.EdgeObjectMaker[] tEdgeObjects,ref WizardObject WO){
			int sCount = tSplinatedObjects.Length;
			int eCount = tEdgeObjects.Length;
			//Splinated objects first:
			Splination.SplinatedMeshMaker SMM = null;
			GSDRootUtil.Dir_GetLibrary_CheckSpecialDirs();
			string xPath = GSDRootUtil.Dir_GetLibrary();
			string tPath = xPath + "B/" + WO.FileName + ".gsd";
			if(WO.bIsDefault){
				tPath = xPath + "B/W/" + WO.FileName + ".gsd";	
			}
			StringBuilder builder = new StringBuilder(32768);
			
			//Wizard object:
			builder.Append(WO.ConvertToString());
			builder.Append(FileSepString);

			for(int i=0;i<sCount;i++){
				SMM = tSplinatedObjects[i];
				builder.Append(SMM.ConvertToString());
				builder.Append(FileSepString);
			}
			
			EdgeObjects.EdgeObjectMaker EOM = null;
			for(int i=0;i<eCount;i++){
				EOM = tEdgeObjects[i];
				builder.Append(EOM.ConvertToString());
				builder.Append(FileSepString);
			}
			
			#if UNITY_WEBPLAYER
			
			#else
				System.IO.File.WriteAllText(tPath,builder.ToString());
			#endif
		}
Example #2
0
		public static void SaveNodeObjects(ref Splination.SplinatedMeshMaker[] tSplinatedObjects,ref EdgeObjects.EdgeObjectMaker[] tEdgeObjects,ref WizardObject WO){
			SaveNodeObjects_DO(ref tSplinatedObjects, ref tEdgeObjects, ref WO);
		}