Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problems with Sharp Features in 3d Mesh Generation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problems with Sharp Features in 3d Mesh Generation


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Problems with Sharp Features in 3d Mesh Generation
  • Date: Mon, 7 Sep 2020 09:24:51 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:aEPybxZSS7Ipw/0s4VkmD2j/LSx+4OfEezUN459isYplN5qZrsW5bnLW6fgltlLVR4KTs6sC17OI9fm6BSdQuN6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vLRi6txjdutcZjIdtKas91wbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrRy8uRJ/zY7aboKbOvVwcazSf88VS2VaU8ZNVSFMGJ+wY5cBAucDO+tTsonzp0EJrRu7HQSgCv7hxSFTiXDsxq06z+UhHh/A3Ac9GdwOt27UrNTyNKcOTOu5yKjGwivEb/NTxzj99JLIcxAhr/6WQb1wbc3RyVMvFg/AgFmbtIvoPyiR1uQKqWib7u1gVf61h24irwF8uTevxsI2hYnIgoIZ0EzL9SJ8wIssI9CzVUF0b8K+HpRKqyGaK5V5QtkkQ2xwpio3ybILtYKlcSUKy5kpyBDSZfOJfoSV/x/vSuecLSl2iX97Zr6zmhi8/EeuxODhWcS4zFhHoypZn9fCqnwAyhre4dWJRPt6+0euwzeP1wbL5+FCO087jrHUK5o/zbIqipUTtkHDEynrk0v1lK+bblso9vSs5uj9YbjrpoWQO5Fqhg3jKKgjldGzDfwmPgcUQ2SX5OGx26P/8ULjRbhGkOE6nrTcvZ3UP8sXuLK1DgpX34ss5RazEjKr38gWkHQJMl1IfRyKj4bzNF7TJf31DvOyjEqqnTx23f7JJKfhDY/ILnXbkLfuY7J960lExQo2199f5pZUBqgPIfLpR0P9rdLYAxAkPwCuzObnD9J91owaWW2RGKOWLKTSsVqQ6uIuJemDepMVtS7jJ/Q54/Pil3w0lF8HcaW3w5cbdWq0E/t7L0mBZHrjmNYBEWMEvgokS+zqjUWPUSVXZ3a1RaI85zY7CJ68AYfGQoCgm7OB3CKhEZ1XYmBKEEyDEXDtd4mcQfcDdDqSItN9kjwDTbWuV4Ah2guqtAPj1rVnL/HU9TEFtZL4z9h4/PbTlBE39TxsFcuRyWCNT2dunmMJXTA6xq5/oVYugmuEhKN3ivgdGd1I7O5SSS87M4Tdxqp0EYPcQAXEK52yRVyvWcmnDDd5atUrwtgSKwZSFtKngwzZzgSjCKMSja3KTtRg6abbxXn2O4B4z17J0aAgix8tRc4ZZj7uvbJ26wWGX92BqE6ejav/Lf1Njh6Iz3+KyC+1hG8dVQdxVavfWnVGPxnZqN344gXJSLr8UO17YDsE8taLL+5xUvOslU9PHa6xN9HXYmb3kGC1V07Rm+G8KbHycmBY5x3zTUgJlwdJoCSDPAk6Qzi7+ifQUGUoGlXobEfht+J5rSHjQw==

Could you provide a minimal example that we can run so that we can
reproduce the issue?

I don't see any issue in the snippet provided.

Thanks,

Sebastien.

On 9/7/20 8:33 AM, MariusZeinhofer wrote:
Dear all,

I am trying to mesh a 3d mesh using the create_implicit_mesh_domain method
and I am running into problems with the sharp representations of 1d
features.

My 3d object is a set union of a cylinder with a segement of another
cylinder of larger radius (see the image attached), and I want these edges
to be sharp. I am working my way along the example 3.6.2 in the CGAL manual
(Implicit Domain with 1D Features, the intersecting balls). The problem I'm
getting is that my edges are "too sharp" represented which makes the mesh
too big for my purposes. The mesh I get is extremly fine at the edges, see
the following picture:

<http://cgal-discuss.949826.n4.nabble.com/file/t376248/CylinderSmall.png>

What confuses me is, that not all of the sharp edges are problematic and
also if I am just meshing the smaller cylinder I'm not getting this issue at
the top and bottom of the cylinder, even though I am using the same code.

My mesh criteria are:
Mesh_criteria criteria(edge_size = 0.29, facet_angle = 25, facet_size = 0.3,
cell_radius_edge_ratio = 3.5, cell_size = .5, facet_distance = 0.4);

The way I'm introducing the sharp features is:

typedef std::vector<Point> Polyline_3;
typedef std::list<Polyline_3> Polylines;

for (int i = 0; i < 360; ++i)
{
Point p(15.0, 10 * std::cos(i * CGAL_PI / 180), 10 * std::sin(i *
CGAL_PI / 360));
polyline.push_back(p);
}
polyline.push_back(polyline.front()); // close the line
polylines.push_back(polyline);

and in a similar fashion for the other sharp features.

Thank you very much for your help in advance!
Cheers
Marius



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




Archive powered by MHonArc 2.6.19+.

Top of Page