Skip to content

Commit

Permalink
TC07 Ok (now use the real table 33 of unit test TC07)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Oct 23, 2024
1 parent 6f902d8 commit f4c00ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ private static List<Coordinate> computePts2D(List<CutPoint> pts) {
List<Coordinate> computePts2DGround(CutProfile cutProfile, Scene data) {
List<Coordinate> pts2D= cutProfile.getCutPoints().stream()
.filter(cut -> cut.getType() != GROUND_EFFECT)
.map(cut -> new Coordinate(cut.getCoordinate().x, cut.getCoordinate().y, cut.getzGround()))
.map(cut -> BUILDING.equals(cut.getType()) || WALL.equals(cut.getType()) ?
new Coordinate(cut.getCoordinate().x, cut.getCoordinate().y, cut.getCoordinate().z)
: new Coordinate(cut.getCoordinate().x, cut.getCoordinate().y, cut.getzGround())
)
.collect(Collectors.toList());
return JTSUtility.getNewCoordinateSystem(pts2D);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ public void TC07() {
List<Coordinate> expectedZ_profile = new ArrayList<>();
expectedZ_profile.add(new Coordinate(0.00, 0.00));
expectedZ_profile.add(new Coordinate(170.23, 0.00));
expectedZ_profile.add(new Coordinate(170.23, 6.00));
expectedZ_profile.add(new Coordinate(170.23, 0.00));
expectedZ_profile.add(new Coordinate(194.16, 0.00));

/* Table 34 */
Expand Down

0 comments on commit f4c00ed

Please sign in to comment.