From 1b0862e758d45fef1ad0fa9170c30e0f434a43fd Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Fri, 20 Oct 2023 10:29:41 -0400 Subject: [PATCH] A Data3D section is allowed to have 0 points See ASTM standard Table 9: "recordCount" shall be in the interval [0, 2^63). Part of #262 --- src/E57SimpleData.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/E57SimpleData.cpp b/src/E57SimpleData.cpp index 7bb73c3..0518ee6 100644 --- a/src/E57SimpleData.cpp +++ b/src/E57SimpleData.cpp @@ -18,12 +18,6 @@ namespace e57 /// Validates a Data3D and throws on error. void _validateData3D( const Data3D &inData3D ) { - if ( inData3D.pointCount < 1 ) - { - throw E57_EXCEPTION2( ErrorValueOutOfBounds, - "pointCount=" + toString( inData3D.pointCount ) + " minimum=1" ); - } - if ( inData3D.pointFields.pointRangeNodeType == NumericalNodeType::Integer ) { throw E57_EXCEPTION2( ErrorInvalidNodeType, "pointRangeNodeType cannot be Integer" );