Skip to content

Commit

Permalink
-update version
Browse files Browse the repository at this point in the history
-fix bug related to Z values on the input polygon. We want all Z values to be at 0.0 when using the paving algorithm.
-added a test for this bug
-added a test for a patch where we want to fill the Z values based on the input polygon Z values (so we don't break this functionality)
  • Loading branch information
alemon-aquaveo authored and gagelarsen committed Jul 13, 2024
1 parent c5a213d commit 0f304eb
Show file tree
Hide file tree
Showing 10 changed files with 2,629 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _package/xms/mesher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from . import meshing # NOQA: F401
from .api.mesh import generate_mesh # NOQA: F401

__version__ = '5.1.1'
__version__ = '5.1.3'
35 changes: 35 additions & 0 deletions test_files/meshing/CasePatch7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
BEGIN_POLYGON
OUTSIDE_3D 30
0.0 0.0 0.0
0.0 10.0 -5.0
0.0 20.0 -10.0
0.0 30.0 -10.0
0.0 40.0 -5.0
0.0 50.0 0.0
15.0 50.0 0.0
30.0 50.0 0.0
45.0 50.0 0.0
60.0 50.0 0.0
75.0 50.0 0.0
90.0 50.0 0.0
105.0 50.0 0.0
120.0 50.0 0.0
135.0 50.0 0.0
150.0 50.0 0.0
150.0 40.0 -5.0
150.0 30.0 -10.0
150.0 20.0 -10.0
150.0 10.0 -5.0
150.0 0.0 0.0
135.0 0.0 0.0
120.0 0.0 0.0
105.0 0.0 0.0
90.0 0.0 0.0
75.0 0.0 0.0
60.0 0.0 0.0
45.0 0.0 0.0
30.0 0.0 0.0
15.0 0.0 0.0
PATCH_CORNERS 5 15 20
END_POLYGON
RETURN_CELL_POLYGONS
117 changes: 117 additions & 0 deletions test_files/meshing/CasePatch7_base.2dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
MESH2D
E4Q 1 1 2 14 13 1
E4Q 2 2 3 15 14 1
E4Q 3 3 4 16 15 1
E4Q 4 4 5 17 16 1
E4Q 5 5 6 18 17 1
E4Q 6 7 61 62 8 1
E4Q 7 8 62 63 9 1
E4Q 8 9 63 64 10 1
E4Q 9 10 64 65 11 1
E4Q 10 11 65 66 12 1
E4Q 11 13 14 20 19 1
E4Q 12 14 15 21 20 1
E4Q 13 15 16 22 21 1
E4Q 14 16 17 23 22 1
E4Q 15 17 18 24 23 1
E4Q 16 19 20 26 25 1
E4Q 17 20 21 27 26 1
E4Q 18 21 22 28 27 1
E4Q 19 22 23 29 28 1
E4Q 20 23 24 30 29 1
E4Q 21 25 26 32 31 1
E4Q 22 26 27 33 32 1
E4Q 23 27 28 34 33 1
E4Q 24 28 29 35 34 1
E4Q 25 29 30 36 35 1
E4Q 26 31 32 38 37 1
E4Q 27 32 33 39 38 1
E4Q 28 33 34 40 39 1
E4Q 29 34 35 41 40 1
E4Q 30 35 36 42 41 1
E4Q 31 37 38 44 43 1
E4Q 32 38 39 45 44 1
E4Q 33 39 40 46 45 1
E4Q 34 40 41 47 46 1
E4Q 35 41 42 48 47 1
E4Q 36 43 44 50 49 1
E4Q 37 44 45 51 50 1
E4Q 38 45 46 52 51 1
E4Q 39 46 47 53 52 1
E4Q 40 47 48 54 53 1
E4Q 41 49 50 56 55 1
E4Q 42 50 51 57 56 1
E4Q 43 51 52 58 57 1
E4Q 44 52 53 59 58 1
E4Q 45 53 54 60 59 1
E4Q 46 55 56 62 61 1
E4Q 47 56 57 63 62 1
E4Q 48 57 58 64 63 1
E4Q 49 58 59 65 64 1
E4Q 50 59 60 66 65 1
ND 1 0.0 50.0 0.0
ND 2 0.0 40.0 -5.0
ND 3 0.0 30.0 -10.0
ND 4 0.0 20.0 -10.0
ND 5 0.0 10.0 -5.0
ND 6 0.0 0.0 0.0
ND 7 150.0 50.0 0.0
ND 8 150.0 40.0 -5.0
ND 9 150.0 30.0 -10.0
ND 10 150.0 20.0 -10.0
ND 11 150.0 10.0 -5.0
ND 12 150.0 0.0 0.0
ND 13 15.0 50.0 0.0
ND 14 15.0 40.0 -5.0
ND 15 15.0 30.0 -10.0
ND 16 15.0 20.0 -10.0
ND 17 15.0 10.0 -5.0
ND 18 15.0 0.0 0.0
ND 19 30.0 50.0 0.0
ND 20 30.0 40.0 -5.0
ND 21 30.0 30.0 -10.0
ND 22 30.0 20.0 -10.0
ND 23 30.0 10.0 -5.0
ND 24 30.0 0.0 0.0
ND 25 45.0 50.0 0.0
ND 26 45.0 40.0 -5.0
ND 27 45.0 30.0 -10.0
ND 28 45.0 20.0 -10.0
ND 29 45.0 10.0 -5.0
ND 30 45.0 0.0 0.0
ND 31 60.0 50.0 0.0
ND 32 60.0 40.0 -5.0
ND 33 60.0 30.0 -10.0
ND 34 60.0 20.0 -10.0
ND 35 60.0 10.0 -5.0
ND 36 60.0 0.0 0.0
ND 37 75.0 50.0 0.0
ND 38 75.0 40.0 -5.0
ND 39 75.0 30.0 -10.0
ND 40 75.0 20.0 -10.0
ND 41 75.0 10.0 -5.0
ND 42 75.0 0.0 0.0
ND 43 90.0 50.0 0.0
ND 44 90.0 40.0 -5.0
ND 45 90.0 30.0 -10.0
ND 46 90.0 20.0 -10.0
ND 47 90.0 10.0 -5.0
ND 48 90.0 0.0 0.0
ND 49 105.0 50.0 0.0
ND 50 105.0 40.0 -5.0
ND 51 105.0 30.0 -10.0
ND 52 105.0 20.0 -10.0
ND 53 105.0 10.0 -5.0
ND 54 105.0 0.0 0.0
ND 55 120.0 50.0 0.0
ND 56 120.0 40.0 -5.0
ND 57 120.0 30.0 -10.0
ND 58 120.0 20.0 -10.0
ND 59 120.0 10.0 -5.0
ND 60 120.0 0.0 0.0
ND 61 135.0 50.0 0.0
ND 62 135.0 40.0 -5.0
ND 63 135.0 30.0 -10.0
ND 64 135.0 20.0 -10.0
ND 65 135.0 10.0 -5.0
ND 66 135.0 0.0 0.0
Loading

0 comments on commit 0f304eb

Please sign in to comment.