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

It isn't actually necessary to use insert_points...? #70

Open
sampotter opened this issue Jul 19, 2021 · 1 comment
Open

It isn't actually necessary to use insert_points...? #70

sampotter opened this issue Jul 19, 2021 · 1 comment

Comments

@sampotter
Copy link

I spent a little more time looking into how to add points to the mesh, and appears that using insert_points (see #60, #68, and #69) may be unnecessary.

In section 5.1.1 of the TetGen manual, it mentions that polygons in the PLC may be degenerate (only consist of one or two nodes), in which case they can be used to specify constrained points or edges. I tried this out, and it appears that while assembling the points and facets of a meshpy.tet.MeshInfo, just adding an extra point that isn't included in a facet has the desired effect. I guess I should have read the section titled "Useful Things to Know" earlier. 😨

Maybe the -i switch makes more sense when using TetGen from the command-line... But it would be helpful to indicate that there are different ways to go about adding constrained features to a mesh in meshpy's docs.

@sampotter
Copy link
Author

sampotter commented Jul 19, 2021

I should also mention that I've run into at least one case where trying to insert a point using insert_points (as implemented in #69) leads to a segmentation fault, while just adding the extra point to MeshInfo's list of points works just fine. I can add a MWE for this if there's interest.

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

1 participant