C++ Mesh Vertex Removal


How can I remove a list of mesh vertices ?
Currently I am checking if vertex weight is below a limit and remove it, but its make the mesh face display wrong:

      int counter = 0;
      for (double i : *density) {

In c# I am doing it like this without problems, and I am wondering how to do this in C++?

Is there a similar method in C++?

Hi @Petras_Vestartas,

You might looking into using ON_Mesh::DeleteComponent or ON_Mesh::DeleteComponents. Note, this is not what RhinoCommon uses.

– Dale

1 Like

Would it be possible to show an example file how can I remove and array of vertices using these methods?

Hi @Petras_Vestartas,

See if this helps.


– Dale

Thank you @Dale this helps a lot.
I managed to have proper C++ pointcloud processing library running in Rhino and I am really grateful for your help.