Conversation
…r/meshpy into implement-insert-points
inducer
left a comment
There was a problem hiding this comment.
Thanks for working on this! Just one small request, then this should be ready to go.
examples/test_insert_points.py
Outdated
| from meshpy.tet import MeshInfo, Options, build | ||
|
|
||
| if __name__ == '__main__': | ||
| logger = logging.getLogger('test_insert_points.py') |
There was a problem hiding this comment.
Could you add a version of this to the (pytest-driven) tests under test/, to make sure this doesn't get inadvertently broken?
There was a problem hiding this comment.
Looks good. Please also take care of the Flake8 linter failures.
There was a problem hiding this comment.
Didn't you mention in #70 that this PR was no longer needed? Could you explain?
There was a problem hiding this comment.
Yes. But this appears to be the correct way to implement this and IMO it makes sense to cover tetgen's interface regardless of whether there are parts of it that are a little redundant. Some people looking for a wrapper library for tetgen may be familiar with one approach and not the other.
I made a few small changes to implement TetGen's "constrained points" feature (addressing #60 and #68).
I'm not up on the internals of TetGen, so can't be completely confident that this works, but it seems to work. I added a simple example testing the feature under
examples.Running
test_insert_points.pyunder IPython, I get: