Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Corners are inserted in the output mesh even if they are no data values #58

Closed
salvioli opened this issue Apr 14, 2019 · 2 comments
Closed

Comments

@salvioli
Copy link

I tried to transform a DEM from HiRise data which is distributed as GTiff format. The input DEM is available here.
This file includes several no-data value points which include the four corners of the raster DEM and dem2tin seems to add to the output obj the four corners even if these are no-data values.

The following is the output of the program after processing the DEM:
image

@fester
Copy link
Contributor

fester commented Apr 17, 2019

Insertion of vertices in place of nodata pixels at corners is a part of meshing alorithm and can't be fixed withou making significant changes to it. There's no easy way to solve this, simplest way may be just rotating the raster.

@fester fester closed this as completed Apr 17, 2019
@salvioli
Copy link
Author

Sorry for bothering more on this topic, wouldn't we be able to simply post-process the mesh removing all vertices which correspond to no-data values on the raster?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants