an epsilon as a number, or an options object with options
a FOLD representation of the ORIPA file
Convert an ORIPA file into a FOLD object
const opxFile = fs.readFileSync("./crane.opx", "utf-8");
const fold = opxToFold(opxFile);
fs.writeFileSync("./crane.fold", JSON.stringify(fold, null, 2));
// with options
const opxFile = fs.readFileSync("./crane.opx", "utf-8");
const fold = opxToFold(opxFile, { invertVertical: true, epsilon: 0.1 });
fs.writeFileSync("./crane.fold", JSON.stringify(fold, null, 2));
an ORIPA file as a string