Notifications
Clear all

[Closed] How do I get the number of edges in a "Mesh"?

For maxsdk,
I have a pointer to a Mesh object, you can get the number of vertex and faces
but you can’t get the number of edges. I think I can’t do it the cruel way by multiplying the number of faces by 3.
Any ideas?
Thanks
Jack

3 Replies

for a mesh…

numedges = 3 * numfaces;
1 Reply
(@lucky6969c)
Joined: 10 months ago

Posts: 0

Yep, got it as well from somewhere else.
As far as I know, Patch data will be trianglulated, can’t spell, to meshes before getting exported, just as polys do, the problem for now is I can’t seem to find information on how to collecting information of edges originated from PatchMesh, here is the sample code, I think it’s heaps more complicated.

http://dl3d.free.fr/phpBB2/viewtopic.php?t=1035&sid=527165917f639e714328b3de486e1bfa

Thanks
Jack

$.mesh.edges.count