Extracting the visible mesh surface
Hi,
I'm trying to get the intersection surface between RGBD camera FOV and mesh model.. this intersection surface is the visible mesh surface from the RGBD camera point of view. I tried to use PCL::RangeImage since it simulates the sensor FOV, position and orientation and performs z buffering to extract the visible surface but I get the mesh part that is inside the FOV frustum regardless of its visibility to the camera as it is shown in the following image link : image
Here is the github link of the code ( I preformed frustum culling then range image and I also used the loaded mesh points directly but I get the same result ): code link
does the pcl::RangeImage is supposed to do that although it is applying z buffer? does PCL include another function to extract the visible surface?
Thanks