Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL::Polygon_mesh_processing::clip returns self itersecting mesh
  • Date: Fri, 24 Jan 2020 16:39:26 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:STgVih+FcxFxwf9uRHKM819IXTAuvvDOBiVQ1KB21+ocTK2v8tzYMVDF4r011RmVBNmdsa4P1LWe8/i5HzBZutDZ6DFKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sArcutMIjYZtJao8yBnEqWZMd+hK2G9kP12ekwvy68uq4JJv7yFcsO89+sBdVqn3Y742RqFCAjQ8NGA16szrtR3dQgaK+3ARTGYYnAdWDgbc9B31UYv/vSX8tupmxSmVJtb2QqwuWTSj9KhkVhnlgzoaOjEj8WHXjstwjL9HoB+kuhdyzZLYbJ2TOfFjeK7WYNEUSndbXstJSiJPHI28YYsMAeQPM+lXoIvyqEcBoxalGQmhBvnixiNUinL436A31fkqHwHc3AwnGtIDqHrYosjrO6gJS++117XIzTTdYPNQxDzz7o/IcgogofGLQbJ7bM7dx0gxGAPCi1Wft5DlPymV1+oNqWeU8/ZgVeW1i28nrg19rCWky8A3ionNgYIV0FHE9SJlwIovIN24TFV2YdGhEJRKtiGaM5F6Td8lQ2FtoSs3zKANt5C8fCgP0psnxhjfZuSBc4eS+R3sT+KRLiliiH15f7K/ghC/+lWjxO3kTsS4zkpGoy5fntTPtn0BzQHf5taER/dn8Uqs1y6D2x7J5e1YPEw5kLTUJ4I7zbM1iJYfrVnPEyr5lUnokqCaakAp+uao5uv9frnro5CROo5whw7iN6kjm8iyDOU2MgULXWWb9/mz2bLl8EbkWrtFlOc2nbPcsJ3CJcQUuKq5AwhN34Ym8Rm/DjOm3M0WnHkCMV5JYRyHgofnNl3UL/D4CvC/g1uokDh13fzJIrrhApDVInjClrfuY6p95lZCxAYvyd1T/ZFZB7EbLP7uREP8t8bUAxA3PgCsxuboEtR91ocQWWKVBa+ZNbvfsUSM5uIoOemMZYgVuCrnJ/gg4/7jlnA5mVoHcqmo2Zsbcmy3HvNjI0mBe3rjns8BEXsWvgo5VOHllFKCXiRXZ3qrQq085yo7B567DYfYXYCgm6eB3Se+Hp1OfG9KEFGMEXHyd4WFQfgAciySItUy2gADALOuQotk2RC1vxLh0JJmKPDV82sWr8HNzt9wsqfomBs77iB1AsLV92aXTmZo1iMnSjgz0bxlsGJ0wUuEy7k5ybQMDthU/fJOTkE/MbbTyuV7D5b5XQeXLYTBc0qvXtjzWWJ5ddk22dJbOx8hSeXntQjK2m+RO5FQj6aCXcVm/afV3ny3LMF4mS6fifsRymI+S84KDlWIw65y8w+JWtzMmkSd0rmvLOESgHWL+2CEwm6D+kpfVVwoCPSXbTUkfkLT6O/ByAbHRr6qB64gN1IYm8GHI6pOLNbuiAcfSQ==

For the clipping there is a double rounding issue:
It first cut the extended bbox of the mesh with the plane (first rounding) and then do the operation (second rounding).

Sebastien.

On 1/24/20 4:37 PM, slidertom wrote:
I miss typed:
//K::Point_3 plane_pt(0., 2., 0.);
it must be:
//K::Point_3 plane_pt(0., 0.2, 0.);
as:
K::Point_3 plane_pt(0., 0.19999999999999987, 0.);

Just realized, this is probably "edge/rounding" issue:
(0., 2., 0.) generates plane which touch edge
and
(0., 0.19999999999999987, 0.) generates plane which is inside mesh.

CGAL does very precise calculations and result is self intersecting mesh.



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




Archive powered by MHonArc 2.6.18.

Top of Page