Get submesh information?

Everything related to 3D programming
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Get submesh information?

Post by Samuel »

Hello everyone,

Does anyone know of a way to get a hold of a meshes submesh information after the mesh has been loaded?
I'm mainly looking for how many submeshes exist within the mesh.
I know I can figure out how many a mesh has outside of Purebasic, but for this program I'm working on that's not really a good option.

Any examples or ideas are appreciated.
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: Get submesh information?

Post by applePi »

how many submeshes exist within the mesh.
i haven't noticed it before, it is SubMeshCount()
as an example, add this
Result = SubMeshCount(0)
Debug Result
after line 88 in the example MeshManual.pb in Examples\3D\ folder, and it will return 5, the number of faces of the pyramid
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Get submesh information?

Post by Samuel »

Thanks ApplePi!
I looked through the help files at least 3 times and I guess I missed it every time. :lol:
I need to go pick up some glasses because it looks like I need them. :D
Post Reply