polyListComponentConversion return components sorted by their ascending index. This is not the correct order ( well maybe it is for single face object, but not in general ).
To get a correct order of vertices in the face, select the face and use: polyInfo -fv
Now, actual triangles are arranged in a "triangle strip" fashion i.e. each three vertices in the increment of two vertices form a triangle.
Hm, it seems that it doesn't work quite like that after all. PolyInfo gives the correct vertex order but triangulation is handled internaly. Only way you could get it is via api by using getTriangles method of the MItMeshPolygon poly iterator class. I'm not sure this info is acessible thru mel.
well this is actualy a thing thats MUCH easier and convinient to do in the api. Se the api has a class for this triangulation thing. And the bonus is you can still modell as if the object was quads, or ngons!
Youll be in a what you se is what you get mode all the time AND maya could show you those thriangles without convertting (with the custom polygon display face triangles, or actualy maya allways triangulates for the viewport). Wich would mean youd only need to triangulate on export.
This is much better form workflof point of view too.
Api only provides a special abstract base class for deriving nodes that compute custom triangulation for given mesh. Only way to extract the actual triangulation info from existing mesh object is thru MItMeshPolygon::getTriangles
Well not exactly. If you connected that abstract calss to your mesh then it governs the triangulation now calling normal GUI polygon-> triangulate would do according to your new abstract rules you just told maya to use.
As well as what you se on yoru viewport is also triangulated according to this rule.
So in many ways its better. since it offers a way to work as usual witghout needing to worry about the toolset. For a games modell developper not using this class is ridiculous to say the least. Since the modell reacts like it will when ready. Also nothing says you cant store blind data on those polys to tell wich way to triangulate said poly. Tough it makes the triangulator a bit slower.
THing is that usualy all theese pople who want to triangulate dont actualy want to do so. Tehjy just want the output triangulated on export. And fgor that the trinagulator routine is much better.
I don't quite follow your point. Thing is simple: if you want to override the defult triangulation routines you derive from MPxPolyTrg, implement methods demanded by its interface and asign the instance of it to any mesh object for which you want to override default triangulation ( it's afterwards used for all triangulation operations; export, opengl, poly->triangulate etc. )
If you just want to read out current triangulation, no matter what produced it ( default or custom functions ) you use MItMeshPolygon::getTriangles
And yes, ther is often no good reason to mingle with triangulation whatsoever. That's why I asked what it's needed for.