-
Notifications
You must be signed in to change notification settings - Fork 27
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
Boundary Node Identification #60
Comments
|
Many thanks for your prompt response. I used the following approach to generate the boundary nodes: import meshplex
mesh = meshplex.MeshTri(X, cells)
idx = np.where(mesh.is_boundary_node == True)
x, y = X[idx,0].flatten(), X[idx,1].flatten() I appreciate that this may not be optimal. However, I wonder if there is way of directly accessing an 'ordered list' of boundary nodes as I assume such a list is being generated for the |
Better use the boolean index directly: Xb = X[mesh.is_boundary_node] Or, if you need the coords separately, x, y = X[mesh.is_boundary_node].T |
Thanks again. |
I believe mesh.is_boundary_node is no longer valid? It comes up with AttributeError: 'MeshTri' object has no attribute 'is_boundary_node' |
@ml14je Try |
What is the best way to extract boundary node indices from a finished mesh?
The text was updated successfully, but these errors were encountered: