introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.83k stars 787 forks source link

iOS: Question about modify/delete mesh data #1369

Open Henry-JH opened 3 weeks ago

Henry-JH commented 3 weeks ago

Hello, thank you for your great work.

I want to develop a volume measurement function, so I have to create closed meshes and add the clipping function.

However, I'm confused about which files and code chunks to manipulate to generate and remove the reconstructed meshes.

Do you have any suggestions?

matlabbe commented 3 weeks ago

When you do "Assemble" action, the optimized mesh is generated by this function: https://github.com/introlab/rtabmap/blob/374df24ac94f0e2a6fa5f1aacce921a5e1f4ff77/app/android/jni/RTABMapApp.cpp#L2697-L2714

Then loaded in RAM afterwards with: https://github.com/introlab/rtabmap/blob/374df24ac94f0e2a6fa5f1aacce921a5e1f4ff77/app/android/jni/RTABMapApp.cpp#L3512-L3521

Then shown in render loop here (added to opengl if not already): https://github.com/introlab/rtabmap/blob/374df24ac94f0e2a6fa5f1aacce921a5e1f4ff77/app/android/jni/RTABMapApp.cpp#L1421-L1451