Tessellation to Brep

Hi, I’m new to this.
I have tessellated data obtained from files like GLTF and OBJ, which primarily contain triangle-based information.
I need to convert this into true B-Rep format that includes details like curves and splines.
Is there a way to accomplish this using the Rhino API?
Alternatively, if there are any simpler libraries for this, please let me know.
I’m currently working with C++.

Given that the input is mesh data containing vertex point information, converting each individual mesh into a face is computationally expensive. Instead, I am looking for an approach where:

  • Flat surfaces are identified and merged into a single face based on the mesh data.
  • Curved or cylindrical surfaces are reconstructed as curve or spline representations.

What is the source of the mesh … 3D scan data?

You may be looking for a dedicated reverse engineering application and a human being to process the data manually into BREPS, rather than something you can automate in Rhino.