#pragma once #include "SurfaceGrid.h" std::wstring StringToWstring(const std::string& wstr); std::string WstringToString(std::wstring wstr); bool BuildMinCurvatureGrid3Impl( const wchar_t* sourcePointFile, const wchar_t* faultFile, const wchar_t* borderFile, size_t xNodeCount, int maxIteration, double residual, double fillValue, int faultEdgeLevel, const wchar_t* outputFile, int estimateFactor, int cornerWeight, double contourStep, int contourMarkStep, int insertTimes, int smoothTimes=0, double xMin = -1.0, double yMin = -1.0, double xMax = -1.0, double yMax = -1.0 ); /** * \param sourcePointFile 离散点源数据文件(xyz 格式) * \param faultFile 断层(fault,不存在z数据)区域数据文件,支持 bln文件、dfd文件 * * \param xNodeCount 插值网格x坐标上网格节点数,默认101个(100个网格) * \param maxIteration 最大迭代次数,默认20000次 * \param residual 迭代容忍度指标, 默认为 0.01% * \param fillValue 迭代填充值,对于迭代过程中没有数据的点使用填充值填充,默认为 0.0 * \param estimateFactor e的默认值是0,自动计算缩放因子,可以指定,指定的意义是调整中间评估矩阵的网格尺度。中间评估网格尺度=目标网格尺度*评估缩放因子 * * \param faultEdgeLevel 添加断层数据标记位到输出文件中,添加标记位有不同的等级(0~4), 默认为不添加 * \param outputFile 迭代输出结果文件 * \return */ extern "C" __declspec(dllexport) bool BuildMinCurvatureGrid3( const wchar_t* sourcePointFile, const wchar_t* faultFile, const wchar_t* borderFile, size_t xNodeCount, int maxIteration, double residual, double fillValue, int faultEdgeLevel, const wchar_t* 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 );