From 9e64d887de083f114985cba39556e47f81421b6e Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Sun, 17 Dec 2017 20:46:51 +0100 Subject: [PATCH] Assert to check spacedim >= 2 in OpenCASCADE::NURBSPatchManifold --- source/opencascade/boundary_lib.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 1545c0f4c3..a420d2064c 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -248,7 +248,9 @@ namespace OpenCASCADE curve(curve_adaptor(sh)), tolerance(tolerance), length(shape_length(sh)) - {} + { + Assert(spacedim >= 2, ExcImpossibleInDimSpacedim(dim, spacedim)); + } template -- 2.39.5