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.
|
|
|
|
|
|
|
|
|
|
|
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 StructureAnalyze2
|
|
|
|
|
|
{
|
|
|
|
|
|
public void Calculate2(string contourFile,
|
|
|
|
|
|
string faultFile,
|
|
|
|
|
|
string gridFile,
|
|
|
|
|
|
string outFile
|
|
|
|
|
|
, int structTypes
|
|
|
|
|
|
, ParameterStructure para)
|
|
|
|
|
|
{
|
|
|
|
|
|
Calculate2(contourFile, faultFile, gridFile, outFile, structTypes,
|
|
|
|
|
|
para.MinArea, para.LimitNum, para.FaultCloseDis, para.CloseDis
|
|
|
|
|
|
, para.ExtendDis, para.OffsetDis, para.MinAngle, para.Redundant
|
|
|
|
|
|
, para.Radius);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
const string DLL_FILE = "MicroStructureLib.dll";
|
|
|
|
|
|
#else
|
|
|
|
|
|
const string DLL_FILE = "MicroStructureLib.dll";
|
|
|
|
|
|
#endif
|
|
|
|
|
|
[DllImport(DLL_FILE, EntryPoint = "structureCalculate2", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
|
private static extern void Calculate2(
|
|
|
|
|
|
string contourFile,
|
|
|
|
|
|
string faultFile,
|
|
|
|
|
|
string gridFile,
|
|
|
|
|
|
string outFile
|
|
|
|
|
|
, int structTypes
|
|
|
|
|
|
|
|
|
|
|
|
, double MinArea = 800
|
|
|
|
|
|
, int LimitNum = 4
|
|
|
|
|
|
, double FaultCloseDis = 30
|
|
|
|
|
|
, double CloseDis = 30
|
|
|
|
|
|
, double ExtendDis = 100
|
|
|
|
|
|
, double OffsetDis = 30
|
|
|
|
|
|
, double MinAngle = 80
|
|
|
|
|
|
, double Redundant = 0.6
|
|
|
|
|
|
, double Radius = 40);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|