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

Grid alignment #3

Open
fdongyu opened this issue Feb 10, 2017 · 2 comments
Open

Grid alignment #3

fdongyu opened this issue Feb 10, 2017 · 2 comments

Comments

@fdongyu
Copy link

fdongyu commented Feb 10, 2017

Hi Dr. Holleman,
I apologize for opening an issue here. This grid generation tool is great. I read your paper about grid alignment. This seems really important when there exists deep channels.
There seems to be no guidance in the tutorial about how to align the grid. I tried by myself by adding a line to map and treat the line as an island, something like this: rings=[boundary,island]. But this did not work. Attached is the figure that shows the map.
boundary

I was wondering if you can give me some hints about the grid alignment. Thank you so much for your help. Below is part of the script I am using,
bg_scale = 800np.ones(len(bg))
inner_scale = 200
np.ones(len(inner))
lin_scale=constrained_delaunay.ConstrainedXYZField.from_polylines([bg, inner],[bg_scale,inner_scale])
rings = [boundary, island]

p = paver.Paving(rings=rings, density=lin_scale)
p.pave_all()

@rustychris
Copy link
Owner

rustychris commented Feb 10, 2017 via email

@fdongyu
Copy link
Author

fdongyu commented Feb 10, 2017

That works perfectly! Thanks a lot.

Best,
Dongyu

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