I wrote a simple Wavefront parser in C++ that loads v, vn, vt and f into std::vectors.
The most f lines in my .obj file contain four triples like this:
f 601/10518/265 10522/10517/265 10521/10516/265 602/10515/265 obviously, if I have four triples I create two triangles.
But I do not understand well enough what to do with the last f line in my .obj file that contains about 700 triples:
f 3229/3228/1 3456/3227/1 3455/3280/1 3508/3279/1 3507/3332/1 3560/3331/1 3559/3384/1 3612/3383/1 3611/3436/1 3664/3435/1 3663/3488/1 3716/3487/1 3715/3540/1 3768/3539/1 3767/3592/1 3820/3591/1 3819/3644/1 3872/3643/1 3871/3696/1 3924/3695/1 .... From wikipedia: OBJ files also support free-form geometry which use curves and surfaces to define objects, such as NURBS surfaces.
Is this line a some kind of this NURBS surfaces? If yes what lib can I use for them?
How to convert it to triangles? (For drawing with OpenGLES).
Can I use GL_TRIANGLE_STRIP or GL_TRIANGLE_FAN?
Below I provided a trivial plane example that I load successfully:
# Blender 3.6.5 # www.blender.org mtllib plane.mtl o Plane v -1.000000 0.000000 1.000000 v 1.000000 0.000000 1.000000 v -1.000000 0.000000 -1.000000 v 1.000000 0.000000 -1.000000 vn -0.0000 1.0000 -0.0000 vt 0.000000 0.000000 vt 1.000000 0.000000 vt 1.000000 1.000000 vt 0.000000 1.000000 s 0 f 1/1/1 2/2/1 4/3/1 3/4/1 but my real-life mesh is too long to add there, I exported it in Blender from this:

Dissolve facesin Blender, see details here: developernote.com/2023/10/… \$\endgroup\$