Skip to content

Commit

Permalink
Update modal variables in OASIS:CTRAPEZOID (#266)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Heitzmann Gabrielli <heitzmann@gmail.com>
  • Loading branch information
heitzmann committed Aug 9, 2024
1 parent 153c444 commit 64083fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2212,39 +2212,47 @@ Library read_oas(const char* filename, double unit, double tolerance, ErrorCode*
case 16:
v[1].x += modal_geom_dim.x;
v[2].y += modal_geom_dim.x;
modal_geom_dim.y = modal_geom_dim.x;
break;
case 17:
v[1] += modal_geom_dim.x;
v[2].y += modal_geom_dim.x;
modal_geom_dim.y = modal_geom_dim.x;
break;
case 18:
v[1].x += modal_geom_dim.x;
v[2] += modal_geom_dim.x;
modal_geom_dim.y = modal_geom_dim.x;
break;
case 19:
v[0].x += modal_geom_dim.x;
v[1] += modal_geom_dim.x;
v[2].y += modal_geom_dim.x;
modal_geom_dim.y = modal_geom_dim.x;
break;
case 20:
v[1].x += 2 * modal_geom_dim.y;
v[2] += modal_geom_dim.y;
modal_geom_dim.x = 2 * modal_geom_dim.y;
break;
case 21:
v[0].x += modal_geom_dim.y;
v[1].x += 2 * modal_geom_dim.y;
v[1].y += modal_geom_dim.y;
v[2].y += modal_geom_dim.y;
modal_geom_dim.x = 2 * modal_geom_dim.y;
break;
case 22:
v[1] += modal_geom_dim.x;
v[2].y += 2 * modal_geom_dim.x;
modal_geom_dim.y = 2 * modal_geom_dim.x;
break;
case 23:
v[0].x += modal_geom_dim.x;
v[1].x += modal_geom_dim.x;
v[1].y += 2 * modal_geom_dim.x;
v[2].y += modal_geom_dim.x;
modal_geom_dim.y = 2 * modal_geom_dim.x;
break;
case 25:
v[2].y = v[3].y = modal_geom_pos.y + modal_geom_dim.x;
Expand Down

0 comments on commit 64083fd

Please sign in to comment.