-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend the use of layers to rotational extrusions
- Loading branch information
1 parent
8f88bad
commit 666b6f8
Showing
1 changed file
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
666b6f8
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.
There's a problem here in case
rotation_axis is None
andnum_layers is not None
, as intest_layers.py
#109. Looking at the two alternatives forextrusion_string
depending on whetherrotation_axis is not None
(lines 306 and 317), I get (running that test inpdb
), respectively:and
Since the latter applies to
test_layers.py
, the result forextrusion_string
is:which is syntactically invalid Gmsh .geo.
Actually it doesn't generate a syntax error in Gmsh because the line is unfinished (no end-of-line character); if one is added manually, it does. Is that a Gmsh quirk?
Anyway, I'll see whether I can propose a fix.
666b6f8
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.
You are right, the solution in #130 looks good to me.