diff --git a/src/Obj/Analysis/Submerge/index.js b/src/Obj/Analysis/Submerge/index.js index 6c09863..49a7caf 100644 --- a/src/Obj/Analysis/Submerge/index.js +++ b/src/Obj/Analysis/Submerge/index.js @@ -271,8 +271,10 @@ class Submerge extends Tools { that.options.waterVolume = Math.floor(value * 10000) / 10000; if (that.area) { + that.waterLevel = Number((that.options.waterVolume / that.area).toFixed(4)) - that.options.maxWaterLevel = that.options.minWaterLevel + that.waterLevel + console.log(that.options.minWaterLevel, that.options.minWaterLevel, 'klklklkl') + that.options.maxWaterLevel = Math.floor((that.options.minWaterLevel) * 10000) / 10000 + Math.floor((that.options.minWaterLevel) * 10000) / 10000 } } });