Skip to content

Commit

Permalink
bugfix in pointSet loading (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-gauthier-geosiris authored Nov 4, 2024
1 parent 7cd3ff9 commit 93071c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/geosiris/energyml/data/Mesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ public static List<PointSetMesh> readPointRepresentation(Object energymlObject,
crs = getCrsObj(pointsObj, pointsPathInObj, energymlObject, workspace);
} catch (ObjectNotFoundNotError ignore) {}

if(isZReversed(crs)){
points.forEach(l->l.set(2, -l.get(2)));
}

meshes.add(new PointSetMesh(
energymlObject,
crs,
Expand Down

0 comments on commit 93071c9

Please sign in to comment.