From 6a6787dcd9fe39e817496850679b7b4b6d63d2a1 Mon Sep 17 00:00:00 2001 From: Qi Wu Date: Sun, 7 Apr 2024 22:10:20 +0000 Subject: [PATCH] avoid throwing error for unspecified tfn range --- ovr/serializer/serializer_vidi3d.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ovr/serializer/serializer_vidi3d.cpp b/ovr/serializer/serializer_vidi3d.cpp index e7f549c..1611175 100644 --- a/ovr/serializer/serializer_vidi3d.cpp +++ b/ovr/serializer/serializer_vidi3d.cpp @@ -270,7 +270,9 @@ create_scene_tfn(const json& jsview, ValueType type) else { /* calculate the volume value range ... */ - throw std::runtime_error("unknown data range"); + // throw std::runtime_error("unknown data range"); + ret.value_range.x = std::numeric_limits::max(); + ret.value_range.y = -std::numeric_limits::max(); } return ret;