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/ModelCreateCurvature.cs

77 lines
4.5 KiB
C#

1 month ago
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 ModelCreateCurvature
{
//#if DEBUG
// //const string DLL_FILE = @"C:\GeoIntelligent\Code\dirgdf\bin\Debug\WellCalibrate.dll";
// public const string DLL_FILE = "ModelCreateIDW.dll";
//#else
// public const string DLL_FILE = "ModelCreateIDW.dll";
//#endif
// [DllImport(DLL_FILE, EntryPoint = "IDWModelCreate", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
// public static extern void IDWModelCreate(string xyzFile, string borderFile, string faultFile, string resultFile,
// int XCount, double smoothFactor, int smoothTimes, IntPtr callback,
// int insertTimes /*= 0*/, double contourStep, int contourMarkSpace
// , double xMin = -1, double yMin = -1, double xMax = -1, double yMax = -1);
const string SURFACEGRIDLIB = @"SurfaceGrid.dll";
/**
*
* \param sourcePointFile (xyz )
* \param faultFile faultz blndfd
*
* \param outputFile
* \return
*/
[DllImport(SURFACEGRIDLIB, EntryPoint = "BuildMinCurvatureInterpolationGrid", CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool BuildMinCurvatureInterpolationGrid(string sourcePointFile, string faultFile, string outputFile);
/**
*
* \param sourcePointFile (xyz )
* \param faultFile faultz blndfd
*
* \param xNodeCount x101100
* \param yNodeCount y101100
*
* \param faultEdgeLevel 0~4,
* \param outputFile
* \return
*/
[DllImport(SURFACEGRIDLIB, EntryPoint = "BuildMinCurvatureInterpolationGrid2", CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool BuildMinCurvatureInterpolationGrid2(string sourcePointFile, string faultFile, ulong xNodeCount, ulong yNodeCount, int faultEdgeLevel, string outputFile);
/**
* \param sourcePointFile (xyz )
* \param faultFile faultz blndfd
*
* \param xNodeCount x101100
* \param yNodeCount y101100
* \param maxIteration 20000
* \param residual , 0.01%
* \param fillValue 使 0.0
*
* \param faultEdgeLevel 0~4,
* \param outputFile
* estimateFactor 0
* cornerWeight 64
* \return
*/
//[DllImport(SURFACEGRIDLIB, EntryPoint = "BuildMinCurvatureGrid3", CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
[DllImport(SURFACEGRIDLIB, EntryPoint = "BuildMinCurvatureGrid3", CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool BuildMinCurvatureGrid3(string sourcePointFile, string faultFile, string borderFile
, ulong xNodeCount, /*ulong yNodeCount,*/ int maxIteration, double residual, double fillValue, int faultEdgeLevel, string outputFile
, int estimateFactor, int cornerWeight
, double contourStep, int contourMarkStep, int insertTimes
, double xMin = -1.0, double yMin = -1.0, double xMax = -1.0, double yMax = -1.0);
}
}