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/SurfaceGrid/lib/SurfaceGridWrapper.h

55 lines
1.7 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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
);