-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
added layers and recombine options to extrude, & a test #109
Conversation
test/test_layers.py
Outdated
|
||
from os.path import basename | ||
import meshio | ||
meshio.write(basename(__file__).split('.')[0].split('_')[1] + '.msh', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this can be simplified, it's only for development anyways. How about layers.msh
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, quite right; c0d656f
pygmsh/built_in/geometry.py
Outdated
def extrude( | ||
self, | ||
input_entity, | ||
translation_axis=None, | ||
rotation_axis=None, | ||
point_on_axis=None, | ||
angle=None, | ||
layers=None, | ||
recombine=None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default: False
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def extrude( | ||
self, | ||
input_entity, | ||
translation_axis=None, | ||
rotation_axis=None, | ||
point_on_axis=None, | ||
angle=None, | ||
layers=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
layers
is a number, right? If yes, the variable should be called num_layers
, and the default should be None
. Instead of if layers
below, one should test for if layers is [not] None
.
I'll just apply the changes myself. |
As in #85 (before that foundered) including SamMallinson#1 and SamMallinson#2