LDraw.org Discussion Forums

Full Version: ldr-stepper
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I've written a little JavaScript to break an .ldr file into steps (assuming it has none): ldr-stepper

It sorts an .ldr file's pieces by an axis (x, y [default], or z) in ascending order. You can choose to split the file into n pieces per step, or m total steps.

The output can be a reasonable place to start breaking your model into steps. I wrote this for a 375-piece model, so YMMV.

No other heuristics are performed. If anyone has any suggestions to improve the algorithm, or finds this useful, please let me know! You can reply here or file an issue on the GitHub.

For those unfamiliar with NodeJS, just follow the instructions in the README. Please let me know if you have issues--I've heard NodeJS is better on Windows if you run cygwin.