how to dynamically add new triangles?

for a project, I need to dynamically add new triangles and update a mesh every second. In my project, I want to reconstruct a scene in real time from camera inputs and the mesh should gets updated every second. So my question is how I can do it in blueprint or cpp and is there a sample code somewhere I can use as reference.

Hey there @Amirh3ssam! Welcome to the community! So depending on your exact use case, this does sound like Dynamic Meshes would work for you, depending on how you’re handling the data to create the mesh. Would this work for your use case?

Basic tutorial for geometry scripting for dynamic meshes:

Thanks. Do you know if it is possible to modify vertex buffers in dynamic meshes in real time?

I have had limited practice with the Dynamic Mesh Component, however I believe once the mesh is notified that it’s current data is dirty, the vertex buffer should be regenerated. Passing Notify Mesh Updated for mesh changes or Notify Vertex Attributes Updated for just refreshing the Vertex Buffer alone, but be careful as any difference in mesh triangulation/topology aside from vertex positions would cause Notify Vertex Attributes Updated to crash.