Generating a model from parameterization bounds looks unexpected
Hello dear developers and users of Gmsh. I'm a student and I'm learning how the Gmsh API works and I'm trying to figure out how to display geometry by representing the result as triangles in OpenGL, so I'm trying to convert parametric coordinates to local coordinates via the gmshModelGetValue call. I load the .step file and call gmshModelOccGetEntities getting all the (dimension, tags) pairs. The points don't interest me. For curves and surfaces, I call gmshModelGetParametrizationBounds to get the parameterization bounds. For curves I have no problem, by controlling the density within the parameterization bounds I get a coarser or finer curve shape. But the problem arises with the rendering of surfaces, getting the bounds of the parameterization, I increase the density of the UV parameters and pass an array of these parameters to gmshModelGetValue. At the output, I get a rather rough mesh, the screenshot shows that the cylinder covers do not describe the shape of the circles, but the side surface of the cylinder looks good. What am I doing wrong? Can I look somewhere for guides or source code examples on working with gmsh geometry before meshing.