nofaceinbook / muxp

Mesh Updater X-Plane
GNU Lesser General Public License v3.0
18 stars 3 forks source link

CreateDSFVertices not optimal #8

Open nofaceinbook opened 4 years ago

nofaceinbook commented 4 years ago

Function generatees more vertex pools than necessary. Especially whe elevscal < 1 it is generating a special submeter pool for the raster elevation -32768. This should be avoided. For raster pools scaling should still stay with 1. Also when vaules for vertices are very close out of bound (rounding errors), no new pools shall be generated. In these cases round vaules to max/min for pool and stay with existing pool.

Other issues that for newly generated trias in a new pool the scaling is just taken from privious pool. This coold lead to errors. There should be a standard way how to set scalings for new pools.