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.
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.