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

added layers and recombine options to extrude, & a test #109

Merged
merged 5 commits into from
Dec 9, 2017

Conversation

gdmcbain
Copy link
Contributor

@gdmcbain gdmcbain commented Dec 7, 2017

As in #85 (before that foundered) including SamMallinson#1 and SamMallinson#2


from os.path import basename
import meshio
meshio.write(basename(__file__).split('.')[0].split('_')[1] + '.msh',
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, quite right; c0d656f

def extrude(
self,
input_entity,
translation_axis=None,
rotation_axis=None,
point_on_axis=None,
angle=None,
layers=None,
recombine=None
Copy link
Owner

Choose a reason for hiding this comment

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

Default: False

Copy link
Contributor Author

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,
Copy link
Owner

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.

@nschloe
Copy link
Owner

nschloe commented Dec 9, 2017

I'll just apply the changes myself.

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.

None yet

2 participants