FCollada: how to create a triangles

Hello,

I’m using FCollada to make my own data/collada files.

when creating a polygon, there are some types like:

FCDGeometryPolygons::PrimitiveType::TRIANGLE_STRIPS
FCDGeometryPolygons::PrimitiveType::TRIANGLE_FANS
FCDGeometryPolygons::PrimitiveType::LINE_STRIPS
FCDGeometryPolygons::PrimitiveType::POLYGONS

and I get:


		POLYGONS
		
        <polylist count="1">
          <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
          <vcount>13</vcount>
          

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
        </polylist>
		
		LINE_STRIPS
		
		<linestrips count="1">
          <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
          

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
        </linestrips>
		
		TRIANGLE_FANS
		
        <trifans count="1">
          <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
          

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
        </trifans>		
		
		TRIANGLE_STRIPS
        <tristrips count="1">
          <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
          

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
        </tristrips>


I don’t know how to obtain a triangles like this:


        <triangles count="13">
          <input semantic="VERTEX" source="#geoid671-vertices" offset="0"/>
          

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
        </triangles>

Can some one help me please!

Thanks

I found the solution lol it is in the AddFace function