ObjToSchematic icon indicating copy to clipboard operation
ObjToSchematic copied to clipboard

npm package/API

Open varunbln opened this issue 2 years ago • 4 comments

Hey, I'd love to use this tool as part of a larger workflow. Is there some sort of an API hosted/npm package I can install to convert .obj files to schematics in code?

varunbln avatar Oct 05 '23 14:10 varunbln

Hi, yes this is a big focus of mine recently and we're almost there to be able to export the core functionality into a separate public NPM package. Most of my time has been spent separating the codebase into distinct Core and Editor modules and its almost fully complete. When that's done I'll be submitting a ObjToSchematic-Core NPM package.

LucasDower avatar Oct 05 '23 17:10 LucasDower

Hey, thanks appreciate it

Is there a branch where that’s being done so I can contribute?

varunbln avatar Oct 05 '23 17:10 varunbln

I'm working in the reshuffle branch but its very chaotic at the moment as I'm pretty much refactoring the entire codebase.

LucasDower avatar Oct 06 '23 17:10 LucasDower

Pretty much anything defined in the Core package source will be public API when I public OtS-Core. The last major piece here is refactoring BlockMesh and the exporters.

LucasDower avatar Oct 06 '23 17:10 LucasDower

This majority of this work has been done in /reshuffle though this workflow is no longer supported in OtS 2.0. Anyone interested will need to dive into the OtS 1.0 code and investigate themselves.

LucasDower avatar Apr 27 '25 22:04 LucasDower