VOptimizer/VCore ? reverse-engineered prompt

Reverse engineered prompt

Build me a C++14 library for working with voxel data that can load different voxel file formats, optimize them, and turn them into meshes fast enough for real time use in games.

I want it to support several meshing modes like simple, greedy, and marching cubes, plus exporting to common 3D formats such as OBJ, GLTF, PLY, and Godot ESCN. It should also be able to export voxel models as sprite stack images, do basic frustum culling, and handle animations. Please make it build cleanly with CMake as a static library, and include a small command line tool that links against it so I can test the core features from the terminal.

If it helps, use the examples and docs to guide the API, but keep the public interface easy to use and ready for a game or 3D project. If you need to check current build or format details, look them up online before implementing.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab