CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
5.03k stars 1.39k forks source link

Strange line with the advanced front surface reconstruction of the Utah teapot #6214

Open stla opened 2 years ago

stla commented 2 years ago

Hello,

I'm using CGAL 5.3.1 via a R library. When I run the advanced front surface reconstruction on a point cloud of the Utah teapot, this strange line appears:

UtahTeapot2

That's strange because there's nothing here in the point cloud. Do you have an idea why this line appears? I'm using the code from the tutorial here.

Pointcloud: teapot.txt

afabri commented 2 years ago

To avoid these kind of artifacts, based on the prior that the points are rather regularly sampled on the surface, you should use a filter like the Perimeter bound as illustrated in this example in the User Manual.

stla commented 2 years ago

Thank you for the reply. I've just tried but the line is still there. I used

  double per = 0;
  double radius_ratio_bound = 5.0;
afabri commented 2 years ago

I do not spek about these two parameters, but about the parameter priority in the second overload of the function.

afabri commented 2 years ago

@stla did you look into what I proposed?

stla commented 2 years ago

Hi @afabri

I tried to change the per parameter (because it controls the priority parameter, isn't it?). Sometimes the "line" moved to the other side, sometimes it disappeared but the extremity of the teapot was destroyed.