Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cylinder geometry fails to mesh #173

Open
mark-dostalik opened this issue Nov 9, 2021 · 1 comment
Open

Cylinder geometry fails to mesh #173

mark-dostalik opened this issue Nov 9, 2021 · 1 comment

Comments

@mark-dostalik
Copy link

The following minimal code example:

import pygalmesh

cylinder = pygalmesh.Cylinder(-1, 1, 0.7, 0.1)
mesh = pygalmesh.generate_mesh(cylinder)

fails with:

File "/home/username/.local/lib/python3.9/site-packages/pygalmesh/main.py", line 107, in generate_mesh
    _generate_mesh(
RuntimeError: CGAL ERROR: assertion violation!
File: /usr/include/CGAL/Mesh_3/Protect_edges_sizing_field.h
Line: 453
Explanation: Error: the sizing field is null at point (0.69999999999999996 0 -1)
@nschloe
Copy link
Collaborator

nschloe commented Nov 27, 2021

Thanks for the report. You'll have to set

max_edge_size_at_feature_edges=0.4

Fixing this is too hard without better criteria setting in CGAL, see CGAL/cgal#5044.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants