Example
const fs = require('fs');
const path = require("path");
var BDFParser = require("bdfparser-js");
const LineByLine = require('readlinesyn');
const Match = require('intepol_pressure');
var presDataHash = require("nodehash-js");
var bdf = new BDFParser();
var bdffile = path.join(__dirname, "./data/base_body_face.bdf");
var newbdfFile = path.join(__dirname, "./new.bdf");
var pressureHashJsonFile = path.join(__dirname, "./data/wing-pressure.json");
var pressureDataFile_ZC = path.join(__dirname, "./wing/M6-ZC.dat");
var pressureDataFile_HCW = path.join(__dirname, "./wing/M6-HCW.dat");
var matcher = new Match();
matcher._presDataHash._X_Mult = 50;
matcher._presDataHash._Y_Mult = 50;
matcher._presDataHash._Z_Mult = 50;
function testMatch(){
console.log( "Open ", bdffile );
matcher.openBdfFile( bdffile );
matcher.openPressureFile(pressureDataFile_HCW);
matcher.openPressureFile(pressureDataFile_ZC);
matcher.constraint();
matcher.checkCtria();
matcher.saveBdf( newbdfFile );
}
testMatch();