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

58 lines
3.3 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 ConsoleApp1
{
class SurfaceGridProxy
{
const string SURFACEGRIDLIB = "sg.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
* \return
*/
[DllImport(SURFACEGRIDLIB, EntryPoint = "BuildMinCurvatureInterpolationGrid3", CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool BuildMinCurvatureInterpolationGrid3(string sourcePointFile, string breakLineFile, string faultFile, ulong xNodeCount, ulong yNodeCount, int maxIteration, double residual, double fillValue, int faultEdgeLevel, string outputFile);
}
}