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

Issue 1730 mesh with missing vertices #1731

Merged
merged 7 commits into from
Dec 12, 2015

Conversation

doutriaux1
Copy link
Contributor

@aashish24 @sankhesh thanks to @sankhesh help I got the shapes to be drawn correctly, but they still appear to be drawn as missing, I think the "nan" bit throws off VTK ? Help wanted 😉

@aashish24
Copy link
Contributor

great @doutriaux1 how should we handle nan?

@doutriaux1
Copy link
Contributor Author

@aashish24 basically nan means ignore this vertice that's how we handle grids which have some cells with a different number of vertices between them (3 vs 4 here) we use the greatest number of vertices and set the unused ones to missing, which @sankhesh suggested we convert to nan for VTK. Unfortunately VTK does pick the correct shape now but seems to mark the cell has bad

@doutriaux1
Copy link
Contributor Author

@aashish24 @sankhesh @chaosphere2112 ready for review

@doutriaux1
Copy link
Contributor Author

goes with: CDAT/uvcdat-testdata#94

@aashish24
Copy link
Contributor

@doutriaux1 if this is a uniform grid, we should probably using masking array. Thoughts?

@chaosphere2112
Copy link
Contributor

@aashish24 Actually, this is for meshfill, which is inherently a non-uniform grid.

@doutriaux1
Copy link
Contributor Author

@aashish24 it is actually using masked arrays anyway. And @chaosphere2112 is right these are non-uniform grids, and in this case really non-uniform (different number of vertices for each cell)

@aashish24
Copy link
Contributor

@doutriaux1 thanks.. can you fix the style issue?

@doutriaux1
Copy link
Contributor Author

nah...

@aashish24
Copy link
Contributor

@chaosphere2112 sorryI meant to say regular grid / structured grid which curve linear is.

@@ -263,7 +263,7 @@ def genGrid(data1, data2, gm, deep=True, grid=None, geo=None):
xM = m[:, 1].max()
ym = m[:, 0].min()
yM = m[:, 0].max()
N = m.shape[0]
numberOfCells = m.shape[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice var name thanks 👍

@aashish24
Copy link
Contributor

@doutriaux1 changes LGTM 👍

@aashish24
Copy link
Contributor

If bots are happy, I am going to merge it.. nice job @doutriaux1 @sankhesh

aashish24 added a commit that referenced this pull request Dec 12, 2015
…rtices

Issue 1730 mesh with missing vertices
@aashish24 aashish24 merged commit 5c05aca into master Dec 12, 2015
@aashish24 aashish24 deleted the issue_1730_mesh_with_missing_vertices branch December 12, 2015 17:38
@doutriaux1
Copy link
Contributor Author

@aashish24 please do not forget to merge baselines as well. Thanks. I just merged it in. Thx @durack1 for spotting this.

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

Successfully merging this pull request may close these issues.

3 participants