You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/GVision/BatchCreateMap/FaultProcessUtility.cs

39 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Construction.BatchCreateMap
{
public class FaultProcessUtility
{
public static bool ProcessSplit(string inputFile, string resultFile, string faultNames)
{
return FaultsProcessSplit(inputFile, resultFile, faultNames);
}
public static bool ProcessMarkName(string inputFile, string resultFile, string faultNames
, double minWidth, double angle, int meshType, bool bSplittingFirst = false)
{
return FaultsProcessMarkName(inputFile, resultFile, faultNames
, minWidth, angle, meshType, bSplittingFirst);
}
#if DEBUG
const string DLL_FILE_Fault = "FaultageProcessLibD.dll";
#else
const string DLL_FILE_Fault = "FaultageProcessLib.dll";
#endif
[DllImport(DLL_FILE_Fault, EntryPoint = "FaultsProcessSplit", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
private extern static bool FaultsProcessSplit(string inputFile, string resultFile, string faultNames);
[DllImport(DLL_FILE_Fault, EntryPoint = "FaultsProcessMarkName", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
private extern static bool FaultsProcessMarkName(string inputFile, string resultFile, string faultNames
, double minWidth, double angle, int meshType, bool bSplittingFirst);
}
}