Hi!
If I load my asset like this ; [java]assetManager.loadModel(“main.scene”);[/java]
Is there any way to get the meshes/triangles??
I saw the “SceneGraphVisitor”, but I need to save the triangles and I did not see a way to process them outside the visit method.
Save the triangles?
Are you trying to save a level?
Yes, I am going to separate the walkable triangles from the level to use for path finding.
I imagine this is a geometry. If it is you could try geom.getMesh().getTriangles(…) but I’m not sure how to use this or if it’d do what you want.
Make sure to take a look at the SceneComponer’s NavMesh generator. It creates this triangle mesh for you and saves it as a geometry.
And as madjack mentioned, you can get all the low-level data from geom.getMesh()
Thank you, that seems to be exactly what I am looking for