/// <summary> /// このクラスのオブジェクトを作成する /// </summary> /// <param name="ctlPath">CTLファイルのパス</param> /// <param name="outputPath">出力ディレクトリのパス</param> /// <param name="isoValue">等値曲面の値</param> /// <param name="meshFileType">メッシュデータの形式</param> public SingleFileProcessor(string ctlPath, string outputPath, float isoValue, MeshFileType meshFileType) : this(ctlPath, outputPath, new float[] {isoValue}, meshFileType) { }
/// <summary> /// このクラスのオブジェクトを作成する /// </summary> /// <param name="ctlPath">CTLファイルのパス</param> /// <param name="outputPath">出力ディレクトリのパス</param> /// <param name="isoValue">等値曲面の値</param> /// <param name="meshFileType">メッシュデータの形式</param> public SingleFileProcessor(string ctlPath, string outputPath, float[] isoValues, MeshFileType meshFileType) { _meshFileType = meshFileType; _ctlPath = ctlPath; _meshPath = getMeshPath(outputPath, ctlPath); _isoValues = isoValues; // もし出力ディレクトリが存在していなければ作成する if (!Directory.Exists(outputPath)) { Directory.CreateDirectory(outputPath); } }