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

Fix random behavior of CylinderStructured #442

Merged
merged 3 commits into from
Nov 15, 2019
Merged

Conversation

banesullivan
Copy link
Member

@banesullivan banesullivan commented Nov 8, 2019

Resolve #439

This should fix the random location of the seed point by not arbitrarily rotating the mesh to the given direction vector.

Someone may need to check my vector math

Copy link
Member

@prisae prisae left a comment

Choose a reason for hiding this comment

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

Other than the casting it looks good.

pyvista/utilities/geometric_objects.py Outdated Show resolved Hide resolved
Copy link
Contributor

@imsodin imsodin left a comment

Choose a reason for hiding this comment

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

Changes look good (except for a nit and what @prisae wrote). However does it actually resolve #439? They ask for being able to specify a second direction for the seed point. This PR changes that direction from a random one to the projection of the z-axis to the plane vertical to the cylinder axis. That might be enough for their purposes, but is not exactly the same thing.

pyvista/utilities/geometric_objects.py Outdated Show resolved Hide resolved
banesullivan and others added 2 commits November 13, 2019 14:03
@banesullivan
Copy link
Member Author

banesullivan commented Nov 13, 2019

Thank you both @prisae and @imsodin for the quick reviews!

@prisae, you've given this an approval, but you're not a member, so it doesn't register with GitHub's status checks 😞

@banesullivan banesullivan merged commit c64c4b3 into master Nov 15, 2019
@banesullivan banesullivan added this to the 0.23.0 milestone Nov 15, 2019
@banesullivan banesullivan deleted the patch/cyl-struct branch November 19, 2019 05:27
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.

Control the seed point of CylinderStructured
3 participants