sbox-issues
sbox-issues copied to clipboard
Ability to get PolygonMesh from MapMesh
For?
Hammer
What can't you do?
I cannot get PolygonMesh or any sort of mesh data from Hammer map meshes.
How would you like it to work?
I'd like to get PolygonMesh from a MapMesh, so possibly a method like MapMesh.GetMeshData
or something similar.
What have you tried?
Currently, I am having to read the vmap file to get them manually, which is not ideal at all. Our workflow uses hammer to design our rooms but they are exported as static meshes to be created dynamically, I am developing an automated way to do this but there's no way to get the data from a MapMesh object without manually parsing the vmap. Currently, I have to manually export the meshes as a model which is not ideal for the number of rooms there is.
Additional context
No response