Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] CGAL::Polygon_mesh_processing::clip returns self itersecting mesh

Subject: CGAL users discussion list

List archive

[cgal-discuss] CGAL::Polygon_mesh_processing::clip returns self itersecting mesh


Chronological Thread 
  • From: slidertom <>
  • To:
  • Subject: [cgal-discuss] CGAL::Polygon_mesh_processing::clip returns self itersecting mesh
  • Date: Thu, 23 Jan 2020 10:10:21 -0600 (CST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:h5zpCxNIuZdcp36XxQcl6mtUPXoX/o7sNwtQ0KIMzox0LfjzrarrMEGX3/hxlliBBdydt6sYzbCM+P25ESxYuNDd6StEKMQNHzY+yuwu1zQ6B8CEDUCpZNXLVAcdWPp4aVl+4nugOlJUEsutL3fbo3m18CJAUk6nbVk9Kev6AJPdgNqq3O6u5ZLTfx9IhD2gar9uMRm6twrcutQZjId4NKo91BTFr3tVd+9LwW9kOU+fkwzz68ut8pNv6Thct+4k+8VdTaj0YqM0QKBCAj87KW41/srrtRfCTQuL+HQRV3gdnwRLDQbY8hz0R4/9vSTmuOVz3imaJtD2QqsvWTu+9adrSQTnhzkBOjUk7WzYkM1wjKZcoBK8uxxyxpPfbY+JOPZieK7WYNUXTndDUMlMTSxMGo2yYYsRAeQCIOhXoJXyqVQVoBuiBwSgGP/jxiNUinPo26AxzuQvERvB3AwlB98Oq3DUrNToO6gMS+C10K7IzTDeZP5Rwjf97InIfQ0/rvGWQbJwds/RxFIgFwPAlFqQqIjlMymJ2eQKtmiW9uxtXv+hhW4grgF+uDmvxsE0h4nPnI0a0UvL9SFnz4ovOdK4T0t7bNi5G5VTryGXL5Z6T8cmTm1ytis3yacKtJ26cSQQyZkqxhjSYOGdfYeS+BLsTuORLC94hH17fLK/gA6/8U6vx+HmUMm7yk1FoTFBktbSrHwCyxvT6s2fRvt8+EeuxyqP2hjO5uxAJU04j6TWJp07zrMzl5cfq0XOEy7ulEXzlqCWd0Ek+uay6+TgZ7XrvoScN4t1ig7jLKsugNC/AeM9MgUVUGib/P6z1Lzn/UHjXLpKifg2nrHDsJ/GPcQburK5AwhN34k/5BawFTOm3M0FknkGN1JKZA+Hj5PyO1zVO/D5DfK/g0y2nztxxvDGOKfhApTXIXTZnrfhZ+U110kJwwU6yZVT5olfF6oaCPP1QE748tLCXTEjNAnh2OLmBNhnyoQbETaUBq6VPbnOtlqg6ecmIu3Kb4gQ7mWuY8M57uLj2Cdq0WQWerOkiMNONCKIW89+KkDcWkLCx88bGD5T7AU7Re3uzlaFVGwLPifgb+cH/jg+TbmeI8LGT4GpjqaG2X7iTJJTb2FCTFuLFCWzLtjWa7I3cCuXZ/RZvHkEWLymEtJz003osgbwwb5qaOHT/39BuA==

Hello,
I use
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Surface_mesh<K::Point_3> Surface_mesh;
from file:
mesh1.off <http://cgal-discuss.949826.n4.nabble.com/file/t376129/mesh1.off>
mesh1.off is clipped with plane:
K::Point_3 plane_pt(0., 2., 0.);
K::Vector_3 plane_norm(-0.09, 0.09, 0.);
CGAL::Plane_3<K> plane(plane_pt, plane_norm);
CGAL::Polygon_mesh_processing::clip(mesh, plane,
CGAL::Polygon_mesh_processing::parameters::clip_volume(true).use_compact_clipper(true));
result is:
mesh2.off <http://cgal-discuss.949826.n4.nabble.com/file/t376129/mesh2.off>
and
CGAL::Polygon_mesh_processing::does_self_intersect(mesh);
-> returns true.

I can not understand, why do I get self intersecting mesh.
If mesh2.off is exported to the polygon soup and converted back into the
Surface_mesh -> does_self_intersect returns false in this case -> situation
is fixed.

Expectation: Polygon_mesh_processing::clip should returned closed, non-self
intersecting surface.

Maybe I'm doing something wrong?

Tomas



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page