Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirror the read API to create a mesh file #37

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

MJohnson459
Copy link
Contributor

While debugging it was useful to generate a mesh file that could be viewed and shared easily.

This PR adds the mirror functions for writing a Mesh to a file. Given it's purpose is for debugging I didn't spend too long making the API nicer and just copied what was there.

        let file: PolyanyaFile = mesh.into();
        file.to_file(&"nav_mesh.poly");

@mockersf mockersf added this pull request to the merge queue Aug 7, 2023
Merged via the queue into vleue:main with commit 40607b7 Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants